mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-30 19:20:40 -04:00 
			
		
		
		
	Test PSA_HASH_BLOCK_LENGTH
Only tested for algorithms for which we support HMAC, since that's all we use PSA_HASH_BLOCK_LENGTH for at the moment. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
		
							parent
							
								
									e7be73d579
								
							
						
					
					
						commit
						c1ec49eb13
					
				| @ -353,6 +353,7 @@ void hmac_algorithm( int alg_arg, | ||||
|     TEST_ASSERT( PSA_ALG_IS_HASH( hash_alg ) ); | ||||
|     TEST_EQUAL( PSA_ALG_HMAC( hash_alg ), alg ); | ||||
| 
 | ||||
|     TEST_ASSERT( block_size == PSA_HASH_BLOCK_LENGTH( alg ) ); | ||||
|     TEST_ASSERT( block_size <= PSA_HMAC_MAX_HASH_BLOCK_SIZE ); | ||||
| 
 | ||||
|     test_mac_algorithm( alg_arg, ALG_IS_HMAC, length, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Gilles Peskine
						Gilles Peskine