File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,27 +8,27 @@ pub enum ProtectionProfile {
8
8
}
9
9
10
10
impl ProtectionProfile {
11
- pub ( crate ) fn key_len ( & self ) -> usize {
11
+ pub fn key_len ( & self ) -> usize {
12
12
match * self {
13
13
ProtectionProfile :: Aes128CmHmacSha1_80 | ProtectionProfile :: AeadAes128Gcm => 16 ,
14
14
}
15
15
}
16
16
17
- pub ( crate ) fn salt_len ( & self ) -> usize {
17
+ pub fn salt_len ( & self ) -> usize {
18
18
match * self {
19
19
ProtectionProfile :: Aes128CmHmacSha1_80 => 14 ,
20
20
ProtectionProfile :: AeadAes128Gcm => 12 ,
21
21
}
22
22
}
23
23
24
- pub ( crate ) fn auth_tag_len ( & self ) -> usize {
24
+ pub fn auth_tag_len ( & self ) -> usize {
25
25
match * self {
26
26
ProtectionProfile :: Aes128CmHmacSha1_80 => 10 , //CIPHER_AES_CM_HMAC_SHA1AUTH_TAG_LEN,
27
27
ProtectionProfile :: AeadAes128Gcm => 16 , //CIPHER_AEAD_AES_GCM_AUTH_TAG_LEN,
28
28
}
29
29
}
30
30
31
- pub ( crate ) fn auth_key_len ( & self ) -> usize {
31
+ pub fn auth_key_len ( & self ) -> usize {
32
32
match * self {
33
33
ProtectionProfile :: Aes128CmHmacSha1_80 => 20 ,
34
34
ProtectionProfile :: AeadAes128Gcm => 0 ,
You can’t perform that action at this time.
0 commit comments