Coverage for tropicsquare / constants / ecc.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-27 21:24 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-27 21:24 +0000
1"""ECC (Elliptic Curve Cryptography) constants for TropicSquare library.
3This module contains all ECC-related constants including curve types,
4key origin values, and maximum key slots.
5"""
7# Maximum number of ECC key slots
8ECC_MAX_KEYS = 31
10# Curve type constants
11ECC_CURVE_P256 = 0x01 # NIST P-256 curve (secp256r1)
12ECC_CURVE_ED25519 = 0x02 # Ed25519 curve (EdDSA)
14# Key origin constants
15ECC_KEY_ORIGIN_GENERATED = 0x01 # Key was generated by the chip
16ECC_KEY_ORIGIN_STORED = 0x02 # Key was imported via ecc_key_store()