Skip to content

Commit

Permalink
Expose RSAPSS public key Id type
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse authored and rushilmehra committed Aug 19, 2024
1 parent a7bfe0d commit e5b6627
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boring/src/pkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub struct Id(c_int);

impl Id {
pub const RSA: Id = Id(ffi::EVP_PKEY_RSA);
pub const RSAPSS: Id = Id(ffi::EVP_PKEY_RSA_PSS);
pub const DSA: Id = Id(ffi::EVP_PKEY_DSA);
pub const DH: Id = Id(ffi::EVP_PKEY_DH);
pub const EC: Id = Id(ffi::EVP_PKEY_EC);
Expand Down Expand Up @@ -303,6 +304,7 @@ impl<T> fmt::Debug for PKey<T> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
let alg = match self.id() {
Id::RSA => "RSA",
Id::RSAPSS => "RSAPSS",
Id::DSA => "DSA",
Id::DH => "DH",
Id::EC => "EC",
Expand Down

0 comments on commit e5b6627

Please sign in to comment.