mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	crypto: drbg - stop checking crypto_shash_alignmask
Now that the shash algorithm type does not support nonzero alignmasks, crypto_shash_alignmask() always returns 0 and will be removed. In preparation for this, stop checking crypto_shash_alignmask() in drbg. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
		
							parent
							
								
									69dde0a1fa
								
							
						
					
					
						commit
						eed577b9a9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1698,7 +1698,7 @@ static int drbg_init_hash_kernel(struct drbg_state *drbg)
 | 
				
			||||||
	sdesc->shash.tfm = tfm;
 | 
						sdesc->shash.tfm = tfm;
 | 
				
			||||||
	drbg->priv_data = sdesc;
 | 
						drbg->priv_data = sdesc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return crypto_shash_alignmask(tfm);
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int drbg_fini_hash_kernel(struct drbg_state *drbg)
 | 
					static int drbg_fini_hash_kernel(struct drbg_state *drbg)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue