Lines Matching refs:MBEDTLS_AES_ENCRYPT
976 AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT || in mbedtls_aes_crypt_ecb()
996 if( mode == MBEDTLS_AES_ENCRYPT ) in mbedtls_aes_crypt_ecb()
1018 AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT || in mbedtls_aes_crypt_cbc()
1127 AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT || in mbedtls_aes_crypt_xts()
1142 ret = mbedtls_aes_crypt_ecb( &ctx->tweak, MBEDTLS_AES_ENCRYPT, in mbedtls_aes_crypt_xts()
1236 AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT || in mbedtls_aes_crypt_cfb128()
1254 ret = mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_cfb128()
1272 ret = mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_cfb128()
1305 AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT || in mbedtls_aes_crypt_cfb8()
1313 ret = mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_cfb8()
1322 if( mode == MBEDTLS_AES_ENCRYPT ) in mbedtls_aes_crypt_cfb8()
1363 ret = mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_ofb()
1410 ret = mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, nonce_counter, stream_block ); in mbedtls_aes_crypt_ctr()
1884 if( mode == MBEDTLS_AES_ENCRYPT ) in mbedtls_aes_self_test()