Lines Matching refs:CK_RV
441 CK_RV (*t_init)(char *, CK_SLOT_ID, TSS_HCONTEXT *);
444 CK_RV (*t_rng)(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
445 CK_RV (*t_session)(CK_SLOT_ID);
446 CK_RV (*t_final)(TSS_HCONTEXT);
447 CK_RV (*t_rsa_decrypt)(TSS_HCONTEXT, CK_BYTE *,
450 CK_RV (*t_rsa_encrypt)(
455 CK_RV (*t_rsa_sign)(TSS_HCONTEXT,
462 CK_RV (*t_rsa_verify)(TSS_HCONTEXT,
469 CK_RV (*t_rsa_generate_keypair)(TSS_HCONTEXT, TEMPLATE *, TEMPLATE *);
471 CK_RV (*t_sha_init)(DIGEST_CONTEXT *);
473 CK_RV (*t_sha_update)(
478 CK_RV (*t_sha_final)(
482 CK_RV (*t_login)(TSS_HCONTEXT, CK_USER_TYPE, CK_BYTE *, CK_ULONG);
483 CK_RV (*t_logout)(TSS_HCONTEXT);
484 CK_RV (*t_init_pin)(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
485 CK_RV (*t_set_pin)(ST_SESSION_HANDLE, CK_BYTE *,
487 CK_RV (*t_verify_so_pin)(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
584 CK_RV update_migration_data(TSS_HCONTEXT,
586 CK_RV token_rng(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
591 CK_RV token_get_tpm_info(TSS_HCONTEXT, TOKEN_DATA *);
593 CK_RV clock_set_default_attributes(TEMPLATE *);
594 CK_RV clock_check_required_attributes(TEMPLATE *, CK_ULONG);
595 CK_RV clock_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
597 CK_RV counter_set_default_attributes(TEMPLATE *);
598 CK_RV counter_check_required_attributes(TEMPLATE *, CK_ULONG);
599 CK_RV counter_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
601 CK_RV compute_next_token_obj_name(CK_BYTE *, CK_BYTE *);
603 CK_RV save_token_object(TSS_HCONTEXT, OBJECT *);
604 CK_RV save_public_token_object(OBJECT *);
605 CK_RV save_private_token_object(TSS_HCONTEXT, OBJECT *);
607 CK_RV load_public_token_objects(void);
608 CK_RV load_private_token_objects(TSS_HCONTEXT);
610 CK_RV reload_token_object(TSS_HCONTEXT, OBJECT *);
612 CK_RV delete_token_object(OBJECT *);
614 CK_RV init_token_data(TSS_HCONTEXT, TOKEN_DATA *);
615 CK_RV load_token_data(TSS_HCONTEXT, TOKEN_DATA *);
616 CK_RV save_token_data(TOKEN_DATA *);
619 CK_RV compute_sha(CK_BYTE *, CK_ULONG_32, CK_BYTE *);
621 CK_RV parity_is_odd(CK_BYTE);
623 CK_RV build_attribute(CK_ATTRIBUTE_TYPE,
626 CK_RV add_pkcs_padding(CK_BYTE *, UINT32, UINT32, UINT32);
628 CK_RV strip_pkcs_padding(CK_BYTE *, UINT32, UINT32 *);
630 CK_RV remove_leading_zeros(CK_ATTRIBUTE *);
632 CK_RV rsa_pkcs_encrypt(
641 CK_RV rsa_pkcs_decrypt(SESSION *,
649 CK_RV rsa_pkcs_sign(SESSION *,
657 CK_RV rsa_pkcs_verify(SESSION *,
664 CK_RV rsa_pkcs_verify_recover(SESSION *,
672 CK_RV rsa_hash_pkcs_sign(SESSION *,
680 CK_RV rsa_hash_pkcs_verify(SESSION *,
687 CK_RV rsa_hash_pkcs_sign_update(SESSION *,
692 CK_RV rsa_hash_pkcs_verify_update(SESSION *,
697 CK_RV rsa_hash_pkcs_sign_final(SESSION *,
703 CK_RV rsa_hash_pkcs_verify_final(SESSION *,
709 CK_RV ckm_rsa_key_pair_gen(TSS_HCONTEXT, TEMPLATE *, TEMPLATE *);
711 CK_RV sha1_hash(SESSION *, CK_BBOOL,
716 CK_RV sha1_hmac_sign(SESSION *, CK_BBOOL,
723 CK_RV sha1_hmac_verify(SESSION *,
730 CK_RV md5_hash(SESSION *, CK_BBOOL,
735 CK_RV md5_hmac_sign(SESSION *, CK_BBOOL,
742 CK_RV md5_hmac_verify(SESSION *,
760 CK_RV attach_shm(void);
761 CK_RV detach_shm(void);
765 CK_RV encr_mgr_init(SESSION *,
771 CK_RV encr_mgr_cleanup(ENCR_DECR_CONTEXT *);
773 CK_RV encr_mgr_encrypt(SESSION *, CK_BBOOL,
778 CK_RV decr_mgr_init(SESSION *,
784 CK_RV decr_mgr_cleanup(ENCR_DECR_CONTEXT *);
786 CK_RV decr_mgr_decrypt(SESSION *, CK_BBOOL,
791 CK_RV digest_mgr_cleanup(DIGEST_CONTEXT *);
793 CK_RV digest_mgr_init(SESSION *,
797 CK_RV digest_mgr_digest(SESSION *, CK_BBOOL,
802 CK_RV digest_mgr_digest_update(SESSION *,
806 CK_RV digest_mgr_digest_key(SESSION *,
810 CK_RV digest_mgr_digest_final(SESSION *,
814 CK_RV key_mgr_generate_key_pair(SESSION *,
821 CK_RV key_mgr_wrap_key(SESSION *,
829 CK_RV key_mgr_unwrap_key(SESSION *,
838 CK_RV sign_mgr_init(SESSION *,
844 CK_RV sign_mgr_cleanup(SIGN_VERIFY_CONTEXT *);
846 CK_RV sign_mgr_sign(SESSION *,
854 CK_RV sign_mgr_sign_recover(SESSION *,
862 CK_RV sign_mgr_sign_final(SESSION *,
868 CK_RV sign_mgr_sign_update(SESSION *,
873 CK_RV verify_mgr_init(SESSION *,
879 CK_RV verify_mgr_cleanup(SIGN_VERIFY_CONTEXT *);
881 CK_RV verify_mgr_verify(SESSION *,
888 CK_RV verify_mgr_verify_recover(SESSION *,
896 CK_RV verify_mgr_verify_update(SESSION *,
901 CK_RV verify_mgr_verify_final(SESSION *,
909 CK_RV session_mgr_close_all_sessions(void);
910 CK_RV session_mgr_close_session(SESSION *);
912 CK_RV session_mgr_login_all(CK_USER_TYPE);
913 CK_RV session_mgr_logout_all(void);
914 CK_RV session_mgr_new(CK_ULONG, SESSION **);
921 CK_RV session_mgr_get_op_state(SESSION *, CK_BBOOL,
924 CK_RV session_mgr_set_op_state(SESSION *,
927 CK_RV object_mgr_add(SESSION *,
930 CK_RV object_mgr_add_to_map(SESSION *, OBJECT *, CK_OBJECT_HANDLE *);
932 CK_RV object_mgr_add_to_shm(OBJECT *);
933 CK_RV object_mgr_del_from_shm(OBJECT *);
935 CK_RV object_mgr_copy(SESSION *,
939 CK_RV object_mgr_create_final(SESSION *,
942 CK_RV object_mgr_create_skel(SESSION *,
946 CK_RV object_mgr_destroy_object(SESSION *, CK_OBJECT_HANDLE);
948 CK_RV object_mgr_destroy_token_objects(TSS_HCONTEXT);
950 CK_RV object_mgr_find_in_map1(TSS_HCONTEXT, CK_OBJECT_HANDLE, OBJECT **);
952 CK_RV object_mgr_find_in_map2(TSS_HCONTEXT, OBJECT *, CK_OBJECT_HANDLE *);
954 CK_RV object_mgr_find_init(SESSION *, CK_ATTRIBUTE *, CK_ULONG);
956 CK_RV object_mgr_find_build_list(SESSION *,
962 CK_RV object_mgr_find_final(SESSION *);
964 CK_RV object_mgr_get_attribute_values(SESSION *,
969 CK_RV object_mgr_get_object_size(TSS_HCONTEXT, CK_OBJECT_HANDLE,
982 CK_RV object_mgr_remove_from_map(CK_OBJECT_HANDLE);
984 CK_RV object_mgr_restore_obj(CK_BYTE *, OBJECT *);
986 CK_RV object_mgr_set_attribute_values(SESSION *,
993 CK_RV object_create(CK_ATTRIBUTE *, CK_ULONG, OBJECT **);
995 CK_RV object_create_skel(CK_ATTRIBUTE *,
1002 CK_RV object_copy(CK_ATTRIBUTE *,
1007 CK_RV object_flatten(OBJECT *,
1013 CK_RV object_get_attribute_values(OBJECT *,
1019 CK_RV object_restore(CK_BYTE *,
1023 CK_RV object_set_attribute_values(OBJECT *,
1035 CK_RV template_add_attributes(TEMPLATE *,
1038 CK_RV template_add_default_attributes(TEMPLATE *,
1052 CK_RV template_check_required_attributes(TEMPLATE *,
1055 CK_RV template_check_required_base_attributes(TEMPLATE *,
1061 CK_RV template_copy(TEMPLATE *, TEMPLATE *);
1063 CK_RV template_flatten(TEMPLATE *, CK_BYTE *);
1065 CK_RV template_free(TEMPLATE *);
1074 CK_RV template_set_default_common_attributes(TEMPLATE *);
1076 CK_RV template_merge(TEMPLATE *, TEMPLATE **);
1078 CK_RV template_update_attribute(TEMPLATE *, CK_ATTRIBUTE *);
1080 CK_RV template_unflatten(TEMPLATE **, CK_BYTE *, CK_ULONG);
1082 CK_RV template_validate_attribute(TEMPLATE *,
1085 CK_RV template_validate_attributes(TEMPLATE *,
1088 CK_RV template_validate_base_attribute(TEMPLATE *,
1094 CK_RV data_object_check_required_attributes(TEMPLATE *, CK_ULONG);
1095 CK_RV data_object_set_default_attributes(TEMPLATE *, CK_ULONG);
1096 CK_RV data_object_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1099 CK_RV cert_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1101 CK_RV cert_x509_check_required_attributes(TEMPLATE *, CK_ULONG);
1102 CK_RV cert_x509_set_default_attributes(TEMPLATE *, CK_ULONG);
1103 CK_RV cert_x509_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1104 CK_RV cert_vendor_check_required_attributes(TEMPLATE *, CK_ULONG);
1105 CK_RV cert_vendor_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1110 CK_RV key_object_check_required_attributes(TEMPLATE *, CK_ULONG);
1111 CK_RV key_object_set_default_attributes(TEMPLATE *, CK_ULONG);
1112 CK_RV key_object_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1114 CK_RV publ_key_check_required_attributes(TEMPLATE *, CK_ULONG);
1115 CK_RV publ_key_set_default_attributes(TEMPLATE *, CK_ULONG);
1116 CK_RV publ_key_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1118 CK_RV priv_key_check_required_attributes(TEMPLATE *, CK_ULONG);
1119 CK_RV priv_key_set_default_attributes(TEMPLATE *, CK_ULONG);
1120 CK_RV priv_key_unwrap(TEMPLATE *, CK_ULONG, CK_BYTE *, CK_ULONG);
1121 CK_RV priv_key_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1124 CK_RV secret_key_check_required_attributes(TEMPLATE *, CK_ULONG);
1125 CK_RV secret_key_set_default_attributes(TEMPLATE *, CK_ULONG);
1126 CK_RV secret_key_unwrap(TEMPLATE *, CK_ULONG, CK_BYTE *, CK_ULONG,
1128 CK_RV secret_key_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *,
1133 CK_RV rsa_publ_check_required_attributes(TEMPLATE *, CK_ULONG);
1134 CK_RV rsa_publ_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1135 CK_RV rsa_publ_set_default_attributes(TEMPLATE *, CK_ULONG);
1137 CK_RV rsa_priv_check_required_attributes(TEMPLATE *, CK_ULONG);
1138 CK_RV rsa_priv_set_default_attributes(TEMPLATE *, CK_ULONG);
1139 CK_RV rsa_priv_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, 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);
1144 CK_RV generic_secret_check_required_attributes(TEMPLATE *, CK_ULONG);
1145 CK_RV generic_secret_set_default_attributes(TEMPLATE *, CK_ULONG);
1146 CK_RV generic_secret_validate_attribute(TEMPLATE *, CK_ATTRIBUTE *, CK_ULONG);
1147 CK_RV generic_secret_wrap_get_data(TEMPLATE *, CK_BBOOL,
1150 CK_RV generic_secret_unwrap(TEMPLATE *, CK_BYTE *, CK_ULONG, CK_BBOOL fromend);
1152 CK_RV tpm_encrypt_data(TSS_HCONTEXT,
1155 CK_RV tpm_decrypt_data(TSS_HCONTEXT,
1161 CK_RV ber_decode_INTEGER(CK_BYTE *,
1164 CK_RV ber_encode_OCTET_STRING(CK_BBOOL,
1167 CK_RV ber_decode_OCTET_STRING(CK_BYTE *,
1170 CK_RV ber_encode_SEQUENCE(CK_BBOOL,
1173 CK_RV ber_decode_SEQUENCE(CK_BYTE *,
1176 CK_RV ber_encode_PrivateKeyInfo(CK_BBOOL,
1180 CK_RV ber_decode_PrivateKeyInfo(CK_BYTE *,
1183 CK_RV ber_encode_RSAPrivateKey(CK_BBOOL,
1189 CK_RV ber_decode_RSAPrivateKey(CK_BYTE *,
1195 CK_RV ber_encode_DSAPrivateKey(CK_BBOOL,
1199 CK_RV ber_decode_DSAPrivateKey(CK_BYTE *,
1265 typedef CK_RV
1268 typedef CK_RV
1271 typedef CK_RV
1273 typedef CK_RV
1276 typedef CK_RV
1279 typedef CK_RV
1283 typedef CK_RV
1286 typedef CK_RV
1289 typedef CK_RV
1293 typedef CK_RV
1297 typedef CK_RV
1301 typedef CK_RV
1305 typedef CK_RV
1311 typedef CK_RV
1316 typedef CK_RV
1319 typedef CK_RV
1322 typedef CK_RV
1325 typedef CK_RV
1329 typedef CK_RV
1335 typedef CK_RV
1339 typedef CK_RV
1341 typedef CK_RV
1346 typedef CK_RV
1351 typedef CK_RV
1354 typedef CK_RV
1358 typedef CK_RV
1362 typedef CK_RV
1366 typedef CK_RV
1370 typedef CK_RV
1375 typedef CK_RV
1378 typedef CK_RV
1382 typedef CK_RV
1387 typedef CK_RV
1392 typedef CK_RV
1397 typedef CK_RV
1401 typedef CK_RV
1406 typedef CK_RV
1411 typedef CK_RV
1415 typedef CK_RV
1419 typedef CK_RV
1424 typedef CK_RV
1428 typedef CK_RV
1431 typedef CK_RV
1435 typedef CK_RV
1439 typedef CK_RV
1444 typedef CK_RV
1448 typedef CK_RV
1452 typedef CK_RV
1456 typedef CK_RV
1461 typedef CK_RV
1465 typedef CK_RV
1470 typedef CK_RV
1474 typedef CK_RV
1478 typedef CK_RV
1482 typedef CK_RV
1487 typedef CK_RV
1492 typedef CK_RV
1497 typedef CK_RV
1502 typedef CK_RV
1507 typedef CK_RV
1512 typedef CK_RV
1521 typedef CK_RV
1526 typedef CK_RV
1532 typedef CK_RV
1537 typedef CK_RV
1541 typedef CK_RV
1545 typedef CK_RV
1548 typedef CK_RV
1551 typedef CK_RV
1555 typedef CK_RV