Re: [PATCH] x86/sgx: Use SHA-256 library API instead of crypto_shash API

2025-04-30 Thread Jarkko Sakkinen
On Mon, Apr 28, 2025 at 12:19:50PM -0700, Dave Hansen wrote: > On 4/28/25 11:38, Eric Biggers wrote: > > -static int sgx_get_key_hash(const void *modulus, void *hash) > > -{ > > - struct crypto_shash *tfm; > > - int ret; > > - > > - tfm = crypto_alloc_shash("sha256", 0, CRYPTO_ALG_ASYNC); > >

Re: [PATCH] x86/sgx: Use SHA-256 library API instead of crypto_shash API

2025-04-28 Thread Eric Biggers
On Mon, Apr 28, 2025 at 12:19:50PM -0700, Dave Hansen wrote: > On 4/28/25 11:38, Eric Biggers wrote: > > -static int sgx_get_key_hash(const void *modulus, void *hash) > > -{ > > - struct crypto_shash *tfm; > > - int ret; > > - > > - tfm = crypto_alloc_shash("sha256", 0, CRYPTO_ALG_ASYNC); > >

Re: [PATCH] x86/sgx: Use SHA-256 library API instead of crypto_shash API

2025-04-28 Thread Dave Hansen
On 4/28/25 11:38, Eric Biggers wrote: > -static int sgx_get_key_hash(const void *modulus, void *hash) > -{ > - struct crypto_shash *tfm; > - int ret; > - > - tfm = crypto_alloc_shash("sha256", 0, CRYPTO_ALG_ASYNC); > - if (IS_ERR(tfm)) > - return PTR_ERR(tfm); > - > -