llcrypto: make RSAIdentity implement the Hash trait.

This commit is contained in:
Nick Mathewson 2020-08-27 12:03:32 -04:00
parent 86f6f30b6d
commit e221146d9e
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ pub const RSA_ID_LEN: usize = 20;
/// An identifier for a Tor relay, based on its legacy RSA
/// identity key. These are used all over the Tor protocol.
#[derive(Clone, Zeroize, Debug)]
#[derive(Clone, Zeroize, Debug, Hash)]
pub struct RSAIdentity {
id: [u8; RSA_ID_LEN],
}