summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2022-05-12 10:43:52 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2022-05-12 13:32:30 +0200
commitb1fdd0e62e12c936206db8aa9b567678a23c4708 (patch)
tree366fb6178c3eca43ff58ca008ec963ece677a7bf /openpgp/src/parse.rs
parent8f8e46bf43b9908827f576e4f8b3629df01ed3ee (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/parse.rs')
-rw-r--r--openpgp/src/parse.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index 6729c206..b4578e1c 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -2720,7 +2720,7 @@ impl SKESK5 {
php_try!(php.parse_u8("aead_algo")).into();
let s2k = php_try!(S2K::parse_v4(&mut php));
let s2k_supported = s2k.is_supported();
- let iv_size = php_try!(aead_algo.iv_size());
+ let iv_size = php_try!(aead_algo.nonce_size());
let digest_size = php_try!(aead_algo.digest_size());
// The rest of the packet is (potentially) the S2K
@@ -2922,7 +2922,7 @@ impl AED1 {
}
let chunk_size: u64 = 1 << (chunk_size + 6);
- let iv_size = php_try!(aead.iv_size());
+ let iv_size = php_try!(aead.nonce_size());
let iv = php_try!(php.parse_bytes("iv", iv_size));
let aed = php_try!(Self::new(