Searched refs:hash (Results 1 - 25 of 954) sorted by relevance

1234567891011>>

/openbsd-current/usr.bin/ctfconv/
H A Dhash.h1 /* $OpenBSD: hash.h,v 1.2 2017/08/11 14:58:56 jasper Exp $ */
19 struct hash;
25 struct hash *hash_init(unsigned);
26 void hash_delete(struct hash *);
28 void *hash_first(struct hash *, unsigned int *);
29 void *hash_next(struct hash *, unsigned int *);
30 struct hash_entry *hash_find(struct hash *, const char *, unsigned int *);
31 void *hash_remove(struct hash *, unsigned int);
32 void hash_insert(struct hash *, unsigned int, struct hash_entry *, const char *);
/openbsd-current/gnu/usr.bin/perl/
H A Dsbox32_hash.h113 #define case_256_SBOX32(hash,state,key) _SBOX32_CASE(256,hash,state,key)
115 #define case_256_SBOX32(hash,state,key) /**/
118 #define case_255_SBOX32(hash,state,key) _SBOX32_CASE(255,hash,state,key)
120 #define case_255_SBOX32(hash,state,key) /**/
123 #define case_254_SBOX32(hash,state,key) _SBOX32_CASE(254,hash,state,key)
125 #define case_254_SBOX32(hash,state,key) /**/
128 #define case_253_SBOX32(hash,stat
1462 U32 hash = *state; local
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
H A Dunion1.C9 hash(const double d) function
21 hash (3.1415);
/openbsd-current/sbin/isakmpd/
H A Dhash.c1 /* $OpenBSD: hash.c,v 1.24 2015/10/15 06:35:54 mmcc Exp $ */
2 /* $EOM: hash.c,v 1.10 1999/04/17 23:20:34 niklas Exp $ */
39 #include "hash.h"
42 void hmac_init(struct hash *, unsigned char *, unsigned int);
43 void hmac_final(unsigned char *, struct hash *);
45 /* Temporary hash contexts. */
52 /* Temporary hash digest. */
55 /* Encapsulation of hash functions. */
57 static struct hash hashes[] = {
101 struct hash *
123 hmac_init(struct hash *hash, unsigned char *okey, unsigned int len) argument
159 hmac_final(unsigned char *dgst, struct hash *hash) argument
[all...]
H A Dcookie.c40 #include "hash.h"
57 struct hash *hash = hash_get(HASH_SHA1); local
61 hash->Init(hash->ctx);
63 hash->Update(hash->ctx, (u_int8_t *)name, SA_LEN(name));
65 hash->Update(hash->ctx, (u_int8_t *)name, SA_LEN(name));
67 hash
[all...]
H A Dprf.c36 #include "hash.h"
44 /* PRF behaves likes a hash */
49 memcpy(ctx->hash->ctx, ctx->ctx, ctx->hash->ctxsize);
50 memcpy(ctx->hash->ctx2, ctx->ctx2, ctx->hash->ctxsize);
57 ctx->hash->Update(ctx->hash->ctx, data, len);
63 ctx->hash->HMACFinal(digest, ctx->hash);
74 struct hash *hash; local
[all...]
H A Dvendor.c23 #include "hash.h"
37 struct hash *hash; local
40 hash = hash_get(HASH_MD5);
41 if (!hash) {
42 log_print("setup_vendor_hashes: could not find MD5 hash");
47 openbsd_vendor_cap[i].hashsize = hash->hashsize;
48 openbsd_vendor_cap[i].hash = calloc(hash->hashsize,
50 if (openbsd_vendor_cap[i].hash
[all...]
H A Dhash.h1 /* $OpenBSD: hash.h,v 1.8 2006/06/10 20:10:02 hshoexer Exp $ */
2 /* $EOM: hash.h,v 1.6 1998/07/25 22:04:36 niklas Exp $ */
35 /* Normal mode hash encapsulation */
52 struct hash { struct
55 u_int8_t hashsize; /* Size of the hash */
63 void (*HMACInit) (struct hash *, unsigned char *, unsigned int);
64 void (*HMACFinal) (unsigned char *, struct hash *);
73 extern struct hash *hash_get(enum hashes);
74 extern void hmac_init(struct hash *, unsigned char *, unsigned int);
H A Dvendor.h20 char *hash; member in struct:vendor_cap
H A Dprf.h51 struct hash *hash; /* Hash type to use */ member in struct:prf_hash_ctx
H A Dnat_traversal.c33 #include "hash.h"
53 * MD5 hash of "RFC 3947".
93 struct hash *hash; local
98 hash = hash_get(HASH_MD5);
99 if (!hash) {
102 "could not find MD5 hash structure!");
108 isakmp_nat_t_cap[i].hashsize = hash->hashsize;
109 isakmp_nat_t_cap[i].hash = malloc(hash
218 struct hash *hash; local
[all...]
/openbsd-current/usr.sbin/pkg_add/OpenBSD/
H A DGetopt.pm29 sub handle_option($opt, $hash, @params)
31 if (defined $hash->{$opt} and ref($hash->{$opt}) eq 'CODE') {
32 &{$hash->{$opt}}(@params);
39 $hash->{$opt} = $params[0];
42 $hash->{$opt}++;
48 sub getopts($args, $hash = {})
65 handle_option($opt, $hash, $other);
67 handle_option($opt, $hash);
80 return $hash;
[all...]
/openbsd-current/gnu/usr.bin/perl/dist/Storable/t/
H A Dmake_downgrade.pl21 my %hash = (perl=>"rules");
23 lock_hash %hash;
25 uuencode_it (\%hash, "Locked hash");
27 unlock_hash %hash;
29 lock_keys %hash, 'perl', 'rules';
30 lock_hash %hash;
32 uuencode_it (\%hash, "Locked hash placeholder");
34 unlock_hash %hash;
[all...]
/openbsd-current/regress/sbin/isakmpd/hmac/
H A Dhmactest.c37 #include "hash.h"
39 int test_hmac(char *, struct hash *, char *, int, char *, int, char *);
66 test_hmac(char *test, struct hash *hash, char *key, int klen, argument
74 hash->HMACInit(hash, key, klen);
75 hash->Update(hash->ctx, data, dlen);
76 hash->HMACFinal(hash
[all...]
/openbsd-current/gnu/gcc/libstdc++-v3/include/ext/
H A Dhash_fun.h1 // 'struct hash' from SGI -*- C++ -*-
71 struct hash { }; struct
83 struct hash<char*> struct
91 struct hash<const char*> struct
99 struct hash<char> struct
107 struct hash<unsigned char> struct
115 struct hash<signed char> struct
123 struct hash<short> struct
131 struct hash<unsigned short> struct
139 struct hash<in struct
147 struct hash<unsigned int> struct
155 struct hash<long> struct
163 struct hash<unsigned long> struct
[all...]
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/ext/
H A Dstl_hash_fun.h1 // 'struct hash' from SGI -*- C++ -*-
71 template <class _Key> struct hash { }; struct in namespace:__gnu_cxx
82 template<> struct hash<char*> struct in namespace:__gnu_cxx
87 template<> struct hash<const char*> struct in namespace:__gnu_cxx
92 template<> struct hash<char> { struct in namespace:__gnu_cxx
95 template<> struct hash<unsigned char> { struct in namespace:__gnu_cxx
98 template<> struct hash<signed char> { struct in namespace:__gnu_cxx
101 template<> struct hash<short> { struct in namespace:__gnu_cxx
104 template<> struct hash<unsigned short> { struct in namespace:__gnu_cxx
107 template<> struct hash<in struct in namespace:__gnu_cxx
110 template<> struct hash<unsigned int> { struct in namespace:__gnu_cxx
113 template<> struct hash<long> { struct in namespace:__gnu_cxx
116 template<> struct hash<unsigned long> { struct in namespace:__gnu_cxx
[all...]
/openbsd-current/gnu/usr.bin/perl/lib/Tie/
H A DSubstrHash.pm15 The B<Tie::SubstrHash> package provides a hash-table-like interface to
18 Upon tying a new hash to this package, the developer must specify the
22 duration of the tied hash>. The newly-allocated hash table may now have
27 may seem excessive, the result is a hash table using much less internal
28 memory than an equivalent freely-allocated hash table.
36 The hash does not support exists().
65 my $hashbase = my $hash = hashkey($key, $klen, $tsize);
67 my $offset = $hash * $rlen;
77 $hash
[all...]
/openbsd-current/gnu/gcc/libstdc++-v3/include/backward/
H A Dhashtable.h69 using __gnu_cxx::hash;
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/backward/
H A Dhashtable.h69 using __gnu_cxx::hash;
/openbsd-current/gnu/llvm/libcxx/include/__fwd/
H A Dhash.h21 struct _LIBCPP_TEMPLATE_VIS hash; variable in typeref:struct:_LIBCPP_TEMPLATE_VIS
/openbsd-current/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/hash_fn/
H A Ddirect_mask_range_hashing_imp.hpp62 operator()(size_type hash) const
63 { return mask_based_base::range_hash(hash); }
H A Ddirect_mod_range_hashing_imp.hpp62 operator()(size_type hash) const
63 { return mod_based_base::range_hash(hash); }
H A Dmod_based_range_hashing.hpp77 range_hash(size_type hash) const;
102 range_hash(size_type hash) const
104 return (hash % m_size);
/openbsd-current/gnu/usr.bin/perl/ext/Hash-Util/lib/Hash/
H A DUtil.pm63 Hash::Util - A selection of general-utility hash subroutines
95 my %hash = (foo => 42, bar => 23);
96 # Ways to restrict a hash
97 lock_keys(%hash);
98 lock_keys(%hash, @keyset);
99 lock_keys_plus(%hash, @additional_keys);
101 # Ways to inspect the properties of a restricted hash
102 my @legal = legal_keys(%hash);
103 my @hidden = hidden_keys(%hash);
104 my $ref = all_keys(%hash,
[all...]
/openbsd-current/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/gp_hash_table_map_/
H A Dresize_store_hash_fn_imps.hpp45 * hash value is stored.
55 size_type hash = ranged_probe_fn_base::operator()(r_key, p_e->m_hash); local
60 const size_type pos = ranged_probe_fn_base::operator()(r_key, hash, i);
66 p_new_e->m_hash = hash;

Completed in 225 milliseconds

1234567891011>>