Lines Matching refs:encrypted_datalen
460 unsigned int encrypted_datalen; in derived_key_encrypt() local
464 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_encrypt()
478 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt()
481 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_encrypt()
489 dump_encrypted_data(epayload, encrypted_datalen); in derived_key_encrypt()
562 unsigned int encrypted_datalen; in derived_key_decrypt() local
572 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_decrypt()
577 dump_encrypted_data(epayload, encrypted_datalen); in derived_key_decrypt()
581 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt()
587 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_decrypt()
611 unsigned int encrypted_datalen; in encrypted_key_alloc() local
660 encrypted_datalen = roundup(decrypted_datalen, blksize); in encrypted_key_alloc()
663 + strlen(datalen) + 1 + ivsize + 1 + encrypted_datalen; in encrypted_key_alloc()
689 unsigned int encrypted_datalen; in encrypted_key_decrypt() local
694 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in encrypted_key_decrypt()
695 asciilen = (ivsize + 1 + encrypted_datalen + HASH_SIZE) * 2; in encrypted_key_decrypt()
704 encrypted_datalen); in encrypted_key_decrypt()
709 ret = hex2bin(hmac, hex_encoded_data + (encrypted_datalen * 2), in encrypted_key_decrypt()