Skip to content

Commit

Permalink
use 12 byte nonce for GCM
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Dec 17, 2015
1 parent 9e25247 commit b1448c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/krb5/crypto-aes-gcm.c
Expand Up @@ -69,7 +69,7 @@ struct _krb5_checksum_type _krb5_checksum_gmac_128_aes128 = {
CKSUMTYPE_GMAC_128_AES128,
"gmac-128-aes128",
128,
40, /* checksum is 40 bytes because it has 24 byte IV */
28, /* checksum is 28 bytes because it has 12 byte nonce */
F_KEYED | F_CPROOF | F_DERIVED | F_AEAD,
_krb5_create_checksum_aead,
_krb5_verify_checksum_aead
Expand All @@ -79,7 +79,7 @@ struct _krb5_checksum_type _krb5_checksum_gmac_128_aes256 = {
CKSUMTYPE_GMAC_128_AES256,
"gmac-128-aes256",
128,
40, /* checksum is 40 bytes because it has 24 byte IV */
28, /* checksum is 28 bytes because it has 12 byte nonce */
F_KEYED | F_CPROOF | F_DERIVED | F_AEAD,
_krb5_create_checksum_aead,
_krb5_verify_checksum_aead
Expand Down Expand Up @@ -124,7 +124,7 @@ struct _krb5_encryption_type _krb5_enctype_aes128_gcm_128 = {
"aes128-gcm-128",
16,
1,
24,
12,
&keytype_aes128_gcm,
NULL, /* should never be called */
&_krb5_checksum_gmac_128_aes128,
Expand All @@ -140,7 +140,7 @@ struct _krb5_encryption_type _krb5_enctype_aes256_gcm_128 = {
"aes256-gcm-128",
16,
1,
24,
12,
&keytype_aes256_gcm,
NULL, /* should never be called */
&_krb5_checksum_gmac_128_aes256,
Expand Down

0 comments on commit b1448c3

Please sign in to comment.