Lines Matching refs:iv
570 unsigned char iv[16], in mbedtls_camellia_crypt_cbc()
579 CAMELLIA_VALIDATE_RET( iv != NULL ); in mbedtls_camellia_crypt_cbc()
594 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_camellia_crypt_cbc()
596 memcpy( iv, temp, 16 ); in mbedtls_camellia_crypt_cbc()
608 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_camellia_crypt_cbc()
611 memcpy( iv, output, 16 ); in mbedtls_camellia_crypt_cbc()
631 unsigned char iv[16], in mbedtls_camellia_crypt_cfb128()
640 CAMELLIA_VALIDATE_RET( iv != NULL ); in mbedtls_camellia_crypt_cfb128()
654 mbedtls_camellia_crypt_ecb( ctx, MBEDTLS_CAMELLIA_ENCRYPT, iv, iv ); in mbedtls_camellia_crypt_cfb128()
657 *output++ = (unsigned char)( c ^ iv[n] ); in mbedtls_camellia_crypt_cfb128()
658 iv[n] = (unsigned char) c; in mbedtls_camellia_crypt_cfb128()
668 mbedtls_camellia_crypt_ecb( ctx, MBEDTLS_CAMELLIA_ENCRYPT, iv, iv ); in mbedtls_camellia_crypt_cfb128()
670 iv[n] = *output++ = (unsigned char)( iv[n] ^ *input++ ); in mbedtls_camellia_crypt_cfb128()
938 unsigned char iv[16]; in mbedtls_camellia_self_test() local
1016 memcpy( iv , src, 16 ); in mbedtls_camellia_self_test()
1020 memcpy( iv , dst, 16 ); in mbedtls_camellia_self_test()
1025 mbedtls_camellia_crypt_cbc( &ctx, v, 16, iv, src, buf ); in mbedtls_camellia_self_test()