Lines Matching refs:ckey
158 HCRYPTKEY ckey; in des_encrypt() local
190 &ckey)) { in des_encrypt()
197 if (!CryptSetKeyParam(ckey, KP_MODE, (BYTE *) &mode, 0)) { in des_encrypt()
200 CryptDestroyKey(ckey); in des_encrypt()
207 if (!CryptEncrypt(ckey, 0, FALSE, 0, cypher, &dlen, 8)) { in des_encrypt()
213 CryptDestroyKey(ckey); in des_encrypt()
232 HCRYPTKEY ckey; member
270 0, 0, &akey->ckey)) { in aes_encrypt_init()
278 if (!CryptSetKeyParam(akey->ckey, KP_MODE, (BYTE *) &mode, 0)) { in aes_encrypt_init()
281 CryptDestroyKey(akey->ckey); in aes_encrypt_init()
298 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) { in aes_encrypt()
310 CryptDestroyKey(akey->ckey); in aes_encrypt_deinit()
331 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { in aes_decrypt()