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 {
88}
99
1010impl ProtectionProfile {
11- pub ( crate ) fn key_len ( & self ) -> usize {
11+ pub fn key_len ( & self ) -> usize {
1212 match * self {
1313 ProtectionProfile :: Aes128CmHmacSha1_80 | ProtectionProfile :: AeadAes128Gcm => 16 ,
1414 }
1515 }
1616
17- pub ( crate ) fn salt_len ( & self ) -> usize {
17+ pub fn salt_len ( & self ) -> usize {
1818 match * self {
1919 ProtectionProfile :: Aes128CmHmacSha1_80 => 14 ,
2020 ProtectionProfile :: AeadAes128Gcm => 12 ,
2121 }
2222 }
2323
24- pub ( crate ) fn auth_tag_len ( & self ) -> usize {
24+ pub fn auth_tag_len ( & self ) -> usize {
2525 match * self {
2626 ProtectionProfile :: Aes128CmHmacSha1_80 => 10 , //CIPHER_AES_CM_HMAC_SHA1AUTH_TAG_LEN,
2727 ProtectionProfile :: AeadAes128Gcm => 16 , //CIPHER_AEAD_AES_GCM_AUTH_TAG_LEN,
2828 }
2929 }
3030
31- pub ( crate ) fn auth_key_len ( & self ) -> usize {
31+ pub fn auth_key_len ( & self ) -> usize {
3232 match * self {
3333 ProtectionProfile :: Aes128CmHmacSha1_80 => 20 ,
3434 ProtectionProfile :: AeadAes128Gcm => 0 ,
You can’t perform that action at this time.
0 commit comments