Lines Matching refs:cipher

66  * pad minimum plaintext length to at least a single cipher block.
88 * @tfm: initialized cipher transform
96 * cipher's ivsize.
143 * @tfm: initialized cipher transform
151 * cipher's ivsize.
592 gss_krb5_cts_crypt(struct crypto_sync_skcipher *cipher, struct xdr_buf *buf,
597 SYNC_SKCIPHER_REQUEST_ON_STACK(req, cipher);
626 skcipher_request_set_sync_tfm(req, cipher);
649 memcpy(iv, data, crypto_sync_skcipher_ivsize(cipher));
659 * @cts_tfm: CBC cipher with CTS
660 * @cbc_tfm: base CBC cipher
667 * To provide confidentiality, encrypt using cipher block chaining
730 * @cts_tfm: CBC cipher with CTS
731 * @cbc_tfm: base CBC cipher
787 struct crypto_sync_skcipher *cipher, *aux_cipher;
793 cipher = kctx->initiator_enc;
797 cipher = kctx->acceptor_enc;
801 conflen = crypto_sync_skcipher_blocksize(cipher);
843 err = krb5_cbc_cts_encrypt(cipher, aux_cipher,
860 struct crypto_sync_skcipher *cipher, *aux_cipher;
869 cipher = kctx->acceptor_enc;
873 cipher = kctx->initiator_enc;
883 ret = krb5_cbc_cts_decrypt(cipher, aux_cipher, 0, &subbuf);
903 *headskip = crypto_sync_skcipher_blocksize(cipher);
913 * @cipher: an initialized cipher transform
929 u32 krb5_etm_checksum(struct crypto_sync_skcipher *cipher,
933 unsigned int ivsize = crypto_sync_skcipher_ivsize(cipher);
942 /* For RPCSEC, the "initial cipher state" is always all zeroes. */
988 * calculated over the cipher state concatenated with the AES
1000 * IV = cipher state
1015 struct crypto_sync_skcipher *cipher, *aux_cipher;
1023 cipher = kctx->initiator_enc;
1027 cipher = kctx->acceptor_enc;
1031 conflen = crypto_sync_skcipher_blocksize(cipher);
1052 err = krb5_cbc_cts_encrypt(cipher, aux_cipher,
1060 err = krb5_etm_checksum(cipher, ahash,
1089 * IV = cipher state
1103 struct crypto_sync_skcipher *cipher, *aux_cipher;
1112 cipher = kctx->acceptor_enc;
1116 cipher = kctx->initiator_enc;
1128 ret = krb5_etm_checksum(cipher, ahash, &subbuf, 0, &our_hmac_obj);
1140 ret = krb5_cbc_cts_decrypt(cipher, aux_cipher, 0, &subbuf);
1146 *headskip = crypto_sync_skcipher_blocksize(cipher);