MCPcopy Create free account
hub / github.com/Keats/jsonwebtoken / from_ec_der

Method from_ec_der

src/decoding.rs:188–193  ·  view source on GitHub ↗

If you know what you're doing and have a EC DER encoded public key, use this.

(der: &[u8])

Source from the content-addressed store, hash-verified

186
187 /// If you know what you're doing and have a EC DER encoded public key, use this.
188 pub fn from_ec_der(der: &[u8]) -> Self {
189 DecodingKey {
190 family: AlgorithmFamily::Ec,
191 kind: DecodingKeyKind::SecretOrDer(der.to_vec()),
192 }
193 }
194
195 /// If you know what you're doing and have a Ed DER encoded public key, use this.
196 pub fn from_ed_der(der: &[u8]) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected