Crypt-HSM
view release on metacpan or search on metacpan
include/pkcs11t.h view on Meta::CPAN
*/
#define CKF_SECONDARY_AUTHENTICATION 0x00000800UL
/* CKF_USER_PIN_COUNT_LOW. If it is true, an
* incorrect user login PIN has been entered at least once
* since the last successful authentication.
*/
#define CKF_USER_PIN_COUNT_LOW 0x00010000UL
/* CKF_USER_PIN_FINAL_TRY. If it is true,
* supplying an incorrect user PIN will it to become locked.
*/
#define CKF_USER_PIN_FINAL_TRY 0x00020000UL
/* CKF_USER_PIN_LOCKED. If it is true, the
* user PIN has been locked. User login to the token is not
* possible.
*/
#define CKF_USER_PIN_LOCKED 0x00040000UL
/* CKF_USER_PIN_TO_BE_CHANGED. If it is true,
* the user PIN value is the default value set by token
* initialization or manufacturing, or the PIN has been
* expired by the card.
*/
#define CKF_USER_PIN_TO_BE_CHANGED 0x00080000UL
/* CKF_SO_PIN_COUNT_LOW. If it is true, an
* incorrect SO login PIN has been entered at least once since
* the last successful authentication.
*/
#define CKF_SO_PIN_COUNT_LOW 0x00100000UL
/* CKF_SO_PIN_FINAL_TRY. If it is true,
* supplying an incorrect SO PIN will it to become locked.
*/
#define CKF_SO_PIN_FINAL_TRY 0x00200000UL
/* CKF_SO_PIN_LOCKED. If it is true, the SO
* PIN has been locked. SO login to the token is not possible.
*/
#define CKF_SO_PIN_LOCKED 0x00400000UL
/* CKF_SO_PIN_TO_BE_CHANGED. If it is true,
* the SO PIN value is the default value set by token
* initialization or manufacturing, or the PIN has been
* expired by the card.
*/
#define CKF_SO_PIN_TO_BE_CHANGED 0x00800000UL
include/refcount.h view on Meta::CPAN
if (result == 1)
atomic_thread_fence(memory_order_acquire);
return result;
}
# define refcount_destroy(count) ((void)0)
#elif defined(_MSC_VER)
/* Visual C++ doesn't support C11 atomics yet. However, Windows documentation
* guarantees that simple reads and writes are atomic:
* https://docs.microsoft.com/en-us/windows/win32/sync/interlocked-variable-access
*/
#include <windows.h>
#define HAS_ATOMICS
typedef volatile size_t Refcount;
#define refcount_load(counter) *(counter)
#define refcount_init(counter, value) do { *(counter) = (value); } while (0)
#define refcount_destroy(count) ((void)0)
#ifdef _WIN64
# define refcount_inc(counter) InterlockedExchangeAdd64((LONG64*)(counter), 1)
# define refcount_dec(counter) InterlockedExchangeAdd64((LONG64*)(counter), -1)
#else
# define refcount_inc(counter) InterlockedExchangeAdd((LONG*)(counter), 1)
# define refcount_dec(counter) InterlockedExchangeAdd((LONG*)(counter), -1)
#endif
#elif defined(USE_THREADS)
/* Mutex based fallback implementation for threaded perls */
typedef struct {
perl_mutex mutex;
UV counter;
} Refcount;
lib/Crypt/HSM.xs view on Meta::CPAN
{ STR_WITH_LEN("key unextractable"), CKR_KEY_UNEXTRACTABLE },
{ STR_WITH_LEN("mechanism invalid"), CKR_MECHANISM_INVALID },
{ STR_WITH_LEN("mechanism param invalid"), CKR_MECHANISM_PARAM_INVALID },
{ STR_WITH_LEN("object handle invalid"), CKR_OBJECT_HANDLE_INVALID },
{ STR_WITH_LEN("operation active"), CKR_OPERATION_ACTIVE },
{ STR_WITH_LEN("operation not initialized"), CKR_OPERATION_NOT_INITIALIZED },
{ STR_WITH_LEN("pin incorrect"), CKR_PIN_INCORRECT },
{ STR_WITH_LEN("pin invalid"), CKR_PIN_INVALID },
{ STR_WITH_LEN("pin len range"), CKR_PIN_LEN_RANGE },
{ STR_WITH_LEN("pin expired"), CKR_PIN_EXPIRED },
{ STR_WITH_LEN("pin locked"), CKR_PIN_LOCKED },
{ STR_WITH_LEN("session closed"), CKR_SESSION_CLOSED },
{ STR_WITH_LEN("session count"), CKR_SESSION_COUNT },
{ STR_WITH_LEN("session handle invalid"), CKR_SESSION_HANDLE_INVALID },
{ STR_WITH_LEN("session parallel not supported"), CKR_SESSION_PARALLEL_NOT_SUPPORTED },
{ STR_WITH_LEN("session read only"), CKR_SESSION_READ_ONLY },
{ STR_WITH_LEN("session exists"), CKR_SESSION_EXISTS },
{ STR_WITH_LEN("session read only exists"), CKR_SESSION_READ_ONLY_EXISTS },
{ STR_WITH_LEN("session read write so exists"), CKR_SESSION_READ_WRITE_SO_EXISTS },
{ STR_WITH_LEN("signature invalid"), CKR_SIGNATURE_INVALID },
{ STR_WITH_LEN("signature len range"), CKR_SIGNATURE_LEN_RANGE },
lib/Crypt/HSM.xs view on Meta::CPAN
{ STR_WITH_LEN("random no rng"), CKR_RANDOM_NO_RNG },
{ STR_WITH_LEN("domain params invalid"), CKR_DOMAIN_PARAMS_INVALID },
{ STR_WITH_LEN("curve not supported"), CKR_CURVE_NOT_SUPPORTED },
{ STR_WITH_LEN("buffer too small"), CKR_BUFFER_TOO_SMALL },
{ STR_WITH_LEN("saved state invalid"), CKR_SAVED_STATE_INVALID },
{ STR_WITH_LEN("information sensitive"), CKR_INFORMATION_SENSITIVE },
{ STR_WITH_LEN("state unsaveable"), CKR_STATE_UNSAVEABLE },
{ STR_WITH_LEN("cryptoki not initialized"), CKR_CRYPTOKI_NOT_INITIALIZED },
{ STR_WITH_LEN("cryptoki already initialized"), CKR_CRYPTOKI_ALREADY_INITIALIZED },
{ STR_WITH_LEN("mutex bad"), CKR_MUTEX_BAD },
{ STR_WITH_LEN("mutex not locked"), CKR_MUTEX_NOT_LOCKED },
{ STR_WITH_LEN("new pin mode"), CKR_NEW_PIN_MODE },
{ STR_WITH_LEN("next otp"), CKR_NEXT_OTP },
{ STR_WITH_LEN("exceeded max iterations"), CKR_EXCEEDED_MAX_ITERATIONS },
{ STR_WITH_LEN("fips self test failed"), CKR_FIPS_SELF_TEST_FAILED },
{ STR_WITH_LEN("library load failed"), CKR_LIBRARY_LOAD_FAILED },
{ STR_WITH_LEN("pin too weak"), CKR_PIN_TOO_WEAK },
{ STR_WITH_LEN("public key invalid"), CKR_PUBLIC_KEY_INVALID },
{ STR_WITH_LEN("function rejected"), CKR_FUNCTION_REJECTED },
{ STR_WITH_LEN("token resource exceeded"), CKR_TOKEN_RESOURCE_EXCEEDED },
{ STR_WITH_LEN("operation cancel failed"), CKR_OPERATION_CANCEL_FAILED },
lib/Crypt/HSM.xs view on Meta::CPAN
{ STR_WITH_LEN("login-required"), CKF_LOGIN_REQUIRED },
{ STR_WITH_LEN("user-pin-initialized"), CKF_USER_PIN_INITIALIZED },
{ STR_WITH_LEN("restore-key-not-needed"), CKF_RESTORE_KEY_NOT_NEEDED },
{ STR_WITH_LEN("clock-on-token"), CKF_CLOCK_ON_TOKEN },
{ STR_WITH_LEN("protected-authentication-path"), CKF_PROTECTED_AUTHENTICATION_PATH },
{ STR_WITH_LEN("dual-crypto-operations"), CKF_DUAL_CRYPTO_OPERATIONS },
{ STR_WITH_LEN("token-initialized"), CKF_TOKEN_INITIALIZED },
{ STR_WITH_LEN("secondary-authentication"), CKF_SECONDARY_AUTHENTICATION },
{ STR_WITH_LEN("user-pin-count-low"), CKF_USER_PIN_COUNT_LOW },
{ STR_WITH_LEN("user-pin-final-try"), CKF_USER_PIN_FINAL_TRY },
{ STR_WITH_LEN("user-pin-locked"), CKF_USER_PIN_LOCKED },
{ STR_WITH_LEN("user-pin-to-be-changed"), CKF_USER_PIN_TO_BE_CHANGED },
{ STR_WITH_LEN("so-pin-count-low"), CKF_SO_PIN_COUNT_LOW },
{ STR_WITH_LEN("so-pin-final-try"), CKF_SO_PIN_FINAL_TRY },
{ STR_WITH_LEN("so-pin-locked"), CKF_SO_PIN_LOCKED },
{ STR_WITH_LEN("so-pin-to-be-changed"), CKF_SO_PIN_TO_BE_CHANGED },
{ STR_WITH_LEN("error-state"), CKF_ERROR_STATE },
};
static const map session_flags = {
{ STR_WITH_LEN("rw-session"), CKF_RW_SESSION },
{ STR_WITH_LEN("serial-session"), CKF_SERIAL_SESSION },
};
typedef CK_FLAGS Session_flags;
#define XS_unpack_Session_flags(input) get_flags(session_flags, input)
lib/Crypt/ppport.h view on Meta::CPAN
get_and_check_backslash_N_name_wrapper|5.029009||Viu
get_ANYOF_cp_list_for_ssc|5.019005||Viu
get_ANYOFM_contents|5.027009||Viu
GETATARGET|5.003007||Viu
get_aux_mg|5.011000||Viu
get_av|5.006000|5.003007|p
getc|5.003007||Viu
get_c_backtrace|5.021001||Vi
get_c_backtrace_dump|5.021001||V
get_context|5.006000|5.006000|nu
getc_unlocked|5.003007||Viu
get_cv|5.006000|5.003007|p
get_cvn_flags|5.009005|5.003007|p
get_cvs|5.011000|5.003007|p
getcwd_sv|5.007002|5.007002|
get_db_sub|||iu
get_debug_opts|5.008001||Viu
get_deprecated_property_msg|5.031011||cVniu
getegid|5.005000||Viu
getenv|5.005000||Viu
getenv_len|5.006000||Viu
lib/Crypt/ppport.h view on Meta::CPAN
PERL_MAGIC_vec|5.007002|5.003007|p
PERL_MAGIC_vstring|5.008001|5.003007|p
PERL_MAGIC_VTABLE_MASK|5.015000||Viu
PERL_MALLOC_CTL_H|5.027001||Viu
Perl_malloc_good_size|5.010001||Viu
PERL_MALLOC_WRAP|5.009002|5.009002|Vn
PerlMem_calloc|5.006000||Viu
PerlMem_free|5.005000||Viu
PerlMem_free_lock|5.006000||Viu
PerlMem_get_lock|5.006000||Viu
PerlMem_is_locked|5.006000||Viu
PerlMem_malloc|5.005000||Viu
PERL_MEMORY_DEBUG_HEADER_SIZE|5.019009||Viu
PerlMemParse_calloc|5.006000||Viu
PerlMemParse_free|5.006000||Viu
PerlMemParse_free_lock|5.006000||Viu
PerlMemParse_get_lock|5.006000||Viu
PerlMemParse_is_locked|5.006000||Viu
PerlMemParse_malloc|5.006000||Viu
PerlMemParse_realloc|5.006000||Viu
PerlMem_realloc|5.005000||Viu
PerlMemShared_calloc|5.006000||Viu
PerlMemShared_free|5.006000||Viu
PerlMemShared_free_lock|5.006000||Viu
PerlMemShared_get_lock|5.006000||Viu
PerlMemShared_is_locked|5.006000||Viu
PerlMemShared_malloc|5.006000||Viu
PerlMemShared_realloc|5.006000||Viu
PERL_MG_UFUNC|5.007001||Viu
Perl_modf|5.006000|5.006000|n
PERL_MULTICONCAT_HEADER_SIZE|5.027006||Viu
PERL_MULTICONCAT_IX_LENGTHS|5.027006||Viu
PERL_MULTICONCAT_IX_NARGS|5.027006||Viu
PERL_MULTICONCAT_IX_PLAIN_LEN|5.027006||Viu
PERL_MULTICONCAT_IX_PLAIN_PV|5.027006||Viu
PERL_MULTICONCAT_IX_UTF8_LEN|5.027006||Viu
lib/Crypt/ppport.h view on Meta::CPAN
PUSHSTACKi|5.005000||Viu
PUSHSTACK_INIT_HWM|5.027002||Viu
PUSHTARG|5.003007||Viu
PUSHu|5.004000|5.003007|p
PUTBACK|5.003007|5.003007|
putc|5.003007||Viu
put_charclass_bitmap_innards|5.021004||Viu
put_charclass_bitmap_innards_common|5.023008||Viu
put_charclass_bitmap_innards_invlist|5.023008||Viu
put_code_point|5.021004||Viu
putc_unlocked|5.003007||Viu
putenv|5.005000||Viu
put_range|5.019009||Viu
putw|5.003007||Viu
pv_display|5.006000|5.003007|p
pv_escape|5.009004|5.003007|p
pv_pretty|5.009004|5.003007|p
pv_uni_display|5.007003|5.007003|
pWARN_ALL|5.006000||Viu
pWARN_NONE|5.006000||Viu
pWARN_STD|5.006000||Viu
( run in 0.499 second using v1.01-cache-2.11-cpan-26ccb49234f )