Package io.jans.lock.trace.crypto.bc


package io.jans.lock.trace.crypto.bc
  • Class
    Description
    SHA-256 digests in the TRACE sha256:<64 lowercase hex> format over raw bytes or over the JCS canonical form of a JSON value.
    Startup probe for Ed25519 support in the installed BouncyCastle provider.
    Builds Ed25519 PublicKeys from RFC 8037 OKP JWKs ({"kty":"OKP","crv":"Ed25519","x":"<32 raw bytes, base64url>"}) through the JCA KeyFactory of the installed BouncyCastle provider (standard or FIPS), so no BC-internal class is referenced.
    Verifies Ed25519 (RFC 8032, PureEdDSA, no pre-hash, no context) signatures with the JCA Signature of the installed BouncyCastle provider.
    TraceCryptoProviderType.JAVA implementation of TraceCryptoProvider: in-house RFC 8785 JCS, Ed25519 through the installed BouncyCastle JCA provider, JDK SHA-256.
    In-house, dependency-free implementation of RFC 8785 (JSON Canonicalization Scheme, JCS) over Jackson JsonNode trees.
    Thrown when a JSON value cannot be canonicalized according to RFC 8785 (JSON Canonicalization Scheme): non-finite numbers, lone UTF-16 surrogates in strings or property names, and Jackson node types that have no JSON representation (POJO, binary, missing).
    The receipt-hash function of the receipt chain (design ยง9):