blob: 4da97e5f8fa98fb68726511764f11e4fb88bc825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//! CryptoAPI private keys.
use windows_sys::Win32::Security::Cryptography;
/// A handle to a key.
pub struct CryptKey(usize);
impl Drop for CryptKey {
fn drop(&mut self) {
unsafe {
Cryptography::CryptDestroyKey(self.0);
}
}
}
inner!(CryptKey, usize);
|