Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit f61ac65

Browse files
authored
Merge pull request #207 from square/cs/issue-206
Fix issue #206
2 parents 9ab2713 + ce63c22 commit f61ac65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symmetric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func newAESGCM(keySize int) contentCipher {
103103
func newAESCBC(keySize int) contentCipher {
104104
return &aeadContentCipher{
105105
keyBytes: keySize * 2,
106-
authtagBytes: 16,
106+
authtagBytes: keySize,
107107
getAead: func(key []byte) (cipher.AEAD, error) {
108108
return josecipher.NewCBCHMAC(key, aes.NewCipher)
109109
},

0 commit comments

Comments
 (0)