google / google/go-tpm-tools

[KeyManager] Move Crypto Key capabilities to individual traits

Open
#660 0 comments 0 reactions 1 assignee Claimed by @NilanjanDaw View on GitHub
Dominant language
C
Stars
309
Forks
118
Avg merge
1d 16h
Merged PRs (30d)
33

Description

The PrivateKey and PublicKey traits assume that every public key can do HPKE sealing and every private key can do both KEM decaps and HPKE open. If there were a future use-case for an ECDSA or ML-DSA key, it would be hard to represent those in this type system.

Migrate the key capabilities to individual traits leaving room in the future for Sign and Verify traits and other operational traits.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.