Lines Matching refs:rta
898 struct rtattr *rta = (void *)key; in otx2_cpt_aead_cbc_aes_sha_setkey() local
900 if (!RTA_OK(rta, keylen)) in otx2_cpt_aead_cbc_aes_sha_setkey()
903 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx2_cpt_aead_cbc_aes_sha_setkey()
906 if (RTA_PAYLOAD(rta) < sizeof(*param)) in otx2_cpt_aead_cbc_aes_sha_setkey()
909 param = RTA_DATA(rta); in otx2_cpt_aead_cbc_aes_sha_setkey()
911 key += RTA_ALIGN(rta->rta_len); in otx2_cpt_aead_cbc_aes_sha_setkey()
912 keylen -= RTA_ALIGN(rta->rta_len); in otx2_cpt_aead_cbc_aes_sha_setkey()
949 struct rtattr *rta = (void *)key; in otx2_cpt_aead_ecb_null_sha_setkey() local
952 if (!RTA_OK(rta, keylen)) in otx2_cpt_aead_ecb_null_sha_setkey()
955 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx2_cpt_aead_ecb_null_sha_setkey()
958 if (RTA_PAYLOAD(rta) < sizeof(*param)) in otx2_cpt_aead_ecb_null_sha_setkey()
961 param = RTA_DATA(rta); in otx2_cpt_aead_ecb_null_sha_setkey()
963 key += RTA_ALIGN(rta->rta_len); in otx2_cpt_aead_ecb_null_sha_setkey()
964 keylen -= RTA_ALIGN(rta->rta_len); in otx2_cpt_aead_ecb_null_sha_setkey()