Lines Matching refs:iv
863 unsigned char iv[16], in mbedtls_aes_crypt_cbc()
876 if( mbedtls_padlock_xcryptcbc( ctx, mode, length, iv, input, output ) == 0 ) in mbedtls_aes_crypt_cbc()
893 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_aes_crypt_cbc()
895 memcpy( iv, temp, 16 ); in mbedtls_aes_crypt_cbc()
907 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_aes_crypt_cbc()
910 memcpy( iv, output, 16 ); in mbedtls_aes_crypt_cbc()
930 unsigned char iv[16], in mbedtls_aes_crypt_cfb128()
942 mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_cfb128()
945 *output++ = (unsigned char)( c ^ iv[n] ); in mbedtls_aes_crypt_cfb128()
946 iv[n] = (unsigned char) c; in mbedtls_aes_crypt_cfb128()
956 mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_cfb128()
958 iv[n] = *output++ = (unsigned char)( iv[n] ^ *input++ ); in mbedtls_aes_crypt_cfb128()
975 unsigned char iv[16], in mbedtls_aes_crypt_cfb8()
984 memcpy( ov, iv, 16 ); in mbedtls_aes_crypt_cfb8()
985 mbedtls_aes_crypt_ecb( ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in mbedtls_aes_crypt_cfb8()
990 c = *output++ = (unsigned char)( iv[0] ^ *input++ ); in mbedtls_aes_crypt_cfb8()
995 memcpy( iv, ov + 1, 16 ); in mbedtls_aes_crypt_cfb8()
1226 unsigned char iv[16]; in mbedtls_aes_self_test() local
1311 memset( iv , 0, 16 ); in mbedtls_aes_self_test()
1320 mbedtls_aes_crypt_cbc( &ctx, v, 16, iv, buf, buf ); in mbedtls_aes_self_test()
1339 mbedtls_aes_crypt_cbc( &ctx, v, 16, iv, buf, buf ); in mbedtls_aes_self_test()
1377 memcpy( iv, aes_test_cfb128_iv, 16 ); in mbedtls_aes_self_test()
1386 mbedtls_aes_crypt_cfb128( &ctx, v, 64, &offset, iv, buf, buf ); in mbedtls_aes_self_test()
1400 mbedtls_aes_crypt_cfb128( &ctx, v, 64, &offset, iv, buf, buf ); in mbedtls_aes_self_test()