Cover all key types
Generate test cases for all key types. These test cases cover the key representation (checked with export) and the encoding of the key type and the bit-size. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
897dff9527
commit
f8223abb16
4 changed files with 785 additions and 2 deletions
|
@ -19,14 +19,14 @@ This module is entirely based on the PSA API.
|
|||
# limitations under the License.
|
||||
|
||||
import re
|
||||
from typing import List, Optional, Tuple
|
||||
from typing import Iterable, Optional, Tuple
|
||||
|
||||
from mbedtls_dev.asymmetric_key_data import ASYMMETRIC_KEY_DATA
|
||||
|
||||
class KeyType:
|
||||
"""Knowledge about a PSA key type."""
|
||||
|
||||
def __init__(self, name: str, params: Optional[List[str]] = None):
|
||||
def __init__(self, name: str, params: Optional[Iterable[str]] = None):
|
||||
"""Analyze a key type.
|
||||
|
||||
The key type must be specified in PSA syntax. In its simplest form,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue