Skip to content

Conversation

@jklong
Copy link
Owner

@jklong jklong commented Sep 15, 2021

Fixes RustCrypto#10

 * Adds a `fingerprint` method to `SubjectPublicKeyInfo`.

 * Adds a test for fingerprinting

In its current state this encodes self using the der crate in order to calculate the digest.

An alternate way to implement this would be an associated function on SubjectPublicKeyInfo that simply takes a DER encoded struct as a &[u8] instead of performing any encoding operations itself.

@jklong jklong self-assigned this Sep 15, 2021
@jklong jklong merged commit 868846c into master Sep 15, 2021
jklong added a commit that referenced this pull request Sep 16, 2021
* Add fingerprint feature

* Add rustdocs feature flags
jklong added a commit that referenced this pull request Sep 16, 2021
* Add fingerprint feature

* Add rustdocs feature flags
jklong added a commit that referenced this pull request Sep 16, 2021
* SPKI SHA-256 fingerprint (#1)

* Neaten up fingerprint methods and remove no longer necessary error wrapper
@jklong jklong deleted the feature/spki-fingerprint branch September 16, 2021 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spki: fingerprint/hash support

2 participants