Skip to content

Commit c69e4d6

Browse files
authored
make helper methods on ProtectionProfile pub (#582)
1 parent d6b1d34 commit c69e4d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

srtp/src/protection_profile.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ pub enum ProtectionProfile {
88
}
99

1010
impl 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,

0 commit comments

Comments
 (0)