Skip to content

Commit

Permalink
Fix chacha20 declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Sep 7, 2023
1 parent f818675 commit 25894ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/picotls/ptls_mbedtls.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern ptls_cipher_algorithm_t ptls_mbedtls_aes128ecb;
extern ptls_cipher_algorithm_t ptls_mbedtls_aes256ecb;
extern ptls_cipher_algorithm_t ptls_mbedtls_aes128ctr;
extern ptls_cipher_algorithm_t ptls_mbedtls_aes256ctr;
extern ptls_cipher_algorithm_t ptls_minicrypto_chacha20;
extern ptls_cipher_algorithm_t ptls_mbedtls_chacha20;

extern ptls_aead_algorithm_t ptls_mbedtls_aes128gcm;
extern ptls_aead_algorithm_t ptls_mbedtls_aes256gcm;
Expand Down
2 changes: 1 addition & 1 deletion lib/ptls_mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ static int ptls_mbedtls_cipher_setup_crypto_chacha20(ptls_cipher_context_t *_ctx
return ret;
}

ptls_cipher_algorithm_t ptls_minicrypto_chacha20 = {
ptls_cipher_algorithm_t ptls_mbedtls_chacha20 = {
"CHACHA20", PTLS_CHACHA20_KEY_SIZE, 1 /* block size */, PTLS_CHACHA20_IV_SIZE, sizeof(struct st_ptls_mbedtls_chacha20_context_t),
ptls_mbedtls_cipher_setup_crypto_chacha20};

Expand Down

0 comments on commit 25894ae

Please sign in to comment.