[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210514104535.q4zjtshxroruvoz3@gondor.apana.org.au>
Date: Fri, 14 May 2021 18:45:35 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Varad Gautam <varad.gautam@...e.com>
Cc: linux-crypto@...r.kernel.org, dhowells@...hat.com,
davem@...emloft.net, vt@...linux.org,
tianjia.zhang@...ux.alibaba.com, keyrings@...r.kernel.org,
linux-kernel@...r.kernel.org, jarkko@...nel.org
Subject: Re: [PATCH v3 13/18] crypto: rsa-psspad: Get signature parameters
from a given signature
On Tue, Apr 20, 2021 at 01:41:18PM +0200, Varad Gautam wrote:
>
> +static int psspad_set_sig_params(struct crypto_akcipher *tfm,
> + const void *sig,
> + unsigned int siglen)
> +{
> + struct akcipher_instance *inst = akcipher_alg_instance(tfm);
> + struct rsapad_inst_ctx *ictx = akcipher_instance_ctx(inst);
> + const struct public_key_signature *s = sig;
> +
> + if (!sig)
> + return -EINVAL;
> +
> + ictx->salt_len = s->salt_length;
> + ictx->mgf_hash_algo = s->mgf_hash_algo;
Is there any reason why this couldn't be embedded into the key
instead?
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists