Skip to content

Commit ac8f628

Browse files
authored
Merge pull request #272 from ivozeba/PkcsOaepParams-windows-packing-fix
#266: Added conditional attribute to pack the PkcsOaepParams struct o…
2 parents 4d71ade + 1d52d25 commit ac8f628

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cryptoki/src/mechanism/rsa.rs

Lines changed: 1 addition & 0 deletions
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)