Expand description
§smgw-sec
Cryptographic capabilities used by the smart meter gateway. The default crate is dependency-free, requires no allocator and builds with no_std. Implement BrainpoolP256Verifier for a commissioned verification key to supply ECDSA/SHA-256 verification to the gateway wake-up policy.
Enable openssl to load a BrainpoolP256PublicKey from a trusted SubjectPublicKeyInfo PEM or a validated certificate’s public key. The provider checks the curve and key at commissioning and verifies the original signed bytes. The gateway checks the recipient, algorithm identifier, freshness, rate limit and replay state.
BrainpoolP256SigningKey accepts a provisioned OpenSSL private-key handle or a noninteractive PEM. The GWA uses it to sign the wake-up prefix and obtain fixed-width ECDSA components.
The tls module binds a certificate chain to its OpenSSL signing key. Enable async-tls for the loopback TLS endpoint shared by the CLS and management simulators. Each endpoint verifies its commissioned trust chain and leaf pin. The CLS gateway owns its SNI routing policy.
Wake-up verification · Token setup and walkthrough · Gateway documentation
Licensed under MIT OR Apache-2.0.
Modules§
- openssl
- OpenSSL implementation of the Brainpool signature profile.
- tls
- Provisioned identities for OpenSSL TLS endpoints. Provision a certificate chain and its OpenSSL signing key for a TLS endpoint.
- transport
- Pinned mutual TLS over loopback for the smart meter gateway simulators.
Traits§
- Brainpool
P256 Verifier - An already commissioned Brainpool P-256 public key for verifying ECDSA/SHA-256.