pub struct Es256LocalPublicKey { /* private fields */ }Expand description
One explicitly supplied local ES256 verification key.
The retained bytes are only the uncompressed public P-256 point. The raw JWK, key identifier, and any source path are not retained or reported.
Implementations§
Source§impl Es256LocalPublicKey
impl Es256LocalPublicKey
Sourcepub fn from_jwk_json(bytes: Vec<u8>) -> Result<Self, Es256PublicJwkError>
pub fn from_jwk_json(bytes: Vec<u8>) -> Result<Self, Es256PublicJwkError>
Parses the strict public-JWK subset accepted by this evaluator.
Exactly kty, crv, alg, x, and y are accepted. Private
material and remote or embedded key-selection metadata are rejected.
This intake validates the closed JWK shape and canonical fixed-width
coordinate encodings. Curve membership is deliberately not inferred
from those declarations; the Ring ES256 verifier checks the encoded
point together with the signature and reports one coarse invalid local
verification outcome on either failure.
Auto Trait Implementations§
impl Freeze for Es256LocalPublicKey
impl RefUnwindSafe for Es256LocalPublicKey
impl Send for Es256LocalPublicKey
impl Sync for Es256LocalPublicKey
impl Unpin for Es256LocalPublicKey
impl UnsafeUnpin for Es256LocalPublicKey
impl UnwindSafe for Es256LocalPublicKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more