Skip to content

Commit

Permalink
Minor adjustments to key_wrap module API (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail authored Jan 26, 2024
1 parent b68620b commit 8f14362
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 251 deletions.
4 changes: 2 additions & 2 deletions aws-lc-rs/src/ec/key_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use crate::fips::indicator_check;
use crate::pkcs8::{Document, Version};
use crate::ptr::{ConstPointer, DetachableLcPtr, LcPtr};
use crate::rand::SecureRandom;
use crate::signature::{EcdsaPublicKey, KeyPair, Signature};
use crate::signature::{KeyPair, Signature};
use crate::{digest, ec};

/// An ECDSA key pair, used for signing.
Expand All @@ -50,7 +50,7 @@ impl KeyPair for EcdsaKeyPair {

#[inline]
/// Provides the public key.
fn public_key(&self) -> &EcdsaPublicKey {
fn public_key(&self) -> &Self::PublicKey {
&self.pubkey
}
}
Expand Down
Loading

0 comments on commit 8f14362

Please sign in to comment.