Home
last modified time | relevance | path

Searched refs:nonce_counter (Results 1 – 9 of 9) sorted by relevance

/third_party/libwebsockets/minimal-examples/api-tests/api-test-gencrypto/
Dlws-genaes.c315 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/
Dcamellia.c666 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()
Dcipher_wrap.c155 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()
Dcipher_wrap.h76 unsigned char *nonce_counter, unsigned char *stream_block,
Daria.c719 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()
Daes.c1386 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/
Dcamellia.h295 unsigned char nonce_counter[16],
Daria.h339 unsigned char nonce_counter[MBEDTLS_ARIA_BLOCKSIZE],
Daes.h586 unsigned char nonce_counter[16],