/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | sha1.c | 18 * @key: Key for HMAC operations 19 * @key_len: Length of the key in bytes 26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, argument 29 unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ 43 /* if key is longer than 64 bytes reset it to key = SHA1(key) */ 45 if (sha1_vector(1, &key, &key_len, tk)) 47 key = tk; 55 * where K is an n byte key 104 hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument [all...] |
H A D | sha512.c | 18 * @key: Key for HMAC operations 19 * @key_len: Length of the key in bytes 26 int hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem, argument 29 unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ 42 /* if key is longer than 128 bytes reset it to key = SHA512(key) */ 44 if (sha512_vector(1, &key, &key_len, tk) < 0) 46 key = tk; 54 * where K is an n byte key 100 hmac_sha512(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument [all...] |
H A D | sha384.c | 18 * @key: Key for HMAC operations 19 * @key_len: Length of the key in bytes 26 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, argument 29 unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */ 42 /* if key is longer than 128 bytes reset it to key = SHA384(key) */ 44 if (sha384_vector(1, &key, &key_len, tk) < 0) 46 key = tk; 54 * where K is an n byte key 100 hmac_sha384(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument [all...] |
/freebsd-11-stable/crypto/heimdal/lib/kadm5/ |
H A D | keys.c | 61 keys[i].key.keyvalue.length = 0; 62 keys[i].key.keyvalue.data = NULL; 67 * return 1 if any key in `keys1, len1' exists in `keys2, len2' 90 if (keys1[i].key.keytype != keys2[j].key.keytype) 92 if (keys1[i].key.keyvalue.length != keys2[j].key.keyvalue.length) 94 if (memcmp (keys1[i].key.keyvalue.data, keys2[j].key.keyvalue.data, 95 keys1[i].key [all...] |
/freebsd-11-stable/sys/opencrypto/ |
H A D | xform_aes_icm.c | 86 aes_icm_reinit(caddr_t key, u_int8_t *iv) argument 90 ctx = (struct aes_icm_ctx *)key; 95 aes_gcm_reinit(caddr_t key, u_int8_t *iv) argument 99 aes_icm_reinit(key, iv); 101 ctx = (struct aes_icm_ctx *)key; 108 aes_icm_crypt(caddr_t key, u_int8_t *data) argument 114 ctx = (struct aes_icm_ctx *)key; 128 aes_icm_setkey(u_int8_t **sched, u_int8_t *key, int len) argument 141 ctx->ac_nr = rijndaelKeySetupEnc(ctx->ac_ek, (u_char *)key, len * 8);
|
/freebsd-11-stable/contrib/amd/amd/ |
H A D | sun2amd.c | 74 char line_buff[INFO_MAX_LINE_LEN], *tmp, *key, *entry; local 90 /* find start of key */ 91 key = line_buff; 92 while (*key != '\0' && isspace((unsigned char)*key)) { 93 key++; 97 if (*key == '\0') { 101 /* find the end of the key and NULL terminate */ 102 tmp = key; 118 if ((tmp = sun_entry2amd(key, entr [all...] |
/freebsd-11-stable/contrib/lua/src/ |
H A D | ltable.h | 38 /* returns the key, given the value of a table entry */ 43 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 44 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, 46 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key); 47 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 48 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 49 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 50 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 56 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 61 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); [all...] |
H A D | ltable.c | 79 {{NILCONSTANT, 0}} /* key */ 117 static Node *mainposition (const Table *t, const TValue *key) { argument 118 switch (ttype(key)) { 120 return hashint(t, ivalue(key)); 122 return hashmod(t, l_hashfloat(fltvalue(key))); 124 return hashstr(t, tsvalue(key)); 126 return hashpow2(t, luaS_hashlongstr(tsvalue(key))); 128 return hashboolean(t, bvalue(key)); 130 return hashpointer(t, pvalue(key)); 132 return hashpointer(t, fvalue(key)); 144 arrayindex(const TValue *key) argument 159 findindex(lua_State *L, Table *t, StkId key) argument 186 luaH_next(lua_State *L, Table *t, StkId key) argument 243 countint(const TValue *key, unsigned int *nums) argument 461 luaH_newkey(lua_State *L, Table *t, const TValue *key) argument 516 luaH_getint(Table *t, lua_Integer key) argument 539 luaH_getshortstr(Table *t, TString *key) argument 560 getgeneric(Table *t, const TValue *key) argument 575 luaH_getstr(Table *t, TString *key) argument 580 setsvalue(cast(lua_State *, NULL), &ko, key); local 589 luaH_get(Table *t, const TValue *key) argument 610 luaH_set(lua_State *L, Table *t, const TValue *key) argument 618 luaH_setint(lua_State *L, Table *t, lua_Integer key, TValue *value) argument 682 luaH_mainposition(const Table *t, const TValue *key) argument [all...] |
/freebsd-11-stable/contrib/ofed/opensm/opensm/ |
H A D | st.c | 52 st_data_t key; member in struct:st_table_entry 79 static inline st_ptr_t st_strhash(void *key) argument 81 return strhash((const char *)key); 106 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)(((void*)key)) 107 #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) 257 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ 258 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key))) 495 delete_never(st_data_t key, st_data_t value, st_data_t never) argument [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/tests/ |
H A D | symtab_test.c | 33 undefine(char *key, unsigned int type, isc_symvalue_t value, void *arg) { argument 37 isc_mem_free(mctx, key); 72 char str[16], *key; local 75 key = isc_mem_strdup(mctx, str); 76 ATF_REQUIRE(key != NULL); 79 result = isc_symtab_define(st, key, 1, value, policy); 82 undefine(key, 1, value, NULL); 89 char str[16], *key; local 92 key = isc_mem_strdup(mctx, str); 93 ATF_REQUIRE(key ! [all...] |
/freebsd-11-stable/sys/crypto/blowfish/ |
H A D | bf_ecb.c | 72 BF_KEY *key, int encrypt) 79 BF_encrypt(d,key); 81 BF_decrypt(d,key); 71 BF_ecb_encrypt(const unsigned char *in, unsigned char *out, BF_KEY *key, int encrypt) argument
|
/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | pkcs1.h | 15 int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, 18 int pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key, 21 int pkcs1_decrypt_public_key(struct crypto_rsa_key *key,
|
H A D | rsa.h | 21 size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key); 23 struct crypto_rsa_key *key, int use_private); 24 void crypto_rsa_free(struct crypto_rsa_key *key);
|
/freebsd-11-stable/crypto/openssl/crypto/bf/ |
H A D | bf_ecb.c | 83 const BF_KEY *key, int encrypt) 92 BF_encrypt(d, key); 94 BF_decrypt(d, key); 82 BF_ecb_encrypt(const unsigned char *in, unsigned char *out, const BF_KEY *key, int encrypt) argument
|
/freebsd-11-stable/lib/libc/iconv/ |
H A D | citrus_lookup.h | 52 _citrus_lookup_alias(const char *path, const char *key, char *buf, size_t n, argument 57 ret = _citrus_lookup_simple(path, key, buf, n, ignore_case); 59 ret = key;
|
/freebsd-11-stable/tools/tools/termcap/ |
H A D | termcap.pl | 118 foreach my $key (sort(keys(%keys))) { 119 next if (!defined $tc{$tca}{$key} && !defined $tc{$tcb}{$key}); 121 defined $tc{$tca}{$key} ? "+" : "", 122 defined $tc{$tcb}{$key} ? "+" : "", 123 $key, 139 foreach my $key (sort(keys(%keys))) { 140 next if (!defined $tc{$tca}{$key}); 141 printf("%s\n", $key); 146 foreach my $key (key [all...] |
/freebsd-11-stable/crypto/openssl/crypto/evp/ |
H A D | e_bf.c | 67 static int bf_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 80 static int bf_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, argument 83 BF_set_key(&data(ctx)->ks, EVP_CIPHER_CTX_key_length(ctx), key);
|
H A D | e_cast.c | 68 static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 82 static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, argument 85 CAST_set_key(&data(ctx)->ks, EVP_CIPHER_CTX_key_length(ctx), key);
|
H A D | e_seed.c | 65 static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 76 static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, argument 79 SEED_set_key(key, ctx->cipher_data);
|
H A D | e_aes_cbc_hmac_sha256.c | 102 AES_KEY *key); 104 AES_KEY *key); 109 const AES_KEY *key, unsigned char *ivec, int enc); 112 const AES_KEY *key, unsigned char iv[16], 121 EVP_AES_HMAC_SHA256 *key = data(ctx); local 125 memset(&key->ks, 0, sizeof(key->ks.rd_key)), 126 ret = aesni_set_encrypt_key(inkey, ctx->key_len * 8, &key->ks); 128 ret = aesni_set_decrypt_key(inkey, ctx->key_len * 8, &key->ks); 130 SHA256_Init(&key 204 tls1_1_multi_block_encrypt(EVP_AES_HMAC_SHA256 *key, unsigned char *out, const unsigned char *inp, size_t inp_len, int n4x) argument 475 EVP_AES_HMAC_SHA256 *key = data(ctx); local 800 EVP_AES_HMAC_SHA256 *key = data(ctx); local [all...] |
/freebsd-11-stable/sys/libkern/ |
H A D | bsearch.c | 56 bsearch(key, base0, nmemb, size, compar) 57 const void *key; 70 cmp = (*compar)(key, p); 73 if (cmp > 0) { /* key > p: move right */
|
/freebsd-11-stable/sys/sys/ |
H A D | pctrie.h | 73 name##_PCTRIE_LOOKUP(struct pctrie *ptree, uint64_t key) \ 76 return name##_PCTRIE_VAL2PTR(pctrie_lookup(ptree, key)); \ 80 name##_PCTRIE_LOOKUP_LE(struct pctrie *ptree, uint64_t key) \ 83 return name##_PCTRIE_VAL2PTR(pctrie_lookup_le(ptree, key)); \ 87 name##_PCTRIE_LOOKUP_GE(struct pctrie *ptree, uint64_t key) \ 90 return name##_PCTRIE_VAL2PTR(pctrie_lookup_ge(ptree, key)); \ 101 name##_PCTRIE_REMOVE(struct pctrie *ptree, uint64_t key) \ 104 pctrie_remove(ptree, key, freefn); \ 112 uint64_t *pctrie_lookup(struct pctrie *ptree, uint64_t key); 113 uint64_t *pctrie_lookup_ge(struct pctrie *ptree, uint64_t key); [all...] |
/freebsd-11-stable/contrib/subversion/subversion/svnrdump/ |
H A D | util.c | 44 const char *key = apr_hash_this_key(hi); 49 SVN_ERR(svn_repos__normalize_prop(&value, NULL, key, value, 51 svn_hash_sets(*normal_props, key, svn_string_dup(value, result_pool)); 43 const char *key = apr_hash_this_key(hi); local
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | mark.c | 32 * Marks are maintained in a key sorted singly linked list. We can't 33 * use arrays because we have no idea how big an index key could be. 116 ARG_CHAR_T key, 122 if (key == ABSMARK2) 123 key = ABSMARK1; 125 lmp = mark_find(sp, key); 126 if (lmp == NULL || lmp->name != key) { 127 msgq(sp, mtype, "017|Mark %s: not set", KEY_NAME(sp, key)); 132 "018|Mark %s: the line was deleted", KEY_NAME(sp, key)); 144 KEY_NAME(sp, key)); 114 mark_get( SCR *sp, ARG_CHAR_T key, MARK *mp, mtype_t mtype) argument 159 mark_set( SCR *sp, ARG_CHAR_T key, MARK *value, int userset) argument 201 mark_find( SCR *sp, ARG_CHAR_T key) argument [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/stdlib/ |
H A D | t_hsearch.c | 99 e.key = strdup(ch); /* ptr to provided key is kept! */ 100 ATF_REQUIRE(e.key != NULL); 106 ATF_REQUIRE_STREQ(ep->key, ch); 110 /* e.key should be constant from here on down. */ 111 e.key = ch; 120 ATF_REQUIRE_STREQ(ep->key, ch); 145 e.key = __UNCONST("a"); 151 ATF_REQUIRE_STREQ(ep->key, "a"); 160 ATF_REQUIRE_STREQ(ep->key, " [all...] |