/third_party/libwebsockets/minimal-examples/api-tests/api-test-gencrypto/ |
D | lws-genaes.c | 315 uint8_t nonce_counter[16], sb[16]; in test_genaes_ctr() local 324 memset(sb, 0, sizeof(nonce_counter)); in test_genaes_ctr() 325 memcpy(nonce_counter, ctr_iv, sizeof(ctr_iv)); in test_genaes_ctr() 332 if (lws_genaes_crypt(&ctx, ctr, 16, res, nonce_counter, sb, &nc_off, 0)) { in test_genaes_ctr() 349 memset(sb , 0, sizeof(nonce_counter)); in test_genaes_ctr() 350 memcpy(nonce_counter, ctr_iv, sizeof(ctr_iv)); in test_genaes_ctr() 357 if (lws_genaes_crypt(&ctx, res, 16, res1, nonce_counter, sb, &nc_off, 0)) { in test_genaes_ctr()
|
/third_party/mbedtls/library/ |
D | camellia.c | 666 unsigned char nonce_counter[16], in mbedtls_camellia_crypt_ctr() 674 CAMELLIA_VALIDATE_RET( nonce_counter != NULL ); in mbedtls_camellia_crypt_ctr() 687 mbedtls_camellia_crypt_ecb( ctx, MBEDTLS_CAMELLIA_ENCRYPT, nonce_counter, in mbedtls_camellia_crypt_ctr() 691 if( ++nonce_counter[i - 1] != 0 ) in mbedtls_camellia_crypt_ctr() 919 unsigned char nonce_counter[16]; in mbedtls_camellia_self_test() local 1033 memcpy( nonce_counter, camellia_test_ctr_nonce_counter[u], 16 ); in mbedtls_camellia_self_test() 1044 mbedtls_camellia_crypt_ctr( &ctx, len, &offset, nonce_counter, stream_block, in mbedtls_camellia_self_test() 1059 mbedtls_camellia_crypt_ctr( &ctx, len, &offset, nonce_counter, stream_block, in mbedtls_camellia_self_test()
|
D | cipher_wrap.c | 155 unsigned char *nonce_counter, unsigned char *stream_block, in aes_crypt_ctr_wrap() argument 158 return mbedtls_aes_crypt_ctr( (mbedtls_aes_context *) ctx, length, nc_off, nonce_counter, in aes_crypt_ctr_wrap() 710 unsigned char *nonce_counter, unsigned char *stream_block, in camellia_crypt_ctr_wrap() argument 714 nonce_counter, stream_block, input, output ); in camellia_crypt_ctr_wrap() 1119 unsigned char *nonce_counter, unsigned char *stream_block, in aria_crypt_ctr_wrap() argument 1123 nonce_counter, stream_block, input, output ); in aria_crypt_ctr_wrap()
|
D | cipher_wrap.h | 76 unsigned char *nonce_counter, unsigned char *stream_block,
|
D | aria.c | 719 unsigned char nonce_counter[MBEDTLS_ARIA_BLOCKSIZE], in mbedtls_aria_crypt_ctr() 730 ARIA_VALIDATE_RET( nonce_counter != NULL ); in mbedtls_aria_crypt_ctr() 744 mbedtls_aria_crypt_ecb( ctx, nonce_counter, in mbedtls_aria_crypt_ctr() 748 if( ++nonce_counter[i - 1] != 0 ) in mbedtls_aria_crypt_ctr()
|
D | aes.c | 1386 unsigned char nonce_counter[16], in mbedtls_aes_crypt_ctr() 1397 AES_VALIDATE_RET( nonce_counter != NULL ); in mbedtls_aes_crypt_ctr() 1410 ret = mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, nonce_counter, stream_block ); in mbedtls_aes_crypt_ctr() 1415 if( ++nonce_counter[i - 1] != 0 ) in mbedtls_aes_crypt_ctr() 1769 unsigned char nonce_counter[16]; in mbedtls_aes_self_test() local 2052 memcpy( nonce_counter, aes_test_ctr_nonce_counter[u], 16 ); in mbedtls_aes_self_test() 2072 ret = mbedtls_aes_crypt_ctr( &ctx, len, &offset, nonce_counter, in mbedtls_aes_self_test()
|
/third_party/mbedtls/include/mbedtls/ |
D | camellia.h | 295 unsigned char nonce_counter[16],
|
D | aria.h | 339 unsigned char nonce_counter[MBEDTLS_ARIA_BLOCKSIZE],
|
D | aes.h | 586 unsigned char nonce_counter[16],
|