Lines Matching refs:aiv
198 unsigned char aiv[8]; in CRYPTO_128_wrap_pad() local
207 memcpy(aiv, default_aiv, 4); in CRYPTO_128_wrap_pad()
209 memcpy(aiv, icv, 4); /* Standard doesn't mention this. */ in CRYPTO_128_wrap_pad()
211 aiv[4] = (inlen >> 24) & 0xFF; in CRYPTO_128_wrap_pad()
212 aiv[5] = (inlen >> 16) & 0xFF; in CRYPTO_128_wrap_pad()
213 aiv[6] = (inlen >> 8) & 0xFF; in CRYPTO_128_wrap_pad()
214 aiv[7] = inlen & 0xFF; in CRYPTO_128_wrap_pad()
223 memcpy(out, aiv, 8); in CRYPTO_128_wrap_pad()
230 ret = CRYPTO_128_wrap(key, aiv, out, out, padded_len, block); in CRYPTO_128_wrap_pad()
262 unsigned char aiv[8]; in CRYPTO_128_unwrap_pad() local
280 memcpy(aiv, buff, 8); in CRYPTO_128_unwrap_pad()
287 ret = crypto_128_unwrap_raw(key, aiv, out, in, inlen, block); in CRYPTO_128_unwrap_pad()
299 if ((!icv && CRYPTO_memcmp(aiv, default_aiv, 4)) in CRYPTO_128_unwrap_pad()
300 || (icv && CRYPTO_memcmp(aiv, icv, 4))) { in CRYPTO_128_unwrap_pad()
310 ptext_len = ((unsigned int)aiv[4] << 24) in CRYPTO_128_unwrap_pad()
311 | ((unsigned int)aiv[5] << 16) in CRYPTO_128_unwrap_pad()
312 | ((unsigned int)aiv[6] << 8) in CRYPTO_128_unwrap_pad()
313 | (unsigned int)aiv[7]; in CRYPTO_128_unwrap_pad()