10 releases (5 breaking)

new 0.6.3 Feb 6, 2026
0.6.1 Jan 26, 2026
0.6.0 Dec 8, 2025
0.4.0 Nov 28, 2025

#1714 in Cryptography

Download history 33/week @ 2025-11-27 72/week @ 2025-12-04 353/week @ 2025-12-11 68/week @ 2025-12-18 278/week @ 2025-12-25 195/week @ 2026-01-01 449/week @ 2026-01-08 505/week @ 2026-01-15 465/week @ 2026-01-22 835/week @ 2026-01-29 920/week @ 2026-02-05

2,850 downloads per month
Used in 12 crates (10 directly)

BSD-3-Clause

120KB
2.5K SLoC

sigstore-crypto

Cryptographic primitives for sigstore-rust.

Overview

This crate provides key generation, signing, and verification functionality using aws-lc-rs as the cryptographic backend. It supports the key types and signature algorithms used in the Sigstore ecosystem.

Features

  • Key generation: Ed25519, ECDSA P-256, ECDSA P-384
  • Signing and verification: Multiple signature schemes with automatic algorithm detection
  • Checkpoint verification: Extension trait for verifying signed tree head signatures
  • Certificate parsing: X.509 certificate information extraction
  • Keyring: Key management for multi-key verification scenarios
  • Hash functions: SHA-256, SHA-384, SHA-512

Supported Algorithms

Algorithm Key Generation Signing Verification
Ed25519 Yes Yes Yes
ECDSA P-256 (SHA-256) Yes Yes Yes
ECDSA P-384 (SHA-384) Yes Yes Yes

Usage

use sigstore_crypto::{KeyPair, SigningScheme, verify_signature};

// Generate a new key pair
let keypair = KeyPair::generate(SigningScheme::EcdsaP256Sha256)?;

// Sign data
let signature = keypair.sign(b"message")?;

// Verify a signature
verify_signature(
    &public_key_der,
    message,
    &signature,
    SigningScheme::EcdsaP256Sha256,
)?;

This crate provides cryptographic operations for:

License

BSD-3-Clause

Dependencies

~71MB
~2M SLoC