gmsm/cipher/stream.go
2024-11-29 11:44:59 +08:00

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)
}