diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-05-12 10:43:52 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-05-12 13:32:30 +0200 |
commit | b1fdd0e62e12c936206db8aa9b567678a23c4708 (patch) | |
tree | 366fb6178c3eca43ff58ca008ec963ece677a7bf /openpgp/src/crypto/mem.rs | |
parent | 8f8e46bf43b9908827f576e4f8b3629df01ed3ee (diff) |
openpgp: Rename `iv_size` to `nonce_size` leaving `iv_size`.
- Rename `iv_size` to `nonce_size`.
- Introduce `iv_size` that forwards to `nonce_size` for compatibility
reasons.
- Change all calls to `iv_size` to `nonce_size`.
Diffstat (limited to 'openpgp/src/crypto/mem.rs')
-rw-r--r-- | openpgp/src/crypto/mem.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs index 30a0ab66..af7c5cfa 100644 --- a/openpgp/src/crypto/mem.rs +++ b/openpgp/src/crypto/mem.rs @@ -342,7 +342,7 @@ mod has_access_to_prekey { { // The nonce is a simple counter. let mut nonce_store = [0u8; aead::MAX_NONCE_LEN]; - let nonce_len = AEAD_ALGO.iv_size() + let nonce_len = AEAD_ALGO.nonce_size() .expect("Mandatory algorithm unsupported"); assert!(nonce_len >= 8); let nonce = &mut nonce_store[..nonce_len]; @@ -359,7 +359,7 @@ mod has_access_to_prekey { { // The nonce is a simple counter. let mut nonce_store = [0u8; aead::MAX_NONCE_LEN]; - let nonce_len = AEAD_ALGO.iv_size() + let nonce_len = AEAD_ALGO.nonce_size() .expect("Mandatory algorithm unsupported"); assert!(nonce_len >= 8); let nonce = &mut nonce_store[..nonce_len]; |