-
Notifications
You must be signed in to change notification settings - Fork 316
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
chore: update deps #1578
chore: update deps #1578
Conversation
f5b6f90
to
cd9f8d0
Compare
Processes, | ||
} | ||
|
||
impl FromStr for Mode { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, one can derive ArgEnum
. But that doesn't actually work with type_of_t
, so I'm not sure what one is supposed to do here. But this version should actually work.
let mode = cbc::Encryptor::<aes::Aes256>::new_from_slices(key, &IV).context("invalid key")?; | ||
|
||
Ok(mode.encrypt_vec(plaintext)) | ||
Ok(mode.encrypt_padded_vec_mut::<ZeroPadding>(plaintext)) | ||
} | ||
|
||
pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result<Vec<u8>> { | ||
ensure!(key.len() == 32, "invalid key length"); | ||
|
||
let mode = Cbc::<Aes256, ZeroPadding>::new_var(key, &IV).context("invalid key")?; | ||
let mode = cbc::Decryptor::<aes::Aes256>::new_from_slices(key, &IV).context("invalid key")?; | ||
|
||
let res = mode.decrypt_vec(ciphertext).context("failed to decrypt")?; | ||
let res = mode | ||
.decrypt_padded_vec_mut::<ZeroPadding>(ciphertext) | ||
.context("failed to decrypt")?; | ||
Ok(res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check this carefully.
This turned into a bit of a "deal with all the deprecated things"-fest. |
cd9f8d0
to
4861094
Compare
Ha, ha ha. Who was I kidding. |
The test failures are timeouts. I'm not sure what the right approach there is. |
I'm working on that. :( that our current cache is broken. Sounds like I need to provide a quick fix to unblock folks. |
@Stebalien #1582 that PR should make CI work again. Sadly it takes a long time to run (I'm also working on that problem). |
4861094
to
5b6e442
Compare
Hopefully this will let us use fewer duplicate deps. Except: - bellperson - neptune
5b6e442
to
9694b94
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'd like that @DrPeterVanNostrand has another at the hasher changs.
Ditto, thanks! |
Closing in favor of #1584 |
Hopefully this will let us use fewer duplicate deps.
Explicitly doesn't update:
Importantly: