Skip to content

Commit 918c253

Browse files
Added mutability marker to PhantomData sitting inside KDF params, to indicate necessity of mutability
Signed-off-by: Jacob Prud'homme <[email protected]>
1 parent 10923d8 commit 918c253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cryptoki/src/mechanism/kbkdf.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub struct KbkdfParams<'a> {
236236

237237
inner: CK_SP800_108_KDF_PARAMS,
238238
/// Marker type to ensure we don't outlive the data
239-
_marker: PhantomData<&'a [u8]>,
239+
_marker: PhantomData<&'a mut [u8]>,
240240
}
241241

242242
impl<'a> KbkdfParams<'a> {
@@ -305,7 +305,7 @@ pub struct KbkdfFeedbackParams<'a> {
305305

306306
inner: CK_SP800_108_FEEDBACK_KDF_PARAMS,
307307
/// Marker type to ensure we don't outlive the data
308-
_marker: PhantomData<&'a [u8]>,
308+
_marker: PhantomData<&'a mut [u8]>,
309309
}
310310

311311
impl<'a> KbkdfFeedbackParams<'a> {

0 commit comments

Comments
 (0)