Test the block size for symmetric keys

Also insist on their category.

Fix a missing implementation of PSA_BLOCK_CIPHER_BLOCK_SIZE for
ChaCha20.
This commit is contained in:
Gilles Peskine 2019-12-02 17:26:44 +01:00
parent 92f2da9d67
commit f8210f2bd5
4 changed files with 40 additions and 10 deletions

View file

@ -102,6 +102,8 @@ class Inputs:
# Any function ending in _algorithm also gets added to
# self.algorithms.
'key_type': [self.key_types],
'block_cipher_key_type': [self.key_types],
'stream_cipher_key_type': [self.key_types],
'ecc_key_types': [self.ecc_curves],
'dh_key_types': [self.dh_groups],
'hash_algorithm': [self.hash_algorithms],