Skip to content

Commit 1d52d25

Browse files
committed
parallaxsecond#266: Added conditional attribute to pack the PkcsOaepParams struct on windows only.
Signed-off-by: Ivo Zeba <[email protected]>
1 parent 4d71ade commit 1d52d25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cryptoki/src/mechanism/rsa.rs

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ pub struct PkcsPssParams {
134134
/// Parameters of the RsaPkcsOaep mechanism
135135
#[derive(Copy, Debug, Clone)]
136136
#[repr(C)]
137+
#[cfg_attr(windows, repr(packed))]
137138
pub struct PkcsOaepParams<'a> {
138139
/// mechanism ID of the message digest algorithm used to calculate the digest of the encoding
139140
/// parameter

0 commit comments

Comments
 (0)