Lines Matching full:cipher

66  * pad minimum plaintext length to at least a single cipher block.
88 * @tfm: initialized cipher transform
96 * cipher's ivsize.
393 gss_krb5_cts_crypt(struct crypto_sync_skcipher *cipher, struct xdr_buf *buf, in gss_krb5_cts_crypt() argument
398 SYNC_SKCIPHER_REQUEST_ON_STACK(req, cipher); in gss_krb5_cts_crypt()
427 skcipher_request_set_sync_tfm(req, cipher); in gss_krb5_cts_crypt()
450 memcpy(iv, data, crypto_sync_skcipher_ivsize(cipher)); in gss_krb5_cts_crypt()
460 * @cts_tfm: CBC cipher with CTS
461 * @cbc_tfm: base CBC cipher
468 * To provide confidentiality, encrypt using cipher block chaining
531 * @cts_tfm: CBC cipher with CTS
532 * @cbc_tfm: base CBC cipher
588 struct crypto_sync_skcipher *cipher, *aux_cipher; in gss_krb5_aes_encrypt() local
594 cipher = kctx->initiator_enc; in gss_krb5_aes_encrypt()
598 cipher = kctx->acceptor_enc; in gss_krb5_aes_encrypt()
602 conflen = crypto_sync_skcipher_blocksize(cipher); in gss_krb5_aes_encrypt()
644 err = krb5_cbc_cts_encrypt(cipher, aux_cipher, in gss_krb5_aes_encrypt()
661 struct crypto_sync_skcipher *cipher, *aux_cipher; in gss_krb5_aes_decrypt() local
670 cipher = kctx->acceptor_enc; in gss_krb5_aes_decrypt()
674 cipher = kctx->initiator_enc; in gss_krb5_aes_decrypt()
684 ret = krb5_cbc_cts_decrypt(cipher, aux_cipher, 0, &subbuf); in gss_krb5_aes_decrypt()
704 *headskip = crypto_sync_skcipher_blocksize(cipher); in gss_krb5_aes_decrypt()
714 * @cipher: an initialized cipher transform
730 u32 krb5_etm_checksum(struct crypto_sync_skcipher *cipher, in krb5_etm_checksum() argument
734 unsigned int ivsize = crypto_sync_skcipher_ivsize(cipher); in krb5_etm_checksum()
743 /* For RPCSEC, the "initial cipher state" is always all zeroes. */ in krb5_etm_checksum()
789 * calculated over the cipher state concatenated with the AES
801 * IV = cipher state
816 struct crypto_sync_skcipher *cipher, *aux_cipher; in krb5_etm_encrypt() local
824 cipher = kctx->initiator_enc; in krb5_etm_encrypt()
828 cipher = kctx->acceptor_enc; in krb5_etm_encrypt()
832 conflen = crypto_sync_skcipher_blocksize(cipher); in krb5_etm_encrypt()
853 err = krb5_cbc_cts_encrypt(cipher, aux_cipher, in krb5_etm_encrypt()
861 err = krb5_etm_checksum(cipher, ahash, in krb5_etm_encrypt()
890 * IV = cipher state
904 struct crypto_sync_skcipher *cipher, *aux_cipher; in krb5_etm_decrypt() local
913 cipher = kctx->acceptor_enc; in krb5_etm_decrypt()
917 cipher = kctx->initiator_enc; in krb5_etm_decrypt()
929 ret = krb5_etm_checksum(cipher, ahash, &subbuf, 0, &our_hmac_obj); in krb5_etm_decrypt()
941 ret = krb5_cbc_cts_decrypt(cipher, aux_cipher, 0, &subbuf); in krb5_etm_decrypt()
947 *headskip = crypto_sync_skcipher_blocksize(cipher); in krb5_etm_decrypt()