1 //! CryptoAPI private keys.
2 use winapi::um::wincrypt;
3 
4 /// A handle to a key.
5 pub struct CryptKey(wincrypt::HCRYPTKEY);
6 
7 impl Drop for CryptKey {
drop(&mut self)8     fn drop(&mut self) {
9         unsafe {
10             wincrypt::CryptDestroyKey(self.0);
11         }
12     }
13 }
14 
15 inner!(CryptKey, wincrypt::HCRYPTKEY);
16