Home
last modified time | relevance | path

Searched refs:gcm_tfm (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/net/ceph/
H A Dmessenger_v2.c712 WARN_ON(con->v2.hmac_tfm || con->v2.gcm_tfm || con->v2.gcm_req); in setup_crypto()
756 con->v2.gcm_tfm = crypto_alloc_aead("gcm(aes)", 0, 0); in setup_crypto()
758 if (IS_ERR(con->v2.gcm_tfm)) { in setup_crypto()
759 ret = PTR_ERR(con->v2.gcm_tfm); in setup_crypto()
760 con->v2.gcm_tfm = NULL; in setup_crypto()
766 crypto_aead_alignmask(con->v2.gcm_tfm)); in setup_crypto()
767 ret = crypto_aead_setkey(con->v2.gcm_tfm, con_secret, CEPH_GCM_KEY_LEN); in setup_crypto()
773 WARN_ON(crypto_aead_ivsize(con->v2.gcm_tfm) != CEPH_GCM_IV_LEN); in setup_crypto()
774 ret = crypto_aead_setauthsize(con->v2.gcm_tfm, CEPH_GCM_TAG_LEN); in setup_crypto()
780 con->v2.gcm_req = aead_request_alloc(con->v2.gcm_tfm, GFP_NOIO); in setup_crypto()
[all …]
/openbmc/linux/include/linux/ceph/
H A Dmessenger.h416 struct crypto_aead *gcm_tfm; /* on-wire encryption */ member