Lines Matching refs:cipher
256 * DR(Key, Constant) = k-truncate(E(Key, Constant, initial-cipher-state))
257 * K1 = E(Key, n-fold(Constant), initial-cipher-state)
258 * K2 = E(Key, K1, initial-cipher-state)
259 * K3 = E(Key, K2, initial-cipher-state)
272 struct crypto_sync_skcipher *cipher;
284 cipher = crypto_alloc_sync_skcipher(krb5->derivation_enc, 0, 0);
285 if (IS_ERR(cipher)) {
286 ret = (PTR_ERR(cipher) == -ENOENT) ? -ENOPKG : PTR_ERR(cipher);
289 ret = crypto_sync_skcipher_setkey(cipher, inkey->data, inkey->len);
314 rfc3961_do_encrypt(cipher, NULL, &inblock, &outblock);
337 crypto_free_sync_skcipher(cipher);
353 struct crypto_sync_skcipher *cipher;
356 cipher = crypto_alloc_sync_skcipher(krb5->derivation_enc, 0, 0);
357 if (IS_ERR(cipher)) {
358 ret = (PTR_ERR(cipher) == -ENOENT) ? -ENOPKG : PTR_ERR(cipher);
362 ret = crypto_sync_skcipher_setkey(cipher, key->data, key->len);
366 ret = rfc3961_do_encrypt(cipher, NULL, in_data, result);
369 crypto_free_sync_skcipher(cipher);
379 * PRF = E(DK(protocol-key, prfconstant), tmp2, initial-cipher-state)