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.c635 unsigned char nonce_counter[16], in mbedtls_camellia_crypt_ctr()
650 mbedtls_camellia_crypt_ecb(ctx, MBEDTLS_CAMELLIA_ENCRYPT, nonce_counter, in mbedtls_camellia_crypt_ctr()
654 if (++nonce_counter[i - 1] != 0) { in mbedtls_camellia_crypt_ctr()
884 unsigned char nonce_counter[16]; in mbedtls_camellia_self_test() local
1003 memcpy(nonce_counter, camellia_test_ctr_nonce_counter[u], 16); in mbedtls_camellia_self_test()
1013 mbedtls_camellia_crypt_ctr(&ctx, len, &offset, nonce_counter, stream_block, in mbedtls_camellia_self_test()
1026 mbedtls_camellia_crypt_ctr(&ctx, len, &offset, nonce_counter, stream_block, in mbedtls_camellia_self_test()
Dcipher_wrap.c151 unsigned char *nonce_counter, unsigned char *stream_block, in aes_crypt_ctr_wrap() argument
154 return mbedtls_aes_crypt_ctr((mbedtls_aes_context *) ctx, length, nc_off, nonce_counter, in aes_crypt_ctr_wrap()
708 unsigned char *nonce_counter, unsigned char *stream_block, in camellia_crypt_ctr_wrap() argument
712 nonce_counter, stream_block, input, output); in camellia_crypt_ctr_wrap()
1118 unsigned char *nonce_counter, unsigned char *stream_block, in aria_crypt_ctr_wrap() argument
1122 nonce_counter, stream_block, input, output); in aria_crypt_ctr_wrap()
Daria.c655 unsigned char nonce_counter[MBEDTLS_ARIA_BLOCKSIZE], in mbedtls_aria_crypt_ctr()
666 ARIA_VALIDATE_RET(nonce_counter != NULL); in mbedtls_aria_crypt_ctr()
680 mbedtls_aria_crypt_ecb(ctx, nonce_counter, in mbedtls_aria_crypt_ctr()
684 if (++nonce_counter[i - 1] != 0) { in mbedtls_aria_crypt_ctr()
Dcipher_wrap.h75 unsigned char *nonce_counter, unsigned char *stream_block,
Daes.c1390 unsigned char nonce_counter[16], in mbedtls_aes_crypt_ctr()
1407 ret = mbedtls_aes_crypt_ecb(ctx, MBEDTLS_AES_ENCRYPT, nonce_counter, stream_block); in mbedtls_aes_crypt_ctr()
1413 if (++nonce_counter[i - 1] != 0) { in mbedtls_aes_crypt_ctr()
1770 unsigned char nonce_counter[16]; in mbedtls_aes_self_test() local
2057 memcpy(nonce_counter, aes_test_ctr_nonce_counter[u], 16); in mbedtls_aes_self_test()
2075 ret = mbedtls_aes_crypt_ctr(&ctx, len, &offset, nonce_counter, in mbedtls_aes_self_test()
/third_party/mbedtls/include/mbedtls/
Dcamellia.h294 unsigned char nonce_counter[16],
Daria.h338 unsigned char nonce_counter[MBEDTLS_ARIA_BLOCKSIZE],
Daes.h580 unsigned char nonce_counter[16],