Home
last modified time | relevance | path

Searched refs:mbedtls_cipher_setkey (Results 1 – 16 of 16) sorted by relevance

/third_party/mbedtls/tests/suites/
Dtest_suite_cipher.function110 * mbedtls_cipher_setkey() twice is allowed or not. This currently works with
139 TEST_ASSERT( 0 == mbedtls_cipher_setkey( ctx, key->x, 8 * key->len,
235 /* mbedtls_cipher_setkey() */
237 mbedtls_cipher_setkey( &invalid_ctx,
321 mbedtls_cipher_setkey( &valid_ctx,
416 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_dec, key, key_len, MBEDTLS_DECRYPT ) );
417 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_enc, key, key_len, MBEDTLS_ENCRYPT ) );
543 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, key_len, MBEDTLS_ENCRYPT ) );
596 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_dec,
676 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_dec, key, key_len, MBEDTLS_DECRYPT ) );
[all …]
Dtest_suite_ssl.function1253 CHK( mbedtls_cipher_setkey( &t_in->cipher_ctx_enc, key0,
1255 CHK( mbedtls_cipher_setkey( &t_in->cipher_ctx_dec, key1,
1257 CHK( mbedtls_cipher_setkey( &t_out->cipher_ctx_enc, key1,
1259 CHK( mbedtls_cipher_setkey( &t_out->cipher_ctx_dec, key0,
/third_party/lwip/src/apps/snmp/
Dsnmpv3_mbedtls.c139 …if (mbedtls_cipher_setkey(&ctx, key, 8 * 8, (mode == SNMP_V3_PRIV_MODE_ENCRYPT) ? MBEDTLS_ENCRYPT … in snmpv3_crypt()
186 …if (mbedtls_cipher_setkey(&ctx, key, 16 * 8, (mode == SNMP_V3_PRIV_MODE_ENCRYPT) ? MBEDTLS_ENCRYPT… in snmpv3_crypt()
/third_party/mbedtls/programs/aes/
Dcrypt_and_hash.c349 if( mbedtls_cipher_setkey( &cipher_ctx, in main()
522 if( mbedtls_cipher_setkey( &cipher_ctx, in main()
/third_party/mbedtls/library/
Dpsa_crypto_cipher.c165 ret = mbedtls_cipher_setkey( &operation->ctx.cipher, in psa_cipher_setup()
172 ret = mbedtls_cipher_setkey( &operation->ctx.cipher, key_buffer, in psa_cipher_setup()
Dcmac.c195 if( ( retval = mbedtls_cipher_setkey( ctx, key, (int)keybits, in mbedtls_cipher_cmac_starts()
781 if( ( ret = mbedtls_cipher_setkey( &ctx, key, keybits, in cmac_test_subkeys()
Dpkcs5.c202 if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, in mbedtls_pkcs5_pbes2()
Dssl_ticket.c87 ret = mbedtls_cipher_setkey( &key->ctx, buf, in ssl_ticket_gen_key()
Dpkcs12.c158 …if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, (mbedtls_operation_t) mode ) ) !=… in mbedtls_pkcs12_pbe()
Dssl_tls13_keys.c879 if( ( ret = mbedtls_cipher_setkey( &transform->cipher_ctx_enc, in mbedtls_ssl_tls13_populate_transform()
887 if( ( ret = mbedtls_cipher_setkey( &transform->cipher_ctx_dec, in mbedtls_ssl_tls13_populate_transform()
Dnist_kw.c104 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()
Dccm.c80 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
Dgcm.c163 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_gcm_setkey()
Dcipher.c253 int mbedtls_cipher_setkey( mbedtls_cipher_context_t *ctx, in mbedtls_cipher_setkey() function
Dssl_tls.c1060 if( ( ret = mbedtls_cipher_setkey( &transform->cipher_ctx_enc, key1, in ssl_tls12_populate_transform()
1068 if( ( ret = mbedtls_cipher_setkey( &transform->cipher_ctx_dec, key2, in ssl_tls12_populate_transform()
/third_party/mbedtls/include/mbedtls/
Dcipher.h814 int mbedtls_cipher_setkey( mbedtls_cipher_context_t *ctx,