Home
last modified time | relevance | path

Searched refs:cipher_type (Results 1 – 25 of 51) sorted by relevance

123

/external/scapy/scapy/layers/tls/
Dbasefields.py126 cipher_type = pkt.tls_session.rcs.cipher.type
127 if cipher_type == "block":
130 elif cipher_type == "aead":
142 cipher_type = pkt.tls_session.rcs.cipher.type
143 if cipher_type == "block":
146 elif cipher_type == "aead":
Drecord.py447 cipher_type = self.tls_session.rcs.cipher.type
468 if cipher_type == 'block':
514 elif cipher_type == 'stream':
526 elif cipher_type == 'aead':
685 cipher_type = self.tls_session.wcs.cipher.type
687 if cipher_type == 'block':
717 elif cipher_type == "stream":
723 elif cipher_type == "aead":
/external/libsrtp2/crypto/kernel/
Dcrypto_kernel.c184 ctype->cipher_type->description); in srtp_crypto_kernel_status()
186 status = srtp_cipher_type_self_test(ctype->cipher_type); in srtp_crypto_kernel_status()
246 ctype->cipher_type->description); in srtp_crypto_kernel_shutdown()
306 srtp_cipher_type_test(new_ct, ctype->cipher_type->test_data); in srtp_crypto_kernel_do_load_cipher_type()
312 } else if (new_ct == ctype->cipher_type) { in srtp_crypto_kernel_do_load_cipher_type()
333 new_ctype->cipher_type = new_ct; in srtp_crypto_kernel_do_load_cipher_type()
437 return ctype->cipher_type; in srtp_crypto_kernel_get_cipher_type()
/external/linux-kselftest/tools/testing/selftests/net/
Dtls.c40 static void tls_crypto_info_init(uint16_t tls_version, uint16_t cipher_type, in tls_crypto_info_init() argument
45 switch (cipher_type) { in tls_crypto_info_init()
49 tls12->chacha20.info.cipher_type = cipher_type; in tls_crypto_info_init()
54 tls12->aes128.info.cipher_type = cipher_type; in tls_crypto_info_init()
59 tls12->sm4gcm.info.cipher_type = cipher_type; in tls_crypto_info_init()
64 tls12->sm4ccm.info.cipher_type = cipher_type; in tls_crypto_info_init()
69 tls12->aesccm128.info.cipher_type = cipher_type; in tls_crypto_info_init()
74 tls12->aesgcm256.info.cipher_type = cipher_type; in tls_crypto_info_init()
237 uint16_t cipher_type; in FIXTURE_VARIANT() local
244 .cipher_type = TLS_CIPHER_AES_GCM_128,
[all …]
/external/openthread/third_party/mbedtls/repo/tests/suites/
Dtest_suite_cmac.function102 void mbedtls_cmac_setkey(int cipher_type, int key_size, int result)
112 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
128 void mbedtls_cmac_multiple_blocks(int cipher_type, data_t *key,
151 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
196 void mbedtls_cmac_multiple_operations_same_key(int cipher_type,
235 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
Dtest_suite_block_cipher.function97 void block_cipher_psa_dynamic_dispatch(int cipher_type, int pre_psa_ret, int post_psa_engine)
107 TEST_EQUAL(pre_psa_ret, mbedtls_block_cipher_setup(&ctx, cipher_type));
120 TEST_EQUAL(0, mbedtls_block_cipher_setup(&ctx, cipher_type));
Dtest_suite_ssl_decrypt.function23 const mbedtls_cipher_type_t cipher_type = MBEDTLS_CIPHER_NULL;
48 cipher_type, hash_id, 0, 0,
124 void ssl_decrypt_non_etm_cbc(int cipher_type, int hash_id, int trunc_hmac,
160 ret = mbedtls_test_ssl_build_transforms(&t0, &t1, cipher_type, hash_id,
Dtest_suite_cipher.function153 const int *cipher_type;
155 for (cipher_type = mbedtls_cipher_list(); *cipher_type != 0; cipher_type++) {
157 mbedtls_cipher_info_from_type(*cipher_type);
158 mbedtls_test_set_step(*cipher_type);
159 if (!check_cipher_info(*cipher_type, info)) {
/external/mbedtls/tests/suites/
Dtest_suite_cmac.function102 void mbedtls_cmac_setkey(int cipher_type, int key_size, int result)
112 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
128 void mbedtls_cmac_multiple_blocks(int cipher_type, data_t *key,
151 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
196 void mbedtls_cmac_multiple_operations_same_key(int cipher_type,
235 TEST_ASSERT((cipher_info = mbedtls_cipher_info_from_type(cipher_type))
Dtest_suite_ssl_decrypt.function23 const mbedtls_cipher_type_t cipher_type = MBEDTLS_CIPHER_NULL;
48 cipher_type, hash_id, 0, 0,
124 void ssl_decrypt_non_etm_cbc(int cipher_type, int hash_id, int trunc_hmac,
160 ret = mbedtls_test_ssl_build_transforms(&t0, &t1, cipher_type, hash_id,
Dtest_suite_cipher.function153 const int *cipher_type;
155 for (cipher_type = mbedtls_cipher_list(); *cipher_type != 0; cipher_type++) {
157 mbedtls_cipher_info_from_type(*cipher_type);
158 mbedtls_test_set_step(*cipher_type);
159 if (!check_cipher_info(*cipher_type, info)) {
/external/mbedtls/include/mbedtls/
Dpkcs12.h90 mbedtls_cipher_type_t cipher_type,
140 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type,
/external/openthread/third_party/mbedtls/repo/include/mbedtls/
Dpkcs12.h90 mbedtls_cipher_type_t cipher_type,
140 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type,
/external/mbedtls/library/
Dpkcs12.c122 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type,
131 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type, in mbedtls_pkcs12_pbe() argument
142 return mbedtls_pkcs12_pbe_ext(pbe_params, mode, cipher_type, md_type, in mbedtls_pkcs12_pbe()
149 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type, in mbedtls_pkcs12_pbe_ext() argument
167 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in mbedtls_pkcs12_pbe_ext()
Dcmac.c734 mbedtls_cipher_type_t cipher_type, in cmac_test_subkeys() argument
744 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_subkeys()
773 cipher_type == MBEDTLS_CIPHER_AES_192_ECB) { in cmac_test_subkeys()
830 mbedtls_cipher_type_t cipher_type, in cmac_test_wth_cipher() argument
838 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_wth_cipher()
858 (cipher_type == MBEDTLS_CIPHER_AES_192_ECB || in cmac_test_wth_cipher()
859 cipher_type == MBEDTLS_CIPHER_DES_EDE3_ECB)) { in cmac_test_wth_cipher()
/external/openthread/third_party/mbedtls/repo/library/
Dpkcs12.c124 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type,
133 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type, in mbedtls_pkcs12_pbe() argument
144 return mbedtls_pkcs12_pbe_ext(pbe_params, mode, cipher_type, md_type, in mbedtls_pkcs12_pbe()
151 mbedtls_cipher_type_t cipher_type, mbedtls_md_type_t md_type, in mbedtls_pkcs12_pbe_ext() argument
170 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in mbedtls_pkcs12_pbe_ext()
Dcmac.c734 mbedtls_cipher_type_t cipher_type, in cmac_test_subkeys() argument
744 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_subkeys()
773 cipher_type == MBEDTLS_CIPHER_AES_192_ECB) { in cmac_test_subkeys()
830 mbedtls_cipher_type_t cipher_type, in cmac_test_wth_cipher() argument
838 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_wth_cipher()
858 (cipher_type == MBEDTLS_CIPHER_AES_192_ECB || in cmac_test_wth_cipher()
859 cipher_type == MBEDTLS_CIPHER_DES_EDE3_ECB)) { in cmac_test_wth_cipher()
/external/libsrtp2/srtp/
Dsrtp.c330 p->rtp.cipher_type, &session_keys->rtp_cipher, in srtp_stream_alloc()
351 p->rtcp.cipher_type, &session_keys->rtcp_cipher, in srtp_stream_alloc()
403 switch (p->rtp.cipher_type) { in srtp_stream_alloc()
413 enc_xtn_hdr_cipher_type = p->rtp.cipher_type; in srtp_stream_alloc()
3167 p->cipher_type = SRTP_AES_ICM_128; in srtp_crypto_policy_set_rtp_default()
3178 p->cipher_type = SRTP_AES_ICM_128; in srtp_crypto_policy_set_rtcp_default()
3195 p->cipher_type = SRTP_AES_ICM_128; in srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32()
3212 p->cipher_type = SRTP_AES_ICM_128; in srtp_crypto_policy_set_aes_cm_128_null_auth()
3227 p->cipher_type = SRTP_NULL_CIPHER; in srtp_crypto_policy_set_null_cipher_hmac_sha1_80()
3241 p->cipher_type = SRTP_NULL_CIPHER; in srtp_crypto_policy_set_null_cipher_hmac_null()
[all …]
/external/libsrtp2/crypto/include/
Dcrypto_kernel.h74 const srtp_cipher_type_t *cipher_type; member
/external/kernel-headers/original/uapi/linux/
Dtls.h122 __u16 cipher_type; member
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt10.c65 .cipher_type = TLS_CIPHER_AES_GCM_128,
/external/mbedtls/programs/test/
Dbenchmark.c809 mbedtls_cipher_type_t cipher_type; in main() local
812 for (keysize = 128, cipher_type = MBEDTLS_CIPHER_AES_128_ECB; in main()
814 keysize += 64, cipher_type++) { in main()
820 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in main()
/external/openthread/third_party/mbedtls/repo/programs/test/
Dbenchmark.c888 mbedtls_cipher_type_t cipher_type; in main() local
891 for (keysize = 128, cipher_type = MBEDTLS_CIPHER_AES_128_ECB; in main()
893 keysize += 64, cipher_type++) { in main()
899 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in main()
/external/libsrtp2/include/
Dsrtp.h227 srtp_cipher_type_id_t cipher_type; /**< An integer representing */ member
/external/openthread/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c1133 static void mbedtls_test_ssl_cipher_info_from_type(mbedtls_cipher_type_t cipher_type, in mbedtls_test_ssl_cipher_info_from_type() argument
1137 switch (cipher_type) { in mbedtls_test_ssl_cipher_info_from_type()
1252 int cipher_type, int hash_id, in mbedtls_test_ssl_build_transforms() argument
1288 mbedtls_test_ssl_cipher_info_from_type((mbedtls_cipher_type_t) cipher_type, in mbedtls_test_ssl_build_transforms()
1303 cipher_info = mbedtls_cipher_info_from_type((mbedtls_cipher_type_t) cipher_type); in mbedtls_test_ssl_build_transforms()
1537 status = mbedtls_ssl_cipher_to_psa(cipher_type, in mbedtls_test_ssl_build_transforms()

123