Lines Matching refs:ivgen
30 static int qcrypto_ivgen_essiv_init(QCryptoIVGen *ivgen, in qcrypto_ivgen_essiv_init() argument
40 nsalt = qcrypto_cipher_get_key_len(ivgen->cipher); in qcrypto_ivgen_essiv_init()
42 nhash = qcrypto_hash_digest_len(ivgen->hash); in qcrypto_ivgen_essiv_init()
46 if (qcrypto_hash_bytes(ivgen->hash, (const gchar *)key, nkey, in qcrypto_ivgen_essiv_init()
55 essiv->cipher = qcrypto_cipher_new(ivgen->cipher, in qcrypto_ivgen_essiv_init()
66 ivgen->private = essiv; in qcrypto_ivgen_essiv_init()
71 static int qcrypto_ivgen_essiv_calculate(QCryptoIVGen *ivgen, in qcrypto_ivgen_essiv_calculate() argument
76 QCryptoIVGenESSIV *essiv = ivgen->private; in qcrypto_ivgen_essiv_calculate()
77 size_t ndata = qcrypto_cipher_get_block_len(ivgen->cipher); in qcrypto_ivgen_essiv_calculate()
106 static void qcrypto_ivgen_essiv_cleanup(QCryptoIVGen *ivgen) in qcrypto_ivgen_essiv_cleanup() argument
108 QCryptoIVGenESSIV *essiv = ivgen->private; in qcrypto_ivgen_essiv_cleanup()