Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman committed May 23, 2024
1 parent 9307465 commit 2f161a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion library/src/cache/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ pub fn hash_file<P: AsRef<Path>>(path: P) -> Result<String> {
Ok(hex::encode(hash))
}

/// `public_key` is a base64-encoded RSA public key.
/// `public_key` is a DER base64-encoded RSA public key.
/// openssl rsa -pubin \
/// -in public_key.pem \
/// -inform PEM \
/// -RSAPublicKey_out \
/// -outform DER \
/// -out public_key.der
pub fn check_signature(message: &str, signature: &str, public_key: &str) -> Result<()> {
// public.pem
let public_key_bytes = base64::prelude::BASE64_STANDARD
Expand Down

0 comments on commit 2f161a8

Please sign in to comment.