Searched refs:gcm_tfm (Results 1 – 2 of 2) sorted by relevance
712 WARN_ON(con->v2.hmac_tfm || con->v2.gcm_tfm || con->v2.gcm_req); in setup_crypto()754 con->v2.gcm_tfm = crypto_alloc_aead("gcm(aes)", 0, 0); in setup_crypto()756 if (IS_ERR(con->v2.gcm_tfm)) { in setup_crypto()757 ret = PTR_ERR(con->v2.gcm_tfm); in setup_crypto()758 con->v2.gcm_tfm = NULL; in setup_crypto()764 crypto_aead_alignmask(con->v2.gcm_tfm)); in setup_crypto()765 ret = crypto_aead_setkey(con->v2.gcm_tfm, con_secret, CEPH_GCM_KEY_LEN); in setup_crypto()771 WARN_ON(crypto_aead_ivsize(con->v2.gcm_tfm) != CEPH_GCM_IV_LEN); in setup_crypto()772 ret = crypto_aead_setauthsize(con->v2.gcm_tfm, CEPH_GCM_TAG_LEN); in setup_crypto()778 con->v2.gcm_req = aead_request_alloc(con->v2.gcm_tfm, GFP_NOIO); in setup_crypto()[all …]
416 struct crypto_aead *gcm_tfm; /* on-wire encryption */ member