/freebsd-11-stable/usr.sbin/sa/ |
H A D | extern.h | 71 BTREEINFO *bti, int (*v1_to_v2)(DBT *key, DBT *data)); 105 #define DB_GET(db, key, data, flags) \ 106 ((*(db)->get)((db), (key), (data), (flags))) 107 #define DB_PUT(db, key, data, flags) \ 108 ((*(db)->put)((db), (key), (data), (flags))) 111 #define DB_SEQ(db, key, data, flags) \ 112 ((*(db)->seq)((db), (key), (data), (flags)))
|
H A D | usrdb.c | 69 v1_to_v2(DBT *key, DBT *data) argument 75 if (key->size != sizeof(u_long) || data->size != sizeof(uiv1)) { 80 /* Convert key. */ 81 key->size = sizeof(uid_t); 82 uid = (uid_t)*(u_long *)(key->data); 83 key->data = &uid; 122 DBT key, data; local 128 key.data = &uid; 129 key.size = sizeof uid; 131 rv = DB_GET(usracct_db, &key, 185 DBT key, data; local [all...] |
/freebsd-11-stable/contrib/apr/include/ |
H A D | apr_hash.h | 38 * When passing a key to apr_hash_set or apr_hash_get, this value can be 39 * passed to indicate a string-valued key, and have apr_hash compute the 42 * @remark apr_hash will use strlen(key) for the length. The NUL terminator 44 * Since the hash table merely references the provided key (rather 45 * than copying it), apr_hash_this() will return the NUL-term'd key. 61 * @param key The key. 62 * @param klen The length of the key, or APR_HASH_KEY_STRING to use the string 63 * length. If APR_HASH_KEY_STRING then returns the actual key length. 65 typedef unsigned int (*apr_hashfunc_t)(const char *key, apr_ssize_ [all...] |
/freebsd-11-stable/crypto/openssl/crypto/aes/asm/ |
H A D | aes-586.pl | 65 # S-boxes, and 3.4 - L1 cache aliasing even between key schedule. The 66 # latter is achieved by copying the key schedule to controlled place in 71 # key schedule and S-boxes and abstains from copying the former if 73 # performance by aligning key schedule in specific manner. 77 # Current ECB performance numbers for 128-bit key in CPU cycles per 103 # byte for 128-bit key. 113 # Version 4.1 switches to compact S-box even in key schedule setup. 139 # plain-text pattern[s] or simply put chosen plain-text and given key 141 # attacker can figure out this access pattern, he can deduct the key 150 # would reveal the information about given key, bu [all...] |
/freebsd-11-stable/contrib/apr-util/test/ |
H A D | testdbm.c | 30 apr_datum_t key; member in struct:__anon157 44 table[i].key.dptr = apr_pmemdup(p, uuid.data, sizeof(uuid.data)); 45 table[i].key.dsize = sizeof(uuid.data); 55 table[i].key.dptr = apr_palloc(p, APR_UUID_FORMATTED_LENGTH); 56 table[i].key.dsize = APR_UUID_FORMATTED_LENGTH; 57 apr_uuid_format(table[i].key.dptr, &uuid); 69 rv = apr_dbm_store(db, table[i].key, table[i].val); 75 rv = apr_dbm_store(db, table[i].key, table[i].val); 89 rv = apr_dbm_fetch(db, table[i].key, &val); 110 rv = apr_dbm_delete(db, table[i].key); 135 apr_datum_t key; local [all...] |
/freebsd-11-stable/sys/crypto/des/ |
H A D | des_setkey.c | 70 void des_set_odd_parity(des_cblock *key) argument 75 (*key)[i]=odd_parity[(*key)[i]]; 78 int des_check_key_parity(des_cblock *key) argument 84 if ((*key)[i] != odd_parity[(*key)[i]]) 120 int des_is_weak_key(des_cblock *key) argument 131 if (memcmp(weak_keys[i],key,sizeof(des_cblock)) == 0) return(1); 145 int des_set_key(des_cblock *key, des_key_schedule schedule) argument 149 return des_set_key_checked(key, schedul 162 des_set_key_checked(des_cblock *key, des_key_schedule schedule) argument 172 des_set_key_unchecked(des_cblock *key, des_key_schedule schedule) argument 228 des_key_sched(des_cblock *key, des_key_schedule schedule) argument 233 des_fixup_key_parity(des_cblock *key) argument [all...] |
/freebsd-11-stable/crypto/openssl/crypto/cms/ |
H A D | cms_enc.c | 68 /* Return BIO based on EncryptedContentInfo and key */ 97 * If not keeping key set cipher to NULL so subsequent calls decrypt. 99 if (ec->key) 132 /* Generate random session key */ 133 if (!enc || !ec->key) { 143 if (!ec->key) { 144 ec->key = tkey; 155 /* If necessary set key length */ 166 /* Use random key */ 167 OPENSSL_cleanse(ec->key, e 217 cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen) argument 234 CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, const unsigned char *key, size_t keylen) argument [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | hash.c | 114 /* Read a key length line. Might be END, though. */ 121 entry->key = NULL; 136 /* Get the length of the key */ 141 _("Serialized hash malformed key length")); 145 entry->key = apr_palloc(pool, entry->keylen + 1); 146 SVN_ERR(svn_stream_read_full(stream, entry->key, &entry->keylen)); 147 entry->key[entry->keylen] = '\0'; 149 /* Suck up extra newline after key data */ 154 _("Serialized hash malformed key data")); 187 /* Get the length of the key */ 498 const void *key; local 514 const void *key; local 557 const char *key = local 567 svn_hash__gets_debug(apr_hash_t *ht, const char *key) argument 574 svn_hash__sets_debug(apr_hash_t *ht, const char *key, const void *val) argument 584 svn_hash__get_cstring(apr_hash_t *hash, const char *key, const char *default_value) argument 599 svn_hash__get_bool(apr_hash_t *hash, const char *key, svn_boolean_t default_value) argument 632 const unsigned char *key = (const unsigned char *)char_key; local [all...] |
H A D | cache.h | 38 const void *key, 44 const void *key, 49 const void *key, 68 const void *key, 75 const void *key,
|
/freebsd-11-stable/sys/crypto/rijndael/ |
H A D | rijndael-api-fst.c | 37 int rijndael_makeKey(keyInstance *key, BYTE direction, int keyLen, argument 41 if (key == NULL) { 46 key->direction = direction; 52 key->keyLen = keyLen; 58 memcpy(key->keyMaterial, keyMaterial, keyLen/8); 61 /* initialize key schedule: */ 62 memcpy(cipherKey, key->keyMaterial, keyLen/8); 64 key->Nr = rijndaelKeySetupEnc(key->rk, cipherKey, keyLen); 66 key 86 rijndael_blockEncrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputLen, BYTE *outBuffer) argument 201 rijndael_padEncrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputOctets, BYTE *outBuffer) argument 264 rijndael_blockDecrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputLen, BYTE *outBuffer) argument 363 rijndael_padDecrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputOctets, BYTE *outBuffer) argument [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_base/bdb/ |
H A D | reps-table.c | 30 #include "../key-gen.h" 57 /* Create the `next-key' table entry. */ 60 DBT key, value; 64 svn_fs_base__str_to_dbt(&key, NEXT_KEY_KEY), 80 const char *key, 92 svn_fs_base__str_to_dbt(&query, key), 100 _("No such representation '%s'"), key); 115 const char *key, 133 svn_fs_base__str_to_dbt(&query, key), 140 svn_fs_bdb__write_new_rep(const char **key, 59 DBT key, value; local 76 svn_fs_bdb__read_rep(representation_t **rep_p, svn_fs_t *fs, const char *key, trail_t *trail, apr_pool_t *pool) argument 112 svn_fs_bdb__write_rep(svn_fs_t *fs, const char *key, const representation_t *rep, trail_t *trail, apr_pool_t *pool) argument 138 svn_fs_bdb__write_new_rep(const char **key, svn_fs_t *fs, const representation_t *rep, trail_t *trail, apr_pool_t *pool) argument 182 svn_fs_bdb__delete_rep(svn_fs_t *fs, const char *key, trail_t *trail, apr_pool_t *pool) argument [all...] |
H A D | node-origins-table.c | 71 DBT key, value; 76 svn_fs_base__str_to_dbt(&key, node_id), 94 DBT key, value; 97 /* Create a key from our NODE_ID. */ 98 svn_fs_base__str_to_dbt(&key, node_id); 106 &key, svn_fs_base__result_dbt(&value), 0); 130 &key, &value, 0)); 139 DBT key; 141 svn_fs_base__str_to_dbt(&key, node_id); 145 trail->db_txn, &key, 70 DBT key, value; local 93 DBT key, value; local 138 DBT key; local [all...] |
H A D | txn-table.c | 34 #include "../key-gen.h" 65 /* Create the `next-key' table entry. */ 68 DBT key, value; local 71 svn_fs_base__str_to_dbt(&key, NEXT_KEY_KEY), 89 DBT key, value; local 96 svn_fs_base__str_to_dbt(&key, txn_name); 101 &key, &value, 0)); 121 /* Get the current value associated with the `next-key' key in the table. */ 123 SVN_ERR(BDB_WRAP(fs, N_("allocating new transaction ID (getting 'next-key')"), 177 DBT key; local 202 DBT key, value; local 243 DBT key, value; local [all...] |
/freebsd-11-stable/lib/librpcsvc/ |
H A D | yp_update.c | 58 yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen, argument 88 * netname. This is how the client side knows what public key 98 /* Make up a DES session key. */ 124 upargs.key.yp_buf_len = keylen; 125 upargs.key.yp_buf_val = key; 141 upargs.key.yp_buf_len = keylen; 142 upargs.key.yp_buf_val = key; 158 delargs.key [all...] |
/freebsd-11-stable/contrib/gcc/config/i386/ |
H A D | gthr-win32.c | 55 to emulate pthreads key dtors; the runtime provides a special DLL, 105 __gthr_win32_key_create (__gthread_key_t *key, void (*dtor) (void *)) argument 111 *key = tls_index; 115 status = __mingwthr_key_dtor (*key, dtor); 124 __gthr_win32_key_delete (__gthread_key_t key) argument 126 return (TlsFree (key) != 0) ? 0 : (int) GetLastError (); 130 __gthr_win32_getspecific (__gthread_key_t key) argument 135 ptr = TlsGetValue(key); 141 __gthr_win32_setspecific (__gthread_key_t key, const void *ptr) argument 143 return (TlsSetValue (key, (voi [all...] |
/freebsd-11-stable/sys/opencrypto/ |
H A D | xform_aes_xts.c | 76 aes_xts_reinit(caddr_t key, u_int8_t *iv) argument 78 struct aes_xts_ctx *ctx = (struct aes_xts_ctx *)key; 127 aes_xts_encrypt(caddr_t key, u_int8_t *data) argument 129 aes_xts_crypt((struct aes_xts_ctx *)key, data, 1); 133 aes_xts_decrypt(caddr_t key, u_int8_t *data) argument 135 aes_xts_crypt((struct aes_xts_ctx *)key, data, 0); 139 aes_xts_setkey(u_int8_t **sched, u_int8_t *key, int len) argument 152 rijndael_set_key(&ctx->key1, key, len * 4); 153 rijndael_set_key(&ctx->key2, key + (len / 2), len * 4);
|
/freebsd-11-stable/lib/libnv/tests/ |
H A D | nv_array_tests.cc | 56 const char *key; local 58 key = "nvl/bool"; 62 ATF_REQUIRE(!nvlist_exists_string_array(nvl, key)); 67 nvlist_add_bool_array(nvl, key, testbool, 16); 70 ATF_REQUIRE(nvlist_exists_bool_array(nvl, key)); 73 const_result = nvlist_get_bool_array(nvl, key, &num_items); 79 result = nvlist_take_bool_array(nvl, key, &num_items); 85 ATF_REQUIRE(!nvlist_exists_bool_array(nvl, key)); 101 const char *key; local 105 key 159 const char *key; local 217 const char *key; local 264 const char *key; local 464 const char *key; local 501 const char *key; local 544 const char *key; local 594 const char *key; local 631 const char *key; local 912 const char *key; local 956 const char *key; local 998 const char *key; local 1062 const char *key; local 1110 const char *key; local [all...] |
/freebsd-11-stable/contrib/apr-util/include/ |
H A D | apr_sdbm.h | 120 * Fetch an sdbm record value by key 123 * @param key The key datum to find this record 127 apr_sdbm_datum_t key); 130 * Store an sdbm record value by key 132 * @param key The key datum to store this record by 137 * APR_SDBM_REPLACE overwrite any existing record for key 140 APU_DECLARE(apr_status_t) apr_sdbm_store(apr_sdbm_t *db, apr_sdbm_datum_t key, 144 * Delete an sdbm record value by key [all...] |
/freebsd-11-stable/contrib/ldns/ldns/ |
H A D | radix.h | 70 uint8_t* key; member in struct:ldns_radix_node_t 121 * @param key: key. 122 * @param len: length of key. 127 ldns_status ldns_radix_insert(ldns_radix_t* tree, uint8_t* key, 133 * @param key: key. 134 * @param len: length of key. 138 void* ldns_radix_delete(ldns_radix_t* tree, uint8_t* key, radix_strlen_t len); 143 * @param key [all...] |
/freebsd-11-stable/lib/libdevdctl/ |
H A D | event_factory.cc | 71 Key key(rec->m_type, rec->m_subsystem); 74 m_registry.erase(key); 76 m_registry[key] = rec->m_buildMethod; 84 Key key(type, nvpairs["system"]); 87 Registry::const_iterator foundMethod(m_registry.find(key));
|
/freebsd-11-stable/crypto/openssh/ |
H A D | krl.h | 22 /* Functions to manage key revocation lists */ 53 int ssh_krl_revoke_key_explicit(struct ssh_krl *krl, const struct sshkey *key); 54 int ssh_krl_revoke_key_sha1(struct ssh_krl *krl, const struct sshkey *key); 55 int ssh_krl_revoke_key(struct ssh_krl *krl, const struct sshkey *key); 60 int ssh_krl_check_key(struct ssh_krl *krl, const struct sshkey *key); 61 int ssh_krl_file_contains_key(const char *path, const struct sshkey *key);
|
/freebsd-11-stable/crypto/openssl/crypto/bf/ |
H A D | blowfish.h | 107 void private_BF_set_key(BF_KEY *key, int len, const unsigned char *data); 109 void BF_set_key(BF_KEY *key, int len, const unsigned char *data); 111 void BF_encrypt(BF_LONG *data, const BF_KEY *key); 112 void BF_decrypt(BF_LONG *data, const BF_KEY *key); 115 const BF_KEY *key, int enc);
|
/freebsd-11-stable/crypto/openssl/crypto/modes/ |
H A D | ofb128.c | 68 size_t len, const void *key, 74 assert(in && out && key && ivec && num); 92 (*block) (ivec, ivec, key); 102 (*block) (ivec, ivec, key); 116 (*block) (ivec, ivec, key); 67 CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], int *num, block128_f block) argument
|
/freebsd-11-stable/contrib/ofed/opensm/include/complib/ |
H A D | cl_event_wheel.h | 94 (*cl_pfn_event_aged_cb_t) (IN uint64_t key, 98 * key 99 * [in] The key used for registering the item in the call to 156 * A Map holding all registered event items by their key. 187 uint64_t key; member in struct:_cl_event_wheel_reg_info 202 * key 203 * The key by which one can find the event 212 * The number of times the same event (key) was registered 366 IN const uint64_t key, 375 * key [all...] |
/freebsd-11-stable/crypto/openssl/crypto/hmac/ |
H A D | hmac.c | 68 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, argument 97 return FIPS_hmac_init_ex(ctx, key, len, md, NULL); 100 /* If we are changing MD then we must have a key */ 101 if (md != NULL && md != ctx->md && (key == NULL || len < 0)) 113 if (key != NULL) { 116 OPENSSL_assert(j <= (int)sizeof(ctx->key)); 120 if (!EVP_DigestUpdate(&ctx->md_ctx, key, len)) 122 if (!EVP_DigestFinal_ex(&(ctx->md_ctx), ctx->key, 126 if (len < 0 || len > (int)sizeof(ctx->key)) 128 memcpy(ctx->key, ke 158 HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md) argument 240 HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, size_t n, unsigned char *md, unsigned int *md_len) argument [all...] |