Skip to content

[KMS]Signing a digest message with ECDSA_SHA_256 #571

Answered by rcoh
chabashilah asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! digest.as_bytes() is giving you the bytes of the ascii string (which are different from the actual bytes)—you'd need to hex-decode the digest to use it. Does that make sense? (eg. https://docs.rs/hex/0.4.3/hex/fn.decode.html)

However, if you're computing the Digest in Rust, you can just pass the Vec<u8> to Blob directly

We ran into a very similar issue during our own development of S3 Flexible Checksums—@Velfi may have a code snippet to direct you to

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Velfi
Comment options

@chabashilah
Comment options

Answer selected by chabashilah
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants