Lines Matching refs:encrypted_datalen
454 unsigned int encrypted_datalen; in derived_key_encrypt() local
458 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_encrypt()
472 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt()
475 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_encrypt()
483 dump_encrypted_data(epayload, encrypted_datalen); in derived_key_encrypt()
556 unsigned int encrypted_datalen; in derived_key_decrypt() local
566 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_decrypt()
571 dump_encrypted_data(epayload, encrypted_datalen); in derived_key_decrypt()
575 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt()
581 skcipher_request_set_crypt(req, sg_in, sg_out, encrypted_datalen, iv); in derived_key_decrypt()
604 unsigned int encrypted_datalen; in encrypted_key_alloc() local
634 encrypted_datalen = roundup(decrypted_datalen, blksize); in encrypted_key_alloc()
637 + strlen(datalen) + 1 + ivsize + 1 + encrypted_datalen; in encrypted_key_alloc()
663 unsigned int encrypted_datalen; in encrypted_key_decrypt() local
668 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in encrypted_key_decrypt()
669 asciilen = (ivsize + 1 + encrypted_datalen + HASH_SIZE) * 2; in encrypted_key_decrypt()
678 encrypted_datalen); in encrypted_key_decrypt()
683 ret = hex2bin(hmac, hex_encoded_data + (encrypted_datalen * 2), in encrypted_key_decrypt()