import G965FXXU7DTAA OSRC
*First release for Android (Q). Signed-off-by: FAROVITUS <farovitus@gmail.com>
This commit is contained in:
parent
856452b4f2
commit
2b92eefa41
7696 changed files with 3763754 additions and 92661 deletions
|
@ -45,6 +45,11 @@ void __ablkcipher_walk_complete(struct ablkcipher_walk *walk)
|
|||
{
|
||||
struct ablkcipher_buffer *p, *tmp;
|
||||
|
||||
#ifdef CONFIG_CRYPTO_FIPS
|
||||
if (unlikely(in_fips_err()))
|
||||
return;
|
||||
#endif
|
||||
|
||||
list_for_each_entry_safe(p, tmp, &walk->buffers, entry) {
|
||||
ablkcipher_buffer_write(p);
|
||||
list_del(&p->entry);
|
||||
|
@ -108,6 +113,11 @@ int ablkcipher_walk_done(struct ablkcipher_request *req,
|
|||
struct crypto_tfm *tfm = req->base.tfm;
|
||||
unsigned int nbytes = 0;
|
||||
|
||||
#ifdef CONFIG_CRYPTO_FIPS
|
||||
if (unlikely(in_fips_err()))
|
||||
return -EACCES;
|
||||
#endif
|
||||
|
||||
if (likely(err >= 0)) {
|
||||
unsigned int n = walk->nbytes - err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue