Skip to content

Commit 14d81f5

Browse files
committed
xts: clarify Cipher concurrency guarantee
1 parent 17c2532 commit 14d81f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: xts/xts.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
"golang.org/x/crypto/internal/subtle"
3131
)
3232

33-
// Cipher contains an expanded key structure. It doesn't contain mutable state
34-
// and therefore can be used concurrently.
33+
// Cipher contains an expanded key structure. It is safe for concurrent use if
34+
// the underlying block cipher is safe for concurrent use.
3535
type Cipher struct {
3636
k1, k2 cipher.Block
3737
}

0 commit comments

Comments
 (0)