linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HMAC test fails for big key using libkcapi
@ 2020-08-24 14:41 Bhat, Jayalakshmi Manjunath
  2020-08-24 15:30 ` Stephan Mueller
  0 siblings, 1 reply; 3+ messages in thread
From: Bhat, Jayalakshmi Manjunath @ 2020-08-24 14:41 UTC (permalink / raw)
  To: linux-crypto

Hi All,

I am using libkcapi to execute HMAC tests. One of key size is 229248 bytes.  setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY API fails to set the key. 
I am not getting an option to set the buffer size to higher value. 

Can you please provide me inputs on how to set the higher buffer size to socket?

Regards,
Jayalakshmi




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HMAC test fails for big key using libkcapi
  2020-08-24 14:41 HMAC test fails for big key using libkcapi Bhat, Jayalakshmi Manjunath
@ 2020-08-24 15:30 ` Stephan Mueller
  2020-08-24 16:00   ` Bhat, Jayalakshmi Manjunath
  0 siblings, 1 reply; 3+ messages in thread
From: Stephan Mueller @ 2020-08-24 15:30 UTC (permalink / raw)
  To: linux-crypto, Bhat, Jayalakshmi Manjunath

Am Montag, 24. August 2020, 16:41:13 CEST schrieb Bhat, Jayalakshmi Manjunath:

Hi Jayalakshmi,

> Hi All,
> 
> I am using libkcapi to execute HMAC tests. One of key size is 229248 bytes. 
> setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY API fails to set the key. I am not
> getting an option to set the buffer size to higher value.
> 
> Can you please provide me inputs on how to set the higher buffer size to
> socket?

Update your network write buffer size?

/proc/sys/net/core/wmem_default
> 
> Regards,
> Jayalakshmi


Ciao
Stephan



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: HMAC test fails for big key using libkcapi
  2020-08-24 15:30 ` Stephan Mueller
@ 2020-08-24 16:00   ` Bhat, Jayalakshmi Manjunath
  0 siblings, 0 replies; 3+ messages in thread
From: Bhat, Jayalakshmi Manjunath @ 2020-08-24 16:00 UTC (permalink / raw)
  To: Stephan Mueller, linux-crypto

Hi Stephen,

It worked, thank you so much

Regards,
Jaya

-----Original Message-----
From: Stephan Mueller <smueller@chronox.de> 
Sent: Monday, August 24, 2020 9:00 PM
To: linux-crypto@vger.kernel.org; Bhat, Jayalakshmi Manjunath <jayalakshmi.bhat@hp.com>
Subject: Re: HMAC test fails for big key using libkcapi

Am Montag, 24. August 2020, 16:41:13 CEST schrieb Bhat, Jayalakshmi Manjunath:

Hi Jayalakshmi,

> Hi All,
> 
> I am using libkcapi to execute HMAC tests. One of key size is 229248 bytes. 
> setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY API fails to set the key. I am 
> not getting an option to set the buffer size to higher value.
> 
> Can you please provide me inputs on how to set the higher buffer size 
> to socket?

Update your network write buffer size?

/proc/sys/net/core/wmem_default
> 
> Regards,
> Jayalakshmi


Ciao
Stephan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-24 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 14:41 HMAC test fails for big key using libkcapi Bhat, Jayalakshmi Manjunath
2020-08-24 15:30 ` Stephan Mueller
2020-08-24 16:00   ` Bhat, Jayalakshmi Manjunath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).