Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 42) sorted by relevance

12

/mbedtls-development/tests/
A DCMakeLists.txt171 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 Dpsa_crypto_cipher.c169 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 Dgcm.c139 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 Dcipher_wrap.h45 mbedtls_cipher_id_t cipher; member
A Dnist_kw.c89 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 Dssl_ticket.c129 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 Dssl_tls13_keys.c811 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 Dccm.c60 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 Dtest_suite_cipher.function2 #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 Dtest_suite_psa_crypto_metadata.data326 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 Dtest_suite_cmac.function2 #include "mbedtls/cipher.h"
29 /* Test NULL cipher info */
A Dtest_suite_cmac.data31 CMAC init #7 Camellia: wrong cipher
A Dtest_suite_ssl.function59 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 Dgetting_started.md193 **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 Duse-psa-crypto.md98 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 Dssl_ticket.h109 mbedtls_cipher_type_t cipher,
A Dnist_kw.h99 mbedtls_cipher_id_t cipher,
A Dpsa_util.h47 mbedtls_cipher_type_t cipher ) in mbedtls_psa_translate_cipher_type() argument
49 switch( cipher ) in mbedtls_psa_translate_cipher_type()
A Dgcm.h110 mbedtls_cipher_id_t cipher,
A Dccm.h130 mbedtls_cipher_id_t cipher,
A Dssl_ciphersuites.h372 mbedtls_cipher_type_t MBEDTLS_PRIVATE(cipher);
/mbedtls-development/ChangeLog.d/
A Dccm_star_no_tag.txt7 * Add support for CCM*-no-tag cipher to the PSA.
/mbedtls-development/include/psa/
A Dcrypto_builtin_primitives.h109 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher);
A Dcrypto_se_driver.h1323 const psa_drv_se_cipher_t *MBEDTLS_PRIVATE(cipher);
/mbedtls-development/scripts/data_files/
A Dquery_config.fmt45 #include "mbedtls/cipher.h"

Completed in 33 milliseconds

12