lkml.org 
[lkml]   [2004]   [Mar]   [9]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 9 Mar 2004 23:21:03 -0500 (EST)
FromJames Morris <>
SubjectRe: Crypto API and keyed non-HMAC digest algorithms / Michael MIC
On Tue, 9 Mar 2004, Jouni Malinen wrote:

> +static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
> +{
> +	u32 flags;
> +	if (tfm->__crt_alg->cra_digest.dia_setkey == NULL)
> +		return -1;

In both patches, these 'return -1' statements should be -EINVAL, or 
whatever is appropriate (probably -ENOSYS for this one).


- James
-- 
James Morris
<jmorris@redhat.com>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:01    [from the cache]
©2003-2008