Change MgmKey::algorithm_id from pub(crate) to pub (#635)
This commit is contained in:
+1
-1
@@ -457,7 +457,7 @@ impl MgmKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the ID used to identify the key algorithm with APDU packets.
|
/// Returns the ID used to identify the key algorithm with APDU packets.
|
||||||
pub(crate) fn algorithm_id(&self) -> MgmAlgorithmId {
|
pub fn algorithm_id(&self) -> MgmAlgorithmId {
|
||||||
match &self.0 {
|
match &self.0 {
|
||||||
MgmKeyKind::Tdes(_) => MgmAlgorithmId::ThreeDes,
|
MgmKeyKind::Tdes(_) => MgmAlgorithmId::ThreeDes,
|
||||||
MgmKeyKind::Aes128(_) => MgmAlgorithmId::Aes128,
|
MgmKeyKind::Aes128(_) => MgmAlgorithmId::Aes128,
|
||||||
|
|||||||
Reference in New Issue
Block a user