/mbedtls-development/tests/ |
A D | CMakeLists.txt | 171 add_test_suite(cipher cipher.aes) 172 add_test_suite(cipher cipher.camellia) 173 add_test_suite(cipher cipher.ccm) 174 add_test_suite(cipher cipher.chacha20) 175 add_test_suite(cipher cipher.chachapoly) 176 add_test_suite(cipher cipher.des) 177 add_test_suite(cipher cipher.gcm) 178 add_test_suite(cipher cipher.misc) 179 add_test_suite(cipher cipher.nist_kw) 180 add_test_suite(cipher cipher.null) [all …]
|
/mbedtls-development/library/ |
A D | psa_crypto_cipher.c | 169 mbedtls_cipher_init( &operation->ctx.cipher ); in cipher_setup() 178 ret = mbedtls_cipher_setup( &operation->ctx.cipher, cipher_info ); in cipher_setup() 189 ret = mbedtls_cipher_setkey( &operation->ctx.cipher, in cipher_setup() 196 ret = mbedtls_cipher_setkey( &operation->ctx.cipher, key_buffer, in cipher_setup() 260 mbedtls_cipher_set_iv( &operation->ctx.cipher, in cipher_set_iv() 385 ( operation->ctx.cipher.unprocessed_len + input_length ) in cipher_update() 401 status = psa_cipher_update_ecb( &operation->ctx.cipher, in cipher_update() 410 mbedtls_cipher_update( &operation->ctx.cipher, input, in cipher_update() 428 if( operation->ctx.cipher.unprocessed_len != 0 ) in cipher_finish() 439 mbedtls_cipher_finish( &operation->ctx.cipher, in cipher_finish() [all …]
|
A D | gcm.c | 139 mbedtls_cipher_id_t cipher, in mbedtls_gcm_setkey() argument 150 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_gcm_setkey() 891 mbedtls_cipher_id_t cipher = MBEDTLS_CIPHER_ID_AES; in mbedtls_gcm_self_test() local 906 ret = mbedtls_gcm_setkey( &ctx, cipher, in mbedtls_gcm_self_test() 963 ret = mbedtls_gcm_setkey( &ctx, cipher, in mbedtls_gcm_self_test() 999 ret = mbedtls_gcm_setkey( &ctx, cipher, in mbedtls_gcm_self_test() 1073 ret = mbedtls_gcm_setkey( &ctx, cipher, in mbedtls_gcm_self_test()
|
A D | cipher_wrap.h | 45 mbedtls_cipher_id_t cipher; member
|
A D | nist_kw.c | 89 mbedtls_cipher_id_t cipher, in mbedtls_nist_kw_setkey() argument 97 cipher_info = mbedtls_cipher_info_from_values( cipher, in mbedtls_nist_kw_setkey() 115 if( cipher != MBEDTLS_CIPHER_ID_AES ) in mbedtls_nist_kw_setkey()
|
A D | ssl_ticket.c | 129 mbedtls_cipher_type_t cipher, in mbedtls_ssl_ticket_setup() argument 140 cipher_info = mbedtls_cipher_info_from_type( cipher); in mbedtls_ssl_ticket_setup()
|
A D | ssl_tls13_keys.c | 811 cipher_info = mbedtls_cipher_info_from_type( ciphersuite_info->cipher ); in mbedtls_ssl_tls13_populate_transform() 815 ciphersuite_info->cipher ) ); in mbedtls_ssl_tls13_populate_transform() 953 cipher_info = mbedtls_cipher_info_from_type( ciphersuite_info->cipher ); in mbedtls_ssl_tls13_generate_handshake_keys() 1143 handshake->ciphersuite_info->cipher ); in mbedtls_ssl_tls13_generate_application_keys()
|
A D | ccm.c | 60 mbedtls_cipher_id_t cipher, in mbedtls_ccm_setkey() argument 67 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_ccm_setkey()
|
/mbedtls-development/tests/suites/ |
A D | test_suite_cipher.function | 2 #include "mbedtls/cipher.h" 16 /* Check the internal consistency of a cipher info structure, and 528 void dec_empty_buf( int cipher, 719 data_t * iv, data_t * cipher, 754 TEST_ASSERT( 0 == mbedtls_cipher_update( &ctx, cipher->x, cipher->len, output, &outlen ) ); 802 * key, cipher and tag can't be empty. */ 842 cipher_plus_tag_len = cipher->len + tag->len; 844 memcpy( cipher_plus_tag, cipher->x, cipher->len ); 946 TEST_ASSERT( outlen == cipher->len + tag->len ); 947 TEST_ASSERT( memcmp( encrypt_buf, cipher->x, cipher->len ) == 0 ); [all …]
|
A D | test_suite_psa_crypto_metadata.data | 326 Block cipher key type: AES 330 Block cipher key type: ARIA 334 Block cipher key type: DES 338 Block cipher key type: Camellia 342 Stream cipher key type: ChaCha20
|
A D | test_suite_cmac.function | 2 #include "mbedtls/cipher.h" 29 /* Test NULL cipher info */
|
A D | test_suite_cmac.data | 31 CMAC init #7 Camellia: wrong cipher
|
A D | test_suite_ssl.function | 59 const char *cipher; 86 opts->cipher = ""; 1217 /* Pick cipher */ 1227 * `keylen == 0` in the case of the NULL cipher. */ 1233 /* Setup cipher contexts */ 1733 if( strlen( options->cipher ) > 0 ) 4476 options.cipher = cipher; 4489 void handshake_cipher( char* cipher, int pk_alg, int dtls ) 4571 options.cipher = "TLS-DHE-RSA-WITH-AES-256-CBC-SHA256"; 4617 options.cipher = cipher; [all …]
|
/mbedtls-development/docs/ |
A D | getting_started.md | 193 **To encrypt a message with a symmetric cipher:** 219 printf("Encrypt with cipher...\t"); 245 printf("Failed to begin cipher operation\n"); 256 printf("Failed to update cipher operation\n"); 262 printf("Failed to finish cipher operation\n"); 267 /* Clean up cipher operation context */ 277 **To decrypt a message with a symmetric cipher:** 303 printf("Decrypt with cipher...\t"); 329 printf("Failed to begin cipher operation\n"); 351 /* Clean up cipher operation context */ [all …]
|
A D | use-psa-crypto.md | 98 ciphers and ChachaPoly); the only cipher supported is AES (this excludes Aria, 103 Use in TLS: automatic. Used when the cipher and mode is supported (with 104 gracious fallback to the legacy API otherwise) in all places where a cipher is 114 ### TLS: cipher operations based on PSA
|
/mbedtls-development/include/mbedtls/ |
A D | ssl_ticket.h | 109 mbedtls_cipher_type_t cipher,
|
A D | nist_kw.h | 99 mbedtls_cipher_id_t cipher,
|
A D | psa_util.h | 47 mbedtls_cipher_type_t cipher ) in mbedtls_psa_translate_cipher_type() argument 49 switch( cipher ) in mbedtls_psa_translate_cipher_type()
|
A D | gcm.h | 110 mbedtls_cipher_id_t cipher,
|
A D | ccm.h | 130 mbedtls_cipher_id_t cipher,
|
A D | ssl_ciphersuites.h | 372 mbedtls_cipher_type_t MBEDTLS_PRIVATE(cipher);
|
/mbedtls-development/ChangeLog.d/ |
A D | ccm_star_no_tag.txt | 7 * Add support for CCM*-no-tag cipher to the PSA.
|
/mbedtls-development/include/psa/ |
A D | crypto_builtin_primitives.h | 109 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher);
|
A D | crypto_se_driver.h | 1323 const psa_drv_se_cipher_t *MBEDTLS_PRIVATE(cipher);
|
/mbedtls-development/scripts/data_files/ |
A D | query_config.fmt | 45 #include "mbedtls/cipher.h"
|