]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Security/Cryptography/Core/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Security / Cryptography / Core / mod.rs
CommitLineData
5e7ed085 1pub type AsymmetricKeyAlgorithmProvider = *mut ::core::ffi::c_void;
04454e1e 2#[doc = "*Required features: `\"Security_Cryptography_Core\"`*"]
5e7ed085
FG
3#[repr(transparent)]
4pub struct Capi1KdfTargetAlgorithm(pub i32);
5impl Capi1KdfTargetAlgorithm {
6 pub const NotAes: Self = Self(0i32);
7 pub const Aes: Self = Self(1i32);
8}
9impl ::core::marker::Copy for Capi1KdfTargetAlgorithm {}
10impl ::core::clone::Clone for Capi1KdfTargetAlgorithm {
11 fn clone(&self) -> Self {
12 *self
13 }
14}
15pub type CryptographicHash = *mut ::core::ffi::c_void;
16pub type CryptographicKey = *mut ::core::ffi::c_void;
04454e1e 17#[doc = "*Required features: `\"Security_Cryptography_Core\"`*"]
5e7ed085
FG
18#[repr(transparent)]
19pub struct CryptographicPadding(pub i32);
20impl CryptographicPadding {
21 pub const None: Self = Self(0i32);
22 pub const RsaOaep: Self = Self(1i32);
23 pub const RsaPkcs1V15: Self = Self(2i32);
24 pub const RsaPss: Self = Self(3i32);
25}
26impl ::core::marker::Copy for CryptographicPadding {}
27impl ::core::clone::Clone for CryptographicPadding {
28 fn clone(&self) -> Self {
29 *self
30 }
31}
04454e1e 32#[doc = "*Required features: `\"Security_Cryptography_Core\"`*"]
5e7ed085
FG
33#[repr(transparent)]
34pub struct CryptographicPrivateKeyBlobType(pub i32);
35impl CryptographicPrivateKeyBlobType {
36 pub const Pkcs8RawPrivateKeyInfo: Self = Self(0i32);
37 pub const Pkcs1RsaPrivateKey: Self = Self(1i32);
38 pub const BCryptPrivateKey: Self = Self(2i32);
39 pub const Capi1PrivateKey: Self = Self(3i32);
40 pub const BCryptEccFullPrivateKey: Self = Self(4i32);
41}
42impl ::core::marker::Copy for CryptographicPrivateKeyBlobType {}
43impl ::core::clone::Clone for CryptographicPrivateKeyBlobType {
44 fn clone(&self) -> Self {
45 *self
46 }
47}
04454e1e 48#[doc = "*Required features: `\"Security_Cryptography_Core\"`*"]
5e7ed085
FG
49#[repr(transparent)]
50pub struct CryptographicPublicKeyBlobType(pub i32);
51impl CryptographicPublicKeyBlobType {
52 pub const X509SubjectPublicKeyInfo: Self = Self(0i32);
53 pub const Pkcs1RsaPublicKey: Self = Self(1i32);
54 pub const BCryptPublicKey: Self = Self(2i32);
55 pub const Capi1PublicKey: Self = Self(3i32);
56 pub const BCryptEccFullPublicKey: Self = Self(4i32);
57}
58impl ::core::marker::Copy for CryptographicPublicKeyBlobType {}
59impl ::core::clone::Clone for CryptographicPublicKeyBlobType {
60 fn clone(&self) -> Self {
61 *self
62 }
63}
64pub type EncryptedAndAuthenticatedData = *mut ::core::ffi::c_void;
65pub type HashAlgorithmProvider = *mut ::core::ffi::c_void;
66pub type KeyDerivationAlgorithmProvider = *mut ::core::ffi::c_void;
67pub type KeyDerivationParameters = *mut ::core::ffi::c_void;
68pub type MacAlgorithmProvider = *mut ::core::ffi::c_void;
69pub type SymmetricKeyAlgorithmProvider = *mut ::core::ffi::c_void;