Searched refs:aes_ctx (Results 1 – 4 of 4) sorted by relevance
/AliOS-Things-master/components/mbedtls/library/ |
A D | ctr_drbg.c | 94 mbedtls_aes_init( &ctx->aes_ctx ); in mbedtls_ctr_drbg_seed_entropy_len() 105 if( ( ret = mbedtls_aes_setkey_enc( &ctx->aes_ctx, key, MBEDTLS_CTR_DRBG_KEYBITS ) ) != 0 ) in mbedtls_ctr_drbg_seed_entropy_len() 135 mbedtls_aes_free( &ctx->aes_ctx ); in mbedtls_ctr_drbg_free() 162 mbedtls_aes_context aes_ctx; in block_cipher_df() local 172 mbedtls_aes_init( &aes_ctx ); in block_cipher_df() 196 if( ( ret = mbedtls_aes_setkey_enc( &aes_ctx, key, MBEDTLS_CTR_DRBG_KEYBITS ) ) != 0 ) in block_cipher_df() 218 … if( ( ret = mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, chain, chain ) ) != 0 ) in block_cipher_df() 235 if( ( ret = mbedtls_aes_setkey_enc( &aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ) ) != 0 ) in block_cipher_df() 244 if( ( ret = mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, iv, iv ) ) != 0 ) in block_cipher_df() 252 mbedtls_aes_free( &aes_ctx ); in block_cipher_df() [all …]
|
A D | pem.c | 205 mbedtls_aes_context aes_ctx; in pem_aes_decrypt() local 209 mbedtls_aes_init( &aes_ctx ); in pem_aes_decrypt() 214 if( ( ret = mbedtls_aes_setkey_dec( &aes_ctx, aes_key, keylen * 8 ) ) != 0 ) in pem_aes_decrypt() 216 ret = mbedtls_aes_crypt_cbc( &aes_ctx, MBEDTLS_AES_DECRYPT, buflen, in pem_aes_decrypt() 220 mbedtls_aes_free( &aes_ctx ); in pem_aes_decrypt()
|
/AliOS-Things-master/components/mbedtls/programs/aes/ |
A D | aescrypt2.c | 114 mbedtls_aes_context aes_ctx; in main() local 126 mbedtls_aes_init( &aes_ctx ); in main() 299 mbedtls_aes_setkey_enc( &aes_ctx, digest, 256 ); in main() 319 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, buffer, buffer ); in main() 398 mbedtls_aes_setkey_dec( &aes_ctx, digest, 256 ); in main() 415 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_DECRYPT, buffer, buffer ); in main() 476 mbedtls_aes_free( &aes_ctx ); in main()
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | ctr_drbg.h | 132 mbedtls_aes_context aes_ctx; /*!< The AES context. */ member
|
Completed in 8 milliseconds