Skip to content

Run pbkdf tests with different PRFs #277

Description

@beldmit

We have now test vectors from RFC 6070 and CKP_PKCS5_PBKD2_HMAC_SHA1 as a PRF

kryoptic/src/tests/kdfs.rs

Lines 859 to 869 in 47bd87c

let params = CK_PKCS5_PBKD2_PARAMS2 {
saltSource: CKZ_DATA_SPECIFIED,
pSaltSourceData: void_ptr!(test.1.as_ptr()),
ulSaltSourceDataLen: test.1.len() as CK_ULONG,
iterations: test.2,
prf: CKP_PKCS5_PBKD2_HMAC_SHA1,
pPrfData: std::ptr::null_mut(),
ulPrfDataLen: 0,
pPassword: test.0.as_ptr() as *const _ as *mut _,
ulPasswordLen: test.0.len() as CK_ULONG,
};

We need to extend the tests set

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions