mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 22:38:33 +08:00
1
graphene-pk11/graphene-pk11.d.ts
vendored
1
graphene-pk11/graphene-pk11.d.ts
vendored
@@ -2131,6 +2131,7 @@ declare module "graphene-pk11" {
|
||||
SO_PIN_FINAL_TRY,
|
||||
SO_PIN_LOCKED,
|
||||
SO_PIN_TO_BE_CHANGED,
|
||||
ERROR_STATE,
|
||||
}
|
||||
|
||||
class Token extends HandleObject {
|
||||
|
||||
7
pkcs11js/pkcs11js.d.ts
vendored
7
pkcs11js/pkcs11js.d.ts
vendored
@@ -210,7 +210,7 @@ declare module "pkcs11js" {
|
||||
* @param {Handle} slot ID of token's slot
|
||||
* @returns {Handle[]} Gets mech. array
|
||||
*/
|
||||
C_GetMechanismList(slot: Handle): number[];
|
||||
C_GetMechanismList(slot: Handle): Handle[];
|
||||
/**
|
||||
* Obtains information about a particular mechanism possibly supported by a token
|
||||
*
|
||||
@@ -218,7 +218,7 @@ declare module "pkcs11js" {
|
||||
* @param {Handle} mech Type of mechanism
|
||||
* @returns {MechanismInfo} Receives mechanism info
|
||||
*/
|
||||
C_GetMechanismInfo(slot: Handle, mech: number): MechanismInfo;
|
||||
C_GetMechanismInfo(slot: Handle, mech: Handle): MechanismInfo;
|
||||
|
||||
/* Session management */
|
||||
|
||||
@@ -1192,6 +1192,7 @@ declare module "pkcs11js" {
|
||||
const CKF_WRAP: number;
|
||||
const CKF_UNWRAP: number;
|
||||
const CKF_DERIVE: number;
|
||||
const CKF_CLOCK_ON_TOKEN: number;
|
||||
|
||||
// Certificates
|
||||
const CKC_X_509: number;
|
||||
@@ -1223,4 +1224,4 @@ declare module "pkcs11js" {
|
||||
const CK_PARAMS_RSA_OAEP: number;
|
||||
const CK_PARAMS_RSA_PSS: number;
|
||||
const CK_PARAMS_EC_DH: number;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user