mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-22 02:06:18 +08:00
14 lines
400 B
Go
14 lines
400 B
Go
// Copyright 2024 Sun Yimin. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package cipher
|
|
|
|
import "crypto/cipher"
|
|
|
|
type SeekableStream interface {
|
|
cipher.Stream
|
|
// XORKeyStreamAt XORs the given src with the key stream at the given offset and writes the result to dst.
|
|
XORKeyStreamAt(dst, src []byte, offset uint64)
|
|
}
|