Repository navigation
Commit bce395e
KEYS: encrypted: use crypto_shash_tfm_digest()
Instead of manually allocating a 'struct shash_desc' on the stack and
calling crypto_shash_digest(), switch to using the new helper function
crypto_shash_tfm_digest() which does this for us.
Cc: keyrings@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent 75b93c6 commit bce395e
1 file changed
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | 326 | | |
340 | 327 | | |
341 | 328 | | |
| |||
351 | 338 | | |
352 | 339 | | |
353 | 340 | | |
354 | | - | |
| 341 | + | |
355 | 342 | | |
356 | 343 | | |
357 | 344 | | |
| |||
381 | 368 | | |
382 | 369 | | |
383 | 370 | | |
384 | | - | |
| 371 | + | |
| 372 | + | |
385 | 373 | | |
386 | 374 | | |
387 | 375 | | |
| |||
0 commit comments