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

Method from_ed_der

src/decoding.rs:196–201  ·  view source on GitHub ↗

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

(der: &[u8])

Source from the content-addressed store, hash-verified

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 {
197 DecodingKey {
198 family: AlgorithmFamily::Ed,
199 kind: DecodingKeyKind::SecretOrDer(der.to_vec()),
200 }
201 }
202
203 /// From x part (base64 encoded) of the JWK encoding
204 pub fn from_ed_components(x: &str) -> Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected