Lines Matching refs:CK_BYTE
274 CK_BYTE *context;
332 CK_BYTE name[8]; // for token objects
373 CK_BYTE user_pin_sha[SHA1_DIGEST_LENGTH];
374 CK_BYTE so_pin_sha[SHA1_DIGEST_LENGTH];
375 CK_BYTE next_token_object_name[8];
439 CK_BYTE token_debug_tag[MAXPATHLEN];
444 CK_RV (*t_rng)(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
447 CK_RV (*t_rsa_decrypt)(TSS_HCONTEXT, CK_BYTE *,
448 CK_ULONG, CK_BYTE *, CK_ULONG *, OBJECT *);
452 CK_BYTE *, CK_ULONG, CK_BYTE *,
456 CK_BYTE *,
458 CK_BYTE *,
463 CK_BYTE *,
465 CK_BYTE *,
475 CK_BYTE *,
480 CK_BYTE *,
482 CK_RV (*t_login)(TSS_HCONTEXT, CK_USER_TYPE, CK_BYTE *, CK_ULONG);
484 CK_RV (*t_init_pin)(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
485 CK_RV (*t_set_pin)(ST_SESSION_HANDLE, CK_BYTE *,
486 CK_ULONG, CK_BYTE *, CK_ULONG);
487 CK_RV (*t_verify_so_pin)(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
520 extern CK_BYTE so_pin_md5[MD5_DIGEST_LENGTH];
521 extern CK_BYTE user_pin_md5[MD5_DIGEST_LENGTH];
523 extern CK_BYTE default_user_pin_sha[SHA1_DIGEST_LENGTH];
524 extern CK_BYTE default_so_pin_sha[SHA1_DIGEST_LENGTH];
525 extern CK_BYTE default_so_pin_md5[MD5_DIGEST_LENGTH];
536 extern CK_BYTE ber_AlgIdRSAEncryption[];
538 extern CK_BYTE ber_rsaEncryption[];
540 extern CK_BYTE ber_idDSA[];
543 extern CK_BYTE ber_md5WithRSAEncryption[];
545 extern CK_BYTE ber_sha1WithRSAEncryption[];
547 extern CK_BYTE ber_AlgMd5[];
549 extern CK_BYTE ber_AlgSha1[];
586 CK_RV token_rng(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
601 CK_RV compute_next_token_obj_name(CK_BYTE *, CK_BYTE *);
619 CK_RV compute_sha(CK_BYTE *, CK_ULONG_32, CK_BYTE *);
621 CK_RV parity_is_odd(CK_BYTE);
624 CK_BYTE *, CK_ULONG, CK_ATTRIBUTE **);
626 CK_RV add_pkcs_padding(CK_BYTE *, UINT32, UINT32, UINT32);
628 CK_RV strip_pkcs_padding(CK_BYTE *, UINT32, UINT32 *);
636 CK_BYTE *,
638 CK_BYTE *,
644 CK_BYTE *,
646 CK_BYTE *,
652 CK_BYTE *,
654 CK_BYTE *,
659 CK_BYTE *,
661 CK_BYTE *,
667 CK_BYTE *,
669 CK_BYTE *,
675 CK_BYTE *,
677 CK_BYTE *,
682 CK_BYTE *,
684 CK_BYTE *,
689 CK_BYTE *,
694 CK_BYTE *,
700 CK_BYTE *,
705 CK_BYTE *,
713 CK_BYTE *, CK_ULONG,
714 CK_BYTE *, CK_ULONG *);
718 CK_BYTE *,
720 CK_BYTE *,
725 CK_BYTE *,
727 CK_BYTE *,
732 CK_BYTE *, CK_ULONG,
733 CK_BYTE *, CK_ULONG *);
737 CK_BYTE *,
739 CK_BYTE *,
744 CK_BYTE *,
746 CK_BYTE *,
775 CK_BYTE *, CK_ULONG,
776 CK_BYTE *, CK_ULONG *);
788 CK_BYTE *, CK_ULONG,
789 CK_BYTE *, CK_ULONG *);
799 CK_BYTE *, CK_ULONG,
800 CK_BYTE *, CK_ULONG *);
804 CK_BYTE *, CK_ULONG);
812 CK_BYTE *, CK_ULONG *);
826 CK_BYTE *,
833 CK_BYTE *,
849 CK_BYTE *,
851 CK_BYTE *,
857 CK_BYTE *,
859 CK_BYTE *,
865 CK_BYTE *,
870 CK_BYTE *,
883 CK_BYTE *,
885 CK_BYTE *,
891 CK_BYTE *,
893 CK_BYTE *,
898 CK_BYTE *,
903 CK_BYTE *,
922 CK_BYTE *, CK_ULONG *);
925 CK_OBJECT_HANDLE, CK_OBJECT_HANDLE, CK_BYTE *);
984 CK_RV object_mgr_restore_obj(CK_BYTE *, OBJECT *);
1008 CK_BYTE **,
1019 CK_RV object_restore(CK_BYTE *,
1063 CK_RV template_flatten(TEMPLATE *, CK_BYTE *);
1080 CK_RV template_unflatten(TEMPLATE **, CK_BYTE *, CK_ULONG);
1120 CK_RV priv_key_unwrap(TEMPLATE *, CK_ULONG, CK_BYTE *, CK_ULONG);
1126 CK_RV secret_key_unwrap(TEMPLATE *, CK_ULONG, CK_BYTE *, CK_ULONG,
1140 CK_RV rsa_priv_wrap_get_data(TEMPLATE *, CK_BBOOL, CK_BYTE **, CK_ULONG *);
1141 CK_RV rsa_priv_unwrap(TEMPLATE *, CK_BYTE *, CK_ULONG);
1148 CK_BYTE **, CK_ULONG *);
1150 CK_RV generic_secret_unwrap(TEMPLATE *, CK_BYTE *, CK_ULONG, CK_BBOOL fromend);
1153 TSS_HKEY, CK_BYTE *, CK_ULONG, CK_BYTE *, CK_ULONG *);
1156 TSS_HKEY, CK_BYTE *, CK_ULONG, CK_BYTE *, CK_ULONG *);
1159 CK_BYTE **, CK_ULONG *, CK_BYTE *, CK_ULONG);
1161 CK_RV ber_decode_INTEGER(CK_BYTE *,
1162 CK_BYTE **, CK_ULONG *, CK_ULONG *);
1165 CK_BYTE **, CK_ULONG *, CK_BYTE *, CK_ULONG);
1167 CK_RV ber_decode_OCTET_STRING(CK_BYTE *,
1168 CK_BYTE **, CK_ULONG *, CK_ULONG *);
1171 CK_BYTE **, CK_ULONG *, CK_BYTE *, CK_ULONG);
1173 CK_RV ber_decode_SEQUENCE(CK_BYTE *,
1174 CK_BYTE **, CK_ULONG *, CK_ULONG *);
1177 CK_BYTE **, CK_ULONG *, CK_BYTE *,
1178 CK_ULONG, CK_BYTE *, CK_ULONG);
1180 CK_RV ber_decode_PrivateKeyInfo(CK_BYTE *,
1181 CK_ULONG, CK_BYTE **, CK_ULONG *, CK_BYTE **);
1184 CK_BYTE **, CK_ULONG *, CK_ATTRIBUTE *,
1189 CK_RV ber_decode_RSAPrivateKey(CK_BYTE *,
1196 CK_BYTE **, CK_ULONG *, CK_ATTRIBUTE *,
1199 CK_RV ber_decode_DSAPrivateKey(CK_BYTE *,