Skip to content

Commit f985d95

Browse files
committed
mbedtls: AES-256-CTR misadvertises as AES128-CTR
`ptls_mbedtls_aes256ctr` is the AES-256-CTR algorithm descriptor, but its public `name` field is set to `"AES128-CTR"`.
1 parent b941609 commit f985d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mbedtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static int setup_aes256ctr(ptls_cipher_context_t *ctx, int is_enc, const void *k
199199
}
200200

201201
ptls_cipher_algorithm_t ptls_mbedtls_aes256ctr = {
202-
"AES128-CTR", PTLS_AES256_KEY_SIZE, PTLS_AES_BLOCK_SIZE, 16 /* iv size */, sizeof(struct st_ptls_mbedtls_cipher_context_t),
202+
"AES256-CTR", PTLS_AES256_KEY_SIZE, PTLS_AES_BLOCK_SIZE, 16 /* iv size */, sizeof(struct st_ptls_mbedtls_cipher_context_t),
203203
setup_aes256ctr};
204204

205205
#if 0

0 commit comments

Comments
 (0)