Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump hmac and crypto-mac dependencies to v0.10 #58

Merged
merged 1 commit into from
Oct 18, 2020

Conversation

tarcieri
Copy link
Member

No description provided.

@tarcieri tarcieri merged commit 7e0b116 into master Oct 18, 2020
@tarcieri tarcieri deleted the hmac-and-crypto-mac-v0.10 branch October 18, 2020 15:38
tarcieri added a commit that referenced this pull request Oct 18, 2020
Cuts the following new releases which include an upgrade to
`crypto-mac` v0.10 (#58):

- `bcrypt-pbkdf` v0.4.0
- `pbkdf2` v0.6.0
- `scrypt` v0.5.0
@tarcieri tarcieri mentioned this pull request Oct 18, 2020
tarcieri added a commit that referenced this pull request Oct 18, 2020
Cuts the following new releases which include an upgrade to
`crypto-mac` v0.10 (#58):

- `bcrypt-pbkdf` v0.4.0
- `pbkdf2` v0.6.0
- `scrypt` v0.5.0
dns2utf8 pushed a commit to dns2utf8/password-hashes that referenced this pull request Jan 24, 2023
…rypto#58)

This commit adds `encrypt_in_place_detached()` and
`decrypt_in_place_detached()` methods to `Aead` and `AeadMut`, along
with default implementations of `encrypt()` and `decrypt()` which assume
a postfix authentication tag.

Presently all of the AEAD implementations in `RustCrypto/AEADs` use this
pattern. This PR exposes the detached interface as a public API:

RustCrypto/AEADs#21

Note that this need not be the only in-place API (hence the long name
with `_detached` on the end. I plan on doing a follow-up PR for adding
an in-place API which does not depend on `alloc` but also handles
ciphertext message assembly/parsing, which would be more useful for end
users.

That said, this API isn't just useful for AEAD implementers: there are
genuine use cases for a detached API from an end user perspective, e.g
encrypted filesystems.

With the addition of this API, we can also make `alloc` an optional (but
enabled-by-default) feature, allowing use of AEADs on truly `#![no_std]`
targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant