Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 1561) sorted by relevance

12345678910>>...63

/openbsd/gnu/usr.bin/perl/
H A Dsbox32_hash.h113 #define case_256_SBOX32(hash,state,key) _SBOX32_CASE(256,hash,state,key) argument
118 #define case_255_SBOX32(hash,state,key) _SBOX32_CASE(255,hash,state,key) argument
123 #define case_254_SBOX32(hash,state,key) _SBOX32_CASE(254,hash,state,key) argument
128 #define case_253_SBOX32(hash,state,key) _SBOX32_CASE(253,hash,state,key) argument
133 #define case_252_SBOX32(hash,state,key) _SBOX32_CASE(252,hash,state,key) argument
138 #define case_251_SBOX32(hash,state,key) _SBOX32_CASE(251,hash,state,key) argument
143 #define case_250_SBOX32(hash,state,key) _SBOX32_CASE(250,hash,state,key) argument
148 #define case_249_SBOX32(hash,state,key) _SBOX32_CASE(249,hash,state,key) argument
153 #define case_248_SBOX32(hash,state,key) _SBOX32_CASE(248,hash,state,key) argument
158 #define case_247_SBOX32(hash,state,key) _SBOX32_CASE(247,hash,state,key) argument
[all …]
/openbsd/gnu/usr.bin/perl/ext/Hash-Util/t/
H A DUtil.t57 lock_keys(%hash);
66 $hash{bar} = 69;
212 my %hash;
327 my %hash;
329 %hash = ();
333 my %hash;
369 my %hash;
382 %hash = ();
437 lock_keys(%hash,keys(%hash),'a'..'f');
462 lock_ref_keys(\%hash,keys %hash,'a'..'f');
[all …]
H A Dbuiltin.t16 my %hash;
18 is(bucket_ratio(%hash), 0, "Empty hash has no bucket_ratio");
19 is(num_buckets(%hash), 8, "Empty hash should have eight buckets");
22 $hash{1}= 1;
23 is(bucket_ratio(%hash), "1/8", "hash has expected bucket_ratio");
24 is(num_buckets(%hash), 8, "hash should have eight buckets");
25 is(used_buckets(%hash), 1, "hash should have one used buckets");
27 $hash{$_}= $_ for 2..7;
30 my $num= num_buckets(%hash);
34 $hash{8}= 8;
[all …]
/openbsd/gnu/usr.bin/perl/ext/Hash-Util/lib/Hash/
H A DUtil.pm189 $hash->{$k} = undef unless exists $hash->{$k};
201 return $hash;
208 return $hash;
254 return $hash
285 return $hash
291 return $hash
326 return $hash;
338 return $hash;
379 return $hash
393 return $hash;
[all …]
/openbsd/sbin/isakmpd/
H A Dhash.c131 hash->Init(hash->ctx); in hmac_init()
132 hash->Update(hash->ctx, okey, len); in hmac_init()
133 hash->Final(key, hash->ctx); in hmac_init()
142 hash->Init(hash->ctx); in hmac_init()
143 hash->Update(hash->ctx, key, hash->blocklen); in hmac_init()
148 hash->Init(hash->ctx2); in hmac_init()
149 hash->Update(hash->ctx2, key, hash->blocklen); in hmac_init()
159 hmac_final(unsigned char *dgst, struct hash *hash) in hmac_final() argument
161 hash->Final(dgst, hash->ctx); in hmac_final()
162 hash->Update(hash->ctx2, dgst, hash->hashsize); in hmac_final()
[all …]
H A Dprf.c49 memcpy(ctx->hash->ctx, ctx->ctx, ctx->hash->ctxsize); in prf_hash_init()
50 memcpy(ctx->hash->ctx2, ctx->ctx2, ctx->hash->ctxsize); in prf_hash_init()
57 ctx->hash->Update(ctx->hash->ctx, data, len); in prf_hash_update()
63 ctx->hash->HMACFinal(digest, ctx->hash); in prf_hash_final()
74 struct hash *hash; in prf_alloc() local
81 if (!hash) { in prf_alloc()
110 hash->ctxsize); in prf_alloc()
122 prfctx->hash = hash; in prf_alloc()
131 hash->HMACInit(hash, shared, sharedsize); in prf_alloc()
134 memcpy(prfctx->ctx, hash->ctx, hash->ctxsize); in prf_alloc()
[all …]
H A Dcookie.c57 struct hash *hash = hash_get(HASH_SHA1); in cookie_gen() local
61 hash->Init(hash->ctx); in cookie_gen()
63 hash->Update(hash->ctx, (u_int8_t *)name, SA_LEN(name)); in cookie_gen()
65 hash->Update(hash->ctx, (u_int8_t *)name, SA_LEN(name)); in cookie_gen()
67 hash->Update(hash->ctx, exchange->cookies + in cookie_gen()
70 hash->Update(hash->ctx, tmpsecret, COOKIE_SECRET_SIZE); in cookie_gen()
71 hash->Final(hash->digest, hash->ctx); in cookie_gen()
72 memcpy(buf, hash->digest, len); in cookie_gen()
H A Dvendor.c37 struct hash *hash; in setup_vendor_hashes() local
40 hash = hash_get(HASH_MD5); in setup_vendor_hashes()
41 if (!hash) { in setup_vendor_hashes()
48 openbsd_vendor_cap[i].hash = calloc(hash->hashsize, in setup_vendor_hashes()
50 if (openbsd_vendor_cap[i].hash == NULL) { in setup_vendor_hashes()
55 hash->Init(hash->ctx); in setup_vendor_hashes()
56 hash->Update(hash->ctx, in setup_vendor_hashes()
59 hash->Final(openbsd_vendor_cap[i].hash, hash->ctx); in setup_vendor_hashes()
63 (unsigned long)hash->hashsize)); in setup_vendor_hashes()
65 openbsd_vendor_cap[i].hash, hash->hashsize)); in setup_vendor_hashes()
[all …]
H A Dnat_traversal.c93 struct hash *hash; in nat_t_setup_hashes() local
109 isakmp_nat_t_cap[i].hash = malloc(hash->hashsize); in nat_t_setup_hashes()
116 hash->Init(hash->ctx); in nat_t_setup_hashes()
117 hash->Update(hash->ctx, in nat_t_setup_hashes()
120 hash->Final(isakmp_nat_t_cap[i].hash, hash->ctx); in nat_t_setup_hashes()
126 isakmp_nat_t_cap[i].hash, hash->hashsize)); in nat_t_setup_hashes()
218 struct hash *hash; in nat_t_generate_nat_d_hash() local
222 hash = hash_get(ie->hash->type); in nat_t_generate_nat_d_hash()
241 hash->Init(hash->ctx); in nat_t_generate_nat_d_hash()
242 hash->Update(hash->ctx, msg->exchange->cookies, in nat_t_generate_nat_d_hash()
[all …]
/openbsd/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dhash.t93 my %hash;
95 $setup->(\%hash);
96 $hash{a}++; @hash{qw(p i e)} = (2, 4, 8);
103 my (%hash, %placebo);
157 my %hash;
398 $hash->{$k} = $v;
511 my (%hash, %tiehash);
545 $copy = {%$hash};
551 $copy = {%$hash};
568 $copy = {%$hash};
[all …]
/openbsd/gnu/usr.bin/perl/lib/Tie/
H A DSubstrHash.pm77 $hash = rehash($hash, $hashbase, $tsize);
110 $hash = rehash($hash, $hashbase, $tsize);
131 $hash = rehash($hash, $hashbase, $tsize);
161 my $hash = 2;
163 $hash = $hash * 33 + $_;
164 $hash = _hashwrap($hash, $tsize) if $hash >= 1e13;
166 $hash = _hashwrap($hash, $tsize) if $hash >= $tsize->[1];
167 $hash ||= 1;
168 return $hash;
173 return $hash - int($hash / $tsize->[1]) * $tsize->[1];
[all …]
/openbsd/gnu/usr.bin/perl/dist/threads-shared/t/
H A D0nothread.t9 my %hash;
11 sub hash
14 is(keys %hash, 0, "hash empty");
15 $hash{0} = $val[0];
16 is(keys %hash,1, "Assign grows hash");
18 $hash{2} = $val[2];
19 is(keys %hash,2, "Assign grows hash");
22 $hash{1} = $val[1];
34 %hash = ();
35 is(keys %hash,0,"Clear hash");
[all …]
H A Dobject2.t181 ok($created[$ID], 'Created hash object in normal hash');
183 ok($destroyed[$ID], 'Deleted hash object in normal hash');
186 ok($created[$ID], 'Created hash object in normal hash');
188 ok($destroyed[$ID], 'Undef hash object in normal hash');
191 ok($created[$ID], 'Created hash object in normal hash');
193 ok($created[$ID], 'Created hash object in normal hash');
199 ok($created[$ID], 'Created hash object in normal hash');
331 ok($created[$ID], 'Created hash object in shared hash');
336 ok($created[$ID], 'Created hash object in shared hash');
338 ok($destroyed[$ID], 'Undef hash object in shared hash');
[all …]
H A Dhv_simple.t39 my %hash;
40 share(%hash);
41 $hash{"foo"} = "bar";
42 ok(2,$hash{"foo"} eq "bar","Check hash get");
46 my $foo = delete($hash{"bar"});
48 $foo = delete($hash{"bar"});
51 ok(6, keys %hash == 1, "Check keys");
52 $hash{"1"} = 1;
53 $hash{"2"} = 2;
54 $hash{"3"} = 3;
[all …]
H A Dblessed.t58 $$hobj{'hash'} = bless(&share({}), 'yin');
75 ok(10, ref($$hobj{'hash'}) eq 'yin', "blessed hash in hash");
83 ok(14, ref($hobj) eq 'foo', "hash blessing does work");
88 ok(18, ref($$aobj[0]) eq 'yin', "blessed hash in array");
93 ok(22, ref($$hobj{'hash'}) eq 'yin', "blessed hash in hash");
94 ok(23, ref($$hobj{'array'}) eq 'yang', "blessed array in hash");
111 $data = $$hobj{'hash'};
113 $$hobj{'hash'} = $data;
122 ok(26, ref($hobj) eq 'oof', "hash reblessing does work");
127 ok(30, ref($$aobj[0]) eq 'niy', "reblessed hash in array");
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Tie-RefHash/t/
H A Dthreaded.t43 tie my %hash, "Tie::RefHash";
49 $hash{$r1} = "hash";
50 $hash{$r2} = "array";
51 $hash{$v1} = "string";
58 is( scalar keys %hash, 3, "key count is OK" );
60 ok( exists $hash{$v1}, "string key exists ($v1)" );
61 is( $hash{$v1}, "string", "fetch by string" );
63 ok( exists $hash{$r1}, "ref key exists ($r1)" );
64 is( $hash{$r1}, "hash", "fetch by ref" );
66 ok( exists $hash{$r2}, "ref key exists ($r2)" );
[all …]
/openbsd/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;
34 unlock_hash %hash;
36 lock_keys %hash, 'perl';
40 unlock_hash %hash;
42 lock_keys %hash, 'perl', 'rules';
[all …]
/openbsd/regress/usr.sbin/rpki-client/rrdp/
H A Drrdp-r2.out3 test-rrdp: snapshot hash: AE52F78BCB1B258A1DA924122971B0FDDFCE4C01B2B2DBA59C9B28EF1D94C02B
5 test-rrdp: delta hash: 40521FB9995ACA55D39360985C336619E08072A6AFFFCE97753E701A0D65D57B
7 test-rrdp: delta hash: 1036A71DF3129449E1403F3BEACFA427D59659FAC0B45C9E3DFFDBEBDB17D722
9 test-rrdp: delta hash: E8DE1E10D05734BB9EFE65202B96023D3770F0B8FD457249676214612F4685B3
11 test-rrdp: delta hash: CDCD746257A0F35BBCE0B1832C2DF4CF25751C281FDE23CAE8B17F607F1E82E1
13 test-rrdp: delta hash: 50C95FF4B63C03836FE291AFCA61FDA25C96BC0D280E421DDDC307E591FE8F81
15 test-rrdp: delta hash: 7C9C62DA4DD109E5151FCC0EA366DB343E35AB7F2A62D81D6C54EEE1E1FD72B1
17 test-rrdp: delta hash: 20360D8B294E3A6E62DE2AF58955AFE601507231E6937B375DE0C047A69CD9C1
19 test-rrdp: delta hash: B4AE54C1207EC9A12A5E20091004830FB3D146F62B2396A6C3DE2AB0795ED2E7
21 test-rrdp: delta hash: FCD7FE3D59F4B8DAA40920C7B3C5C4D149660AFD35DFCA53EDE7671919802CFB
[all …]
/openbsd/regress/sbin/isakmpd/hmac/
H A Dhmactest.c39 int test_hmac(char *, struct hash *, char *, int, char *, int, char *);
66 test_hmac(char *test, struct hash *hash, char *key, int klen, in test_hmac() argument
74 hash->HMACInit(hash, key, klen); in test_hmac()
75 hash->Update(hash->ctx, data, dlen); in test_hmac()
76 hash->HMACFinal(hash->digest, hash); in test_hmac()
78 for (i=0; i<hash->hashsize; i++) in test_hmac()
80 output[2*i] = nibble2c((hash->digest[i] >> 4) & 0xf); in test_hmac()
81 output[2*i+1] = nibble2c(hash->digest[i] & 0xf); in test_hmac()
/openbsd/gnu/usr.bin/binutils-2.17/bfd/doc/
H A Dhash.texi4 are provided to initialize a hash table, to free a hash table,
20 The basic hash table code is in @code{hash.c}.
30 @subsection Creating and freeing a hash table
60 hash table to use.
90 @subsection Traversing a hash table
117 An example of a derived hash table is the linker hash table.
121 You may also derive a hash table from an already derived hash
123 table derived from the linker hash table.
173 for the new hash table type.
179 routine of the hash table type your hash table is derived
[all …]
/openbsd/gnu/usr.bin/binutils/bfd/doc/
H A Dhash.texi4 are provided to initialize a hash table, to free a hash table,
20 The basic hash table code is in @code{hash.c}.
30 @subsection Creating and freeing a hash table
86 @subsection Traversing a hash table
102 @subsection Deriving a new hash table type
113 An example of a derived hash table is the linker hash table.
117 You may also derive a hash table from an already derived hash
119 table derived from the linker hash table.
169 for the new hash table type.
175 routine of the hash table type your hash table is derived
[all …]
/openbsd/gnu/usr.bin/perl/ext/Hash-Util-FieldHash/t/
H A D11_hashassign.t20 ok (keys %comma == 1, 'keys on comma hash');
21 ok (values %comma == 1, 'values on comma hash');
32 is_deeply (\@comma, \@temp, 'list from comma hash');
37 is_deeply ([], \@temp, 'last each from comma hash');
41 ok (keys %temp == 1, 'keys on copy of comma hash');
61 ok (keys %arrow == 1, 'keys on arrow hash');
62 ok (values %arrow == 1, 'values on arrow hash');
73 is_deeply (\@arrow, \@temp, 'list from arrow hash');
82 ok (keys %temp == 1, 'keys on copy of arrow hash');
123 ok (in (%names), "pass hash into a method");
[all …]
/openbsd/gnu/lib/libstdc++/libstdc++/include/ext/
H A Dstl_hash_fun.h71 template <class _Key> struct hash { }; struct
82 template<> struct hash<char*>
87 template<> struct hash<const char*>
92 template<> struct hash<char> {
95 template<> struct hash<unsigned char> {
98 template<> struct hash<signed char> {
101 template<> struct hash<short> {
107 template<> struct hash<int> {
110 template<> struct hash<unsigned int> {
113 template<> struct hash<long> {
[all …]
/openbsd/gnu/gcc/libstdc++-v3/include/ext/
H A Dhash_fun.h71 struct hash { }; struct
83 struct hash<char*>
91 struct hash<const char*>
99 struct hash<char>
107 struct hash<unsigned char>
115 struct hash<signed char>
123 struct hash<short>
139 struct hash<int>
147 struct hash<unsigned int>
155 struct hash<long>
[all …]
/openbsd/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;

12345678910>>...63