/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | data_obj.c | 297 data_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 299 return (template_check_required_base_attributes(tmpl, mode)); 312 data_object_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 346 (void) template_update_attribute(tmpl, class_attr); 347 (void) template_update_attribute(tmpl, app_attr); 348 (void) template_update_attribute(tmpl, value_attr); 354 data_object_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, argument 366 return (template_validate_base_attribute(tmpl, attr, mode));
|
H A D | cert.c | 303 cert_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 308 if (! tmpl) 312 found = template_attribute_find(tmpl, 319 return (template_check_required_base_attributes(tmpl, mode)); 326 cert_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 347 return (template_validate_base_attribute(tmpl, attr, mode)); 352 cert_x509_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) { argument 356 found = template_attribute_find(tmpl, CKA_SUBJECT, &attr); 360 found = template_attribute_find(tmpl, CKA_VALUE, &attr); 364 return (cert_check_required_attributes(tmpl, mod 377 cert_x509_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 418 cert_x509_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 445 cert_vendor_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 451 cert_vendor_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument [all...] |
H A D | hwf_obj.c | 296 hwf_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 301 found = template_attribute_find(tmpl, CKA_HW_FEATURE_TYPE, &attr); 308 return (template_check_required_base_attributes(tmpl, mode)); 312 clock_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 318 found = template_attribute_find(tmpl, CKA_VALUE, &attr); 324 return (hwf_object_check_required_attributes(tmpl, mode)); 328 counter_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 334 found = template_attribute_find(tmpl, CKA_VALUE, &attr); 339 found = template_attribute_find(tmpl, CKA_HAS_RESET, &attr); 344 found = template_attribute_find(tmpl, CKA_RESET_ON_INI 357 hwf_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 373 clock_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 384 counter_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 401 clock_set_default_attributes(TEMPLATE *tmpl) argument 421 counter_set_default_attributes(TEMPLATE *tmpl) argument [all...] |
H A D | object.c | 429 TEMPLATE * tmpl = NULL; local 441 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); 444 if (! o || ! tmpl || ! new_tmpl) { 450 (void) memset(tmpl, 0x0, sizeof (TEMPLATE)); 455 rc = template_copy(tmpl, old_obj->template); 471 found = template_get_class(tmpl, &class, &subclass); 489 rc = template_merge(tmpl, &new_tmpl); 494 rc = template_check_required_attributes(tmpl, class, 499 o->template = tmpl; 504 if (tmpl) 757 TEMPLATE * tmpl = NULL; local 820 TEMPLATE * tmpl = NULL; local [all...] |
H A D | template.c | 301 template_add_attributes(TEMPLATE * tmpl, argument 328 rc = template_update_attribute(tmpl, attr); 342 template_add_default_attributes(TEMPLATE * tmpl, argument 351 rc = template_set_default_common_attributes(tmpl); 359 return (data_object_set_default_attributes(tmpl, mode)); 362 return (cert_x509_set_default_attributes(tmpl, mode)); 369 tmpl, mode)); 378 tmpl, mode)); 387 tmpl, mode)); 396 tmpl)); 420 template_attribute_find(TEMPLATE * tmpl, CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE ** attr) argument 451 template_attribute_find_multiple(TEMPLATE * tmpl, ATTRIBUTE_PARSE_LIST * parselist, CK_ULONG plcount) argument 469 template_check_required_attributes(TEMPLATE * tmpl, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 540 template_check_required_base_attributes(TEMPLATE * tmpl, CK_ULONG mode) argument 629 template_flatten(TEMPLATE * tmpl, CK_BYTE * dest) argument 704 TEMPLATE * tmpl = NULL; local 829 template_free(TEMPLATE *tmpl) argument 847 template_get_class(TEMPLATE * tmpl, CK_ULONG * class, CK_ULONG * subclass) argument 879 template_get_count(TEMPLATE *tmpl) argument 887 template_get_size(TEMPLATE *tmpl) argument 907 template_get_compressed_size(TEMPLATE *tmpl) argument 949 template_check_exportability(TEMPLATE *tmpl, CK_ATTRIBUTE_TYPE type) argument 1024 template_set_default_common_attributes(TEMPLATE *tmpl) argument 1076 template_update_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *new_attr) argument 1105 template_validate_attribute(TEMPLATE * tmpl, CK_ATTRIBUTE * attr, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 1167 template_validate_attributes(TEMPLATE * tmpl, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 1192 template_validate_base_attribute(TEMPLATE * tmpl, CK_ATTRIBUTE * attr, CK_ULONG mode) argument [all...] |
H A D | key.c | 296 key_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 301 found = template_attribute_find(tmpl, CKA_KEY_TYPE, &attr); 308 return (template_check_required_base_attributes(tmpl, mode)); 312 key_object_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 366 (void) template_update_attribute(tmpl, id_attr); 367 (void) template_update_attribute(tmpl, sdate_attr); 368 (void) template_update_attribute(tmpl, edate_attr); 369 (void) template_update_attribute(tmpl, derive_attr); 370 (void) template_update_attribute(tmpl, local_attr); 376 key_object_validate_attribute(TEMPLATE *tmpl, argument 402 publ_key_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 407 publ_key_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 496 publ_key_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 519 priv_key_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 524 priv_key_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 653 priv_key_unwrap(TEMPLATE *tmpl, CK_ULONG keytype, CK_BYTE *data, CK_ULONG data_len) argument 726 priv_key_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 798 secret_key_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 804 secret_key_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 948 secret_key_unwrap(TEMPLATE *tmpl, CK_ULONG keytype, CK_BYTE *data, CK_ULONG data_len, CK_BBOOL fromend) argument 1020 secret_key_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 1101 rsa_publ_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 1131 rsa_publ_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 1187 rsa_publ_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 1226 rsa_priv_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 1309 rsa_priv_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 1360 rsa_priv_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 1430 rsa_priv_wrap_get_data(TEMPLATE *tmpl, CK_BBOOL length_only, CK_BYTE **data, CK_ULONG *data_len) argument 1481 rsa_priv_unwrap(TEMPLATE *tmpl, CK_BYTE *data, CK_ULONG total_length) argument 1524 generic_secret_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 1550 generic_secret_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 1600 generic_secret_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 1636 generic_secret_wrap_get_data(TEMPLATE * tmpl, CK_BBOOL length_only, CK_BYTE ** data, CK_ULONG * data_len) argument 1669 generic_secret_unwrap(TEMPLATE *tmpl, CK_BYTE *data, CK_ULONG data_len, CK_BBOOL fromend) argument [all...] |
H A D | tpm_specific.c | 461 util_check_public_exponent(TEMPLATE *tmpl) argument 468 flag = template_attribute_find(tmpl, CKA_PUBLIC_EXPONENT,
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 60 CK_ATTRIBUTE tmpl[3]; local 70 tmpl[attrs].type = CKA_CLASS; 71 tmpl[attrs].pValue = &class; 72 tmpl[attrs].ulValueLen = sizeof (class); 79 tmpl[attrs].type = CKA_KEY_TYPE; 80 tmpl[attrs].pValue = &keytype; 81 tmpl[attrs].ulValueLen = sizeof (keytype); 94 tmpl[attrs].type = CKA_VALUE_LEN; 97 tmpl[attrs].pValue = &outlen; 98 tmpl[attr [all...] |
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | disptmpl.c | 51 static void free_disptmpl( struct ldap_disptmpl *tmpl ); 179 struct ldap_disptmpl *prevtmpl, *tmpl; local 194 while ( buflen > 0 && ( rc = read_next_tmpl( &buf, &buflen, &tmpl, 195 version )) == 0 && tmpl != NULLDISPTMPL ) { 197 *tmpllistp = tmpl; 199 prevtmpl->dt_next = tmpl; 201 prevtmpl = tmpl; 228 free_disptmpl( struct ldap_disptmpl *tmpl ) 230 if ( tmpl != NULL ) { 231 if ( tmpl 385 ldap_next_tmplrow( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row ) argument 392 ldap_first_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row ) argument 399 ldap_next_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row, struct ldap_tmplitem *col ) argument 407 ldap_tmplattrs( struct ldap_disptmpl *tmpl, char **includeattrs, int exclude, unsigned int syntaxmask ) argument 485 struct ldap_disptmpl *tmpl; local [all...] |
H A D | tmplout.c | 49 struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, 59 static int max_label_len( struct ldap_disptmpl *tmpl ); 99 struct ldap_disptmpl *tmpl, 117 rv = do_entry2text( ld, buf, NULL, entry, tmpl, defattrs, defvals, 122 return( do_entry2text( ld, buf, NULL, entry, tmpl, defattrs, defvals, 134 struct ldap_disptmpl *tmpl, 158 rv = do_entry2text( ld, buf, base, entry, tmpl, defattrs, defvals, 163 return( do_entry2text( ld, buf, base, entry, tmpl, defattrs, defvals, 175 struct ldap_disptmpl *tmpl, 214 ( tmpl 95 ldap_entry2text( LDAP *ld, char *buf, LDAPMessage *entry, struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, writeptype writeproc, void *writeparm, char *eol, int rdncount, unsigned int opts ) argument 130 ldap_entry2html( LDAP *ld, char *buf, LDAPMessage *entry, struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, writeptype writeproc, void *writeparm, char *eol, int rdncount, unsigned int opts, char *base, char *urlprefix ) argument 170 do_entry2text( LDAP *ld, char *buf, char *base, LDAPMessage *entry, struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, writeptype writeproc, void *writeparm, char *eol, int rdncount, unsigned int opts, char *urlprefix ) argument 489 struct ldap_disptmpl *tmpl; local [all...] |
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | disptmpl.c | 48 static void free_disptmpl( struct ldap_disptmpl *tmpl ); 159 struct ldap_disptmpl *prevtmpl, *tmpl; local 174 while ( buflen > 0 && ( rc = read_next_tmpl( &buf, &buflen, &tmpl, 175 version )) == 0 && tmpl != NULLDISPTMPL ) { 177 *tmpllistp = tmpl; 179 prevtmpl->dt_next = tmpl; 181 prevtmpl = tmpl; 209 free_disptmpl( struct ldap_disptmpl *tmpl ) 211 if ( tmpl != NULL ) { 212 if ( tmpl 368 ldap_next_tmplrow( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row ) argument 376 ldap_first_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row ) argument 384 ldap_next_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row, struct ldap_tmplitem *col ) argument 393 ldap_tmplattrs( struct ldap_disptmpl *tmpl, char **includeattrs, int exclude, unsigned long syntaxmask ) argument 471 struct ldap_disptmpl *tmpl = NULL; local [all...] |
H A D | tmplout.c | 49 struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, 59 static int max_label_len( struct ldap_disptmpl *tmpl ); 88 struct ldap_disptmpl *tmpl, 100 return( do_entry2text( ld, buf, NULL, entry, tmpl, defattrs, defvals, 113 struct ldap_disptmpl *tmpl, 131 return( do_entry2text( ld, buf, base, entry, tmpl, defattrs, defvals, 142 struct ldap_disptmpl *tmpl, 193 ( tmpl == NULL ) ? "Entry" : tmpl->dt_name ); 197 eol, eol, ( tmpl 84 ldap_entry2text( LDAP *ld, char *buf, LDAPMessage *entry, struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, writeptype writeproc, void *writeparm, char *eol, int rdncount, unsigned long opts ) argument 109 ldap_entry2html( LDAP *ld, char *buf, LDAPMessage *entry, struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, writeptype writeproc, void *writeparm, char *eol, int rdncount, unsigned long opts, char *base, char *urlprefix ) argument 137 do_entry2text( LDAP *ld, char *buf, char *base, LDAPMessage *entry, struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, writeptype writeproc, void *writeparm, char *eol, int rdncount, unsigned long opts, char *urlprefix ) argument 454 struct ldap_disptmpl *tmpl; local [all...] |
/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_ident.c | 628 dt_idhash_create(const char *name, const dt_ident_t *tmpl, argument 644 dhp->dh_tmpl = tmpl;
|
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystore.c | 2001 CK_ATTRIBUTE tmpl[5]; local 2017 tmpl[attrs].type = CKA_CLASS; 2018 tmpl[attrs].pValue = &class; 2019 tmpl[attrs].ulValueLen = sizeof (class); 2022 tmpl[attrs].type = CKA_KEY_TYPE; 2023 tmpl[attrs].pValue = &keytype; 2024 tmpl[attrs].ulValueLen = sizeof (keytype); 2027 tmpl[attrs].type = CKA_ENCRYPT; 2028 tmpl[attrs].pValue = &truevalue; 2029 tmpl[attr 2126 CK_ATTRIBUTE tmpl[5]; local [all...] |
H A D | softSSL.c | 95 static CK_RV soft_add_derived_key(CK_ATTRIBUTE_PTR tmpl, CK_ULONG attrcount, 974 soft_add_derived_key(CK_ATTRIBUTE_PTR tmpl, CK_ULONG attrcount, argument 984 if (((rv = soft_build_secret_key_object(tmpl, attrcount, secret_key,
|
/osnet-11/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaObjectManager.c | 1833 CK_MECHANISM *pMech, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len, 1866 if (!get_template_ulong(CKA_KEY_TYPE, tmpl, tmpl_len, &keytype)) 1925 meta_freeobject_set(meta_object_t *object, CK_ATTRIBUTE *tmpl, argument 1936 if (set_template_boolean(CKA_SENSITIVE, tmpl, tmpl_len, 1945 if (set_template_boolean(CKA_PRIVATE, tmpl, tmpl_len, 1986 CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len) 1993 if (set_template_boolean(CKA_TOKEN, tmpl, tmpl_len, B_TRUE, 2002 if (set_template_boolean(CKA_TOKEN, tmpl, tmpl_len, B_TRUE, 1832 meta_freeobject_check(meta_session_t *session, meta_object_t *object, CK_MECHANISM *pMech, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len, CK_KEY_TYPE keytype) argument 1985 meta_freetoken_set(CK_ULONG slot_num, CK_BBOOL *current_value, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len) argument
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | pp.c | 2431 register long *tmpl; local 2434 tmpl = (long*)tmps; 2435 for ( ; anum >= sizeof(long); anum -= sizeof(long), tmpl++) 2436 *tmpl = ~*tmpl; 2437 tmps = (U8*)tmpl;
|
/osnet-11/usr/src/lib/libzpool/common/ |
H A D | kernel.c | 793 crypto_key_t *key, crypto_ctx_template_t *tmpl, int kmflag) 800 crypto_destroy_ctx_template(crypto_ctx_template_t tmpl) argument 808 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, 836 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *plaintext, 792 crypto_create_ctx_template(crypto_mechanism_t *mech, crypto_key_t *key, crypto_ctx_template_t *tmpl, int kmflag) argument 807 crypto_encrypt(crypto_mechanism_t *mech, crypto_data_t *plaintext, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument 835 crypto_decrypt(crypto_mechanism_t *mech, crypto_data_t *ciphertext, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *plaintext, crypto_call_req_t *cr) argument
|