Lines Matching refs:authenc_keys
598 struct crypto_authenc_keys authenc_keys; in qce_aead_setkey() local
603 err = crypto_authenc_extractkeys(&authenc_keys, key, keylen); in qce_aead_setkey()
607 if (authenc_keys.enckeylen > QCE_MAX_KEY_SIZE || in qce_aead_setkey()
608 authenc_keys.authkeylen > QCE_MAX_KEY_SIZE) in qce_aead_setkey()
612 err = verify_aead_des_key(tfm, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey()
616 err = verify_aead_des3_key(tfm, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey()
625 memcpy(_key, authenc_keys.enckey, DES3_EDE_KEY_SIZE); in qce_aead_setkey()
632 if (authenc_keys.enckeylen != AES_KEYSIZE_128 && in qce_aead_setkey()
633 authenc_keys.enckeylen != AES_KEYSIZE_192 && in qce_aead_setkey()
634 authenc_keys.enckeylen != AES_KEYSIZE_256) in qce_aead_setkey()
636 if (authenc_keys.enckeylen == AES_KEYSIZE_192) in qce_aead_setkey()
640 ctx->enc_keylen = authenc_keys.enckeylen; in qce_aead_setkey()
641 ctx->auth_keylen = authenc_keys.authkeylen; in qce_aead_setkey()
643 memcpy(ctx->enc_key, authenc_keys.enckey, authenc_keys.enckeylen); in qce_aead_setkey()
646 memcpy(ctx->auth_key, authenc_keys.authkey, authenc_keys.authkeylen); in qce_aead_setkey()