Lines Matching refs:ctx

64     mbedtls_aes_context ctx;  variable
85 mbedtls_aes_init(&ctx);
86 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
92 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext);
97 mbedtls_aes_setkey_dec(&ctx, key_256, 256);
98 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext);
102 mbedtls_aes_free(&ctx);
111 mbedtls_aes_context ctx; variable
134 mbedtls_aes_init(&ctx);
135 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
141 mbedtls_aes_crypt_ctr(&ctx, SZ, &nc_off, nonce, stream_block, plaintext, chipertext);
147 mbedtls_aes_crypt_ctr(&ctx, SZ, &nc_off, nonce, stream_block, chipertext, decryptedtext);
151 mbedtls_aes_free(&ctx);
160 mbedtls_aes_context ctx; variable
182 mbedtls_aes_init(&ctx);
183 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
189 mbedtls_aes_crypt_ofb(&ctx, SZ, &nc_off, nonce, plaintext, chipertext);
195 mbedtls_aes_crypt_ofb(&ctx, SZ, &nc_off, nonce, chipertext, decryptedtext);
199 mbedtls_aes_free(&ctx);
208 mbedtls_aes_context ctx; variable
229 mbedtls_aes_init(&ctx);
230 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
236 mbedtls_aes_crypt_cfb8(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext);
241 mbedtls_aes_crypt_cfb8(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext);
245 mbedtls_aes_free(&ctx);
254 mbedtls_aes_context ctx; variable
276 mbedtls_aes_init(&ctx);
277 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
283 mbedtls_aes_crypt_cfb128(&ctx, MBEDTLS_AES_ENCRYPT, SZ, &nc_off, nonce, plaintext, chipertext);
289 …mbedtls_aes_crypt_cfb128(&ctx, MBEDTLS_AES_DECRYPT, SZ, &nc_off, nonce, chipertext, decryptedtext);
293 mbedtls_aes_free(&ctx);
302 mbedtls_aes_context ctx; variable
352 mbedtls_aes_init(&ctx);
353 mbedtls_aes_setkey_enc(&ctx, key, 128);
371 mbedtls_aes_crypt_ctr(&ctx, length, &offset, nonce,
386 mbedtls_aes_crypt_ctr(&ctx, length, &offset, nonce,
393 mbedtls_aes_free(&ctx);
403 mbedtls_aes_context ctx; variable
451 mbedtls_aes_init(&ctx);
452 mbedtls_aes_setkey_enc(&ctx, key, 128);
467 mbedtls_aes_crypt_ofb(&ctx, length, &offset, iv, plaintext + idx, chipertext + idx);
479 mbedtls_aes_crypt_ofb(&ctx, length, &offset, iv, chipertext + idx, decryptedtext + idx);
484 mbedtls_aes_free(&ctx);
493 mbedtls_aes_context ctx; variable
541 mbedtls_aes_init(&ctx);
542 mbedtls_aes_setkey_enc(&ctx, key, 128);
554 … mbedtls_aes_crypt_cfb8(&ctx, MBEDTLS_AES_ENCRYPT, length, iv, plaintext + idx, chipertext + idx);
563 …mbedtls_aes_crypt_cfb8(&ctx, MBEDTLS_AES_DECRYPT, length, iv, chipertext + idx, decryptedtext + id…
569 mbedtls_aes_free(&ctx);
578 mbedtls_aes_context ctx; variable
626 mbedtls_aes_init(&ctx);
627 mbedtls_aes_setkey_enc(&ctx, key, 128);
641 …mbedtls_aes_crypt_cfb128(&ctx, MBEDTLS_AES_ENCRYPT, length, &offset, iv, plaintext + idx, chiperte…
651 …mbedtls_aes_crypt_cfb128(&ctx, MBEDTLS_AES_DECRYPT, length, &offset, iv, chipertext + idx, decrypt…
656 mbedtls_aes_free(&ctx);
683 mbedtls_aes_context ctx; variable
702 mbedtls_aes_init(&ctx);
703 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
708 mbedtls_aes_crypt_ctr(&ctx, SZ, &nc_off, nonce, stream_block, buf, buf);
714 mbedtls_aes_crypt_ctr(&ctx, SZ, &nc_off, nonce, stream_block, buf, buf);
720 mbedtls_aes_free(&ctx);
728 mbedtls_aes_context ctx; variable
750 mbedtls_aes_init(&ctx);
751 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
757 mbedtls_aes_crypt_ofb(&ctx, SZ, &nc_off, nonce, plaintext, chipertext);
764 mbedtls_aes_crypt_ofb(&ctx, SZ, &nc_off, nonce, chipertext, decryptedtext);
768 mbedtls_aes_free(&ctx);
788 mbedtls_aes_context ctx; in aes_psram_ctr_test() local
806 mbedtls_aes_init(&ctx); in aes_psram_ctr_test()
807 mbedtls_aes_setkey_enc(&ctx, key, 128); in aes_psram_ctr_test()
817 … mbedtls_aes_crypt_ctr(&ctx, SZ, &offset, nonce, stream_block, plaintext + i, chipertext + i); in aes_psram_ctr_test()
824 … mbedtls_aes_crypt_ctr(&ctx, SZ, &offset, nonce, stream_block, chipertext + i, decryptedtext); in aes_psram_ctr_test()
830 mbedtls_aes_free(&ctx); in aes_psram_ctr_test()
838 mbedtls_aes_context ctx; in aes_psram_one_buf_ctr_test() local
852 mbedtls_aes_init(&ctx); in aes_psram_one_buf_ctr_test()
853 mbedtls_aes_setkey_enc(&ctx, key, 128); in aes_psram_one_buf_ctr_test()
864 mbedtls_aes_crypt_ctr(&ctx, SZ, &offset, nonce, stream_block, buf + i, buf + i); in aes_psram_one_buf_ctr_test()
871 mbedtls_aes_crypt_ctr(&ctx, SZ, &offset, nonce, stream_block, buf + i, buf); in aes_psram_one_buf_ctr_test()
876 mbedtls_aes_free(&ctx); in aes_psram_one_buf_ctr_test()
1406 mbedtls_aes_context ctx; in aes_ext_flash_ctr_test() local
1420 mbedtls_aes_init(&ctx); in aes_ext_flash_ctr_test()
1421 mbedtls_aes_setkey_enc(&ctx, key, 128); in aes_ext_flash_ctr_test()
1428 mbedtls_aes_crypt_ctr(&ctx, SZ, &offset, nonce, stream_block, long_input, chipertext); in aes_ext_flash_ctr_test()
1435 mbedtls_aes_crypt_ctr(&ctx, SZ, &offset, nonce, stream_block, chipertext, decryptedtext); in aes_ext_flash_ctr_test()
1439 mbedtls_aes_free(&ctx); in aes_ext_flash_ctr_test()