]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Security/Cryptography/Core/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Security / Cryptography / Core / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {}
4 pub type AsymmetricKeyAlgorithmProvider = *mut ::core::ffi::c_void;
5 #[repr(transparent)]
6 pub struct Capi1KdfTargetAlgorithm(pub i32);
7 impl Capi1KdfTargetAlgorithm {
8 pub const NotAes: Self = Self(0i32);
9 pub const Aes: Self = Self(1i32);
10 }
11 impl ::core::marker::Copy for Capi1KdfTargetAlgorithm {}
12 impl ::core::clone::Clone for Capi1KdfTargetAlgorithm {
13 fn clone(&self) -> Self {
14 *self
15 }
16 }
17 pub type CryptographicHash = *mut ::core::ffi::c_void;
18 pub type CryptographicKey = *mut ::core::ffi::c_void;
19 #[repr(transparent)]
20 pub struct CryptographicPadding(pub i32);
21 impl CryptographicPadding {
22 pub const None: Self = Self(0i32);
23 pub const RsaOaep: Self = Self(1i32);
24 pub const RsaPkcs1V15: Self = Self(2i32);
25 pub const RsaPss: Self = Self(3i32);
26 }
27 impl ::core::marker::Copy for CryptographicPadding {}
28 impl ::core::clone::Clone for CryptographicPadding {
29 fn clone(&self) -> Self {
30 *self
31 }
32 }
33 #[repr(transparent)]
34 pub struct CryptographicPrivateKeyBlobType(pub i32);
35 impl 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 }
42 impl ::core::marker::Copy for CryptographicPrivateKeyBlobType {}
43 impl ::core::clone::Clone for CryptographicPrivateKeyBlobType {
44 fn clone(&self) -> Self {
45 *self
46 }
47 }
48 #[repr(transparent)]
49 pub struct CryptographicPublicKeyBlobType(pub i32);
50 impl CryptographicPublicKeyBlobType {
51 pub const X509SubjectPublicKeyInfo: Self = Self(0i32);
52 pub const Pkcs1RsaPublicKey: Self = Self(1i32);
53 pub const BCryptPublicKey: Self = Self(2i32);
54 pub const Capi1PublicKey: Self = Self(3i32);
55 pub const BCryptEccFullPublicKey: Self = Self(4i32);
56 }
57 impl ::core::marker::Copy for CryptographicPublicKeyBlobType {}
58 impl ::core::clone::Clone for CryptographicPublicKeyBlobType {
59 fn clone(&self) -> Self {
60 *self
61 }
62 }
63 pub type EncryptedAndAuthenticatedData = *mut ::core::ffi::c_void;
64 pub type HashAlgorithmProvider = *mut ::core::ffi::c_void;
65 pub type KeyDerivationAlgorithmProvider = *mut ::core::ffi::c_void;
66 pub type KeyDerivationParameters = *mut ::core::ffi::c_void;
67 pub type MacAlgorithmProvider = *mut ::core::ffi::c_void;
68 pub type SymmetricKeyAlgorithmProvider = *mut ::core::ffi::c_void;