Skip to content

Commit

Permalink
Merge pull request #1 from sg2342/fix_spelling
Browse files Browse the repository at this point in the history
rfc3394.erl fix spelling in comments
  • Loading branch information
sg2342 authored Jun 20, 2024
2 parents 847e226 + 3bd534e commit 2893de4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rfc3394.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ wrap(KeyData, KEK) -> wrap(KeyData, KEK, ?DEFAULT_IV).
unwrap `Ciphertext` with `KEK` and check `KeyData` integrity with default
initial value (`IV`)
`Ciphertext` is a binard of at least 24 bytes, `byte_size(Ciphertext)`
`Ciphertext` is a binary of at least 24 bytes, `byte_size(Ciphertext)`
must be divisible by 8.
`KEK` is a 128 bit or 192 bit or 256 bit AES key (binary).
the resulting `KeyData` 8 smaller than `Ciphertext`
Will raise an exception of class `error` wht reason `iv_mismatch` if the
Will raise an exception of class `error` with reason `iv_mismatch` if the
integrity check fails.
""".
-spec unwrap(Ciphertext :: binary(), KEK :: binary()) ->
Expand All @@ -48,7 +48,7 @@ wrap `KeyData` with `KEK` and `IV`
`KeyData` is a binary of at least 16 bytes,`byte_size(KeyData)`
must be divisible by 8.
`KEK` is a 128 bit or 192 bit or 256 bit binary.
`KEK` is a 128 bit or 192 bit or 256 bit AES key (binary).
`IV` is a 8 byte binary.
Expand Down Expand Up @@ -90,7 +90,7 @@ must be divisible by 8.
the resulting `KeyData` 8 smaller than `Ciphertext`
Will raise an exception of class `error` wht reason `iv_mismatch` if the
Will raise an exception of class `error` with reason `iv_mismatch` if the
integrity check fails.
see: https://datatracker.ietf.org/doc/html/rfc3394.txt#section-2.2.2 and
Expand Down

0 comments on commit 2893de4

Please sign in to comment.