Searched refs:gcm_tfm (Results 1 – 2 of 2) sorted by relevance
701 WARN_ON(con->v2.hmac_tfm || con->v2.gcm_tfm || con->v2.gcm_req); in setup_crypto()745 con->v2.gcm_tfm = crypto_alloc_aead("gcm(aes)", 0, 0); in setup_crypto()747 if (IS_ERR(con->v2.gcm_tfm)) { in setup_crypto()748 ret = PTR_ERR(con->v2.gcm_tfm); in setup_crypto()749 con->v2.gcm_tfm = NULL; in setup_crypto()755 crypto_aead_alignmask(con->v2.gcm_tfm)); in setup_crypto()756 ret = crypto_aead_setkey(con->v2.gcm_tfm, con_secret, CEPH_GCM_KEY_LEN); in setup_crypto()762 WARN_ON(crypto_aead_ivsize(con->v2.gcm_tfm) != CEPH_GCM_IV_LEN); in setup_crypto()763 ret = crypto_aead_setauthsize(con->v2.gcm_tfm, CEPH_GCM_TAG_LEN); in setup_crypto()769 con->v2.gcm_req = aead_request_alloc(con->v2.gcm_tfm, GFP_NOIO); in setup_crypto()[all …]
379 struct crypto_aead *gcm_tfm; /* on-wire encryption */ member