/aosp_15_r20/external/mbedtls/tests/suites/ |
H A D | test_suite_cipher.function | 92 * mbedtls_cipher_setkey() twice is allowed or not. This currently works with 119 TEST_ASSERT(0 == mbedtls_cipher_setkey(ctx, key->x, 8 * key->len, 217 /* mbedtls_cipher_setkey() */ 219 mbedtls_cipher_setkey(&invalid_ctx, 301 mbedtls_cipher_setkey(&valid_ctx, 396 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_dec, key, key_len, MBEDTLS_DECRYPT)); 397 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_enc, key, key_len, MBEDTLS_ENCRYPT)); 529 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx, key, key_len, MBEDTLS_ENCRYPT)); 596 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_dec, 687 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_dec, key, key_len, MBEDTLS_DECRYPT)); [all …]
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/ |
H A D | test_suite_cipher.function | 92 * mbedtls_cipher_setkey() twice is allowed or not. This currently works with 119 TEST_ASSERT(0 == mbedtls_cipher_setkey(ctx, key->x, 8 * key->len, 221 /* mbedtls_cipher_setkey() */ 223 mbedtls_cipher_setkey(&invalid_ctx, 305 mbedtls_cipher_setkey(&valid_ctx, 400 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_dec, key, key_len, MBEDTLS_DECRYPT)); 401 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_enc, key, key_len, MBEDTLS_ENCRYPT)); 533 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx, key, key_len, MBEDTLS_ENCRYPT)); 600 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_dec, 691 TEST_ASSERT(0 == mbedtls_cipher_setkey(&ctx_dec, key, key_len, MBEDTLS_DECRYPT)); [all …]
|
/aosp_15_r20/external/mbedtls/programs/aes/ |
H A D | crypt_and_hash.c | 302 if (mbedtls_cipher_setkey(&cipher_ctx, in main() 454 if (mbedtls_cipher_setkey(&cipher_ctx, in main()
|
/aosp_15_r20/external/mbedtls/library/ |
H A D | psa_crypto_cipher.c | 187 ret = mbedtls_cipher_setkey(&operation->ctx.cipher, in psa_cipher_setup() 193 ret = mbedtls_cipher_setkey(&operation->ctx.cipher, key_buffer, in psa_cipher_setup()
|
H A D | ssl_ticket.c | 100 ret = mbedtls_cipher_setkey(&key->ctx, buf, in ssl_ticket_gen_key() 189 ret = mbedtls_cipher_setkey(&key->ctx, k, bitlen, MBEDTLS_ENCRYPT); in mbedtls_ssl_ticket_rotate()
|
H A D | cmac.c | 172 if ((retval = mbedtls_cipher_setkey(ctx, key, (int) keybits, in mbedtls_cipher_cmac_starts() 765 if ((ret = mbedtls_cipher_setkey(&ctx, key, keybits, in cmac_test_subkeys()
|
H A D | pkcs12.c | 200 mbedtls_cipher_setkey(&cipher_ctx, key, 8 * keylen, in mbedtls_pkcs12_pbe_ext()
|
H A D | pkcs5.c | 227 if ((ret = mbedtls_cipher_setkey(&cipher_ctx, key, 8 * keylen, in mbedtls_pkcs5_pbes2_ext()
|
H A D | ssl_tls13_keys.c | 1021 if ((ret = mbedtls_cipher_setkey(&transform->cipher_ctx_enc, in mbedtls_ssl_tls13_populate_transform() 1028 if ((ret = mbedtls_cipher_setkey(&transform->cipher_ctx_dec, in mbedtls_ssl_tls13_populate_transform()
|
H A D | nist_kw.c | 90 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()
|
H A D | ccm.c | 72 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/programs/aes/ |
H A D | crypt_and_hash.c | 306 if (mbedtls_cipher_setkey(&cipher_ctx, in main() 458 if (mbedtls_cipher_setkey(&cipher_ctx, in main()
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/library/ |
H A D | ssl_ticket.c | 104 ret = mbedtls_cipher_setkey(&key->ctx, buf, in ssl_ticket_gen_key() 194 ret = mbedtls_cipher_setkey(&key->ctx, k, bitlen, MBEDTLS_ENCRYPT); in mbedtls_ssl_ticket_rotate()
|
H A D | psa_crypto_cipher.c | 317 ret = mbedtls_cipher_setkey(&operation->ctx.cipher, in psa_cipher_setup() 323 ret = mbedtls_cipher_setkey(&operation->ctx.cipher, key_buffer, in psa_cipher_setup()
|
H A D | cmac.c | 167 if ((retval = mbedtls_cipher_setkey(ctx, key, (int) keybits, in mbedtls_cipher_cmac_starts() 765 if ((ret = mbedtls_cipher_setkey(&ctx, key, keybits, in cmac_test_subkeys()
|
H A D | pkcs12.c | 203 if ((ret = mbedtls_cipher_setkey(&cipher_ctx, key, 8 * keylen, in mbedtls_pkcs12_pbe_ext()
|
H A D | pkcs5.c | 229 if ((ret = mbedtls_cipher_setkey(&cipher_ctx, key, 8 * keylen, in mbedtls_pkcs5_pbes2_ext()
|
H A D | ssl_tls13_keys.c | 1009 if ((ret = mbedtls_cipher_setkey(&transform->cipher_ctx_enc, in mbedtls_ssl_tls13_populate_transform() 1016 if ((ret = mbedtls_cipher_setkey(&transform->cipher_ctx_dec, in mbedtls_ssl_tls13_populate_transform()
|
H A D | nist_kw.c | 90 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()
|
/aosp_15_r20/external/mbedtls/programs/cipher/ |
H A D | cipher_aead_demo.c | 145 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT)); in aead_prepare()
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/programs/cipher/ |
H A D | cipher_aead_demo.c | 145 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT)); in aead_prepare()
|
/aosp_15_r20/external/mbedtls/tests/src/test_helpers/ |
H A D | ssl_helpers.c | 1172 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_enc, key0, in mbedtls_test_ssl_build_transforms() 1176 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_dec, key1, in mbedtls_test_ssl_build_transforms() 1180 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_enc, key1, in mbedtls_test_ssl_build_transforms() 1184 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_dec, key0, in mbedtls_test_ssl_build_transforms()
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/src/test_helpers/ |
H A D | ssl_helpers.c | 1327 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_enc, key0, in mbedtls_test_ssl_build_transforms() 1331 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_dec, key1, in mbedtls_test_ssl_build_transforms() 1335 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_enc, key1, in mbedtls_test_ssl_build_transforms() 1339 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_dec, key0, in mbedtls_test_ssl_build_transforms()
|
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/include/mbedtls/ |
H A D | cipher.h | 823 int mbedtls_cipher_setkey(mbedtls_cipher_context_t *ctx,
|
/aosp_15_r20/external/mbedtls/include/mbedtls/ |
H A D | cipher.h | 833 int mbedtls_cipher_setkey(mbedtls_cipher_context_t *ctx,
|