Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
pub use crate::*;
pub const NSSCK_VENDOR_NSS: u32 = 0x4E534350;
pub const CKM_NSS: u32 = CKM_VENDOR_DEFINED | NSSCK_VENDOR_NSS;
pub const CKM_NSS_HKDF_SHA256: u32 = CKM_NSS + 4;
pub const CKM_NSS_HKDF_SHA384: u32 = CKM_NSS + 5;
pub type CK_GCM_PARAMS = CK_GCM_PARAMS_V3;
#[repr(C)]
pub struct CK_GCM_PARAMS_V3 {
pub pIv: CK_BYTE_PTR,
pub ulIvLen: CK_ULONG,
pub ulIvBits: CK_ULONG,
pub pAAD: CK_BYTE_PTR,
pub ulAADLen: CK_ULONG,
pub ulTagBits: CK_ULONG,
}
#[repr(C)]
pub struct CK_NSS_HKDFParams {
pub bExtract: CK_BBOOL,
pub pSalt: CK_BYTE_PTR,
pub ulSaltLen: CK_ULONG,
pub bExpand: CK_BBOOL,
pub pInfo: CK_BYTE_PTR,
pub ulInfoLen: CK_ULONG,
}