Skip to content

Commit

Permalink
fixup! feat: add support for ChaCha20/Poly1305 to COSE module
Browse files Browse the repository at this point in the history
Co-authored-by: Falko Galperin <10247603+falko17@users.noreply.github.com>
  • Loading branch information
pulsastrix and falko17 authored Aug 27, 2024
1 parent f7ad522 commit e6116d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/token/cose/encrypted/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub trait EncryptCryptoBackend: CryptoBackend {
/// Implementations may assume that the provided key has the right length for
/// ChaCha20/Poly1305 and panic if this is not the case.
/// * `plaintext` - Data that should be encrypted.
/// * `aad` - additional authenticated data that should be included in the calculation of the
/// * `aad` - Additional authenticated data that should be included in the calculation of the
/// authentication tag, but not encrypted.
/// * `iv` - Initialization vector that should be used for the encryption process.
/// Implementations may assume that `iv` has the correct length for ChaCha20/Poly1305
Expand Down
2 changes: 1 addition & 1 deletion tests/dcaf_cose_examples/chacha-poly/empty_payload.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "ChaCha-Poly1305-01: Encryption with empty payload ",
"title": "ChaCha-Poly1305-01: Encryption with empty payload",
"input": {
"plaintext": "",
"enveloped": {
Expand Down

0 comments on commit e6116d4

Please sign in to comment.