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

12

/openwrt/package/kernel/lantiq/ltq-deu/src/
H A Difxmips_md5.c47 #include <crypto/internal/hash.h>
82 u32 hash[MD5_HASH_WORDS]; member in struct:md5_ctx
101 /*! \fn static void md5_transform(u32 *hash, u32 const *in)
104 * \param hash current hash value
107 static void md5_transform(struct md5_ctx *mctx, u32 *hash, u32 const *in) argument
116 hashs->D1R = endian_swap(*((u32 *) hash + 0));
117 hashs->D2R = endian_swap(*((u32 *) hash + 1));
118 hashs->D3R = endian_swap(*((u32 *) hash + 2));
119 hashs->D4R = endian_swap(*((u32 *) hash
161 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; local
[all...]
H A Difxmips_sha1.c49 #include <crypto/internal/hash.h>
87 u32 hash[5]; member in struct:sha1_ctx
109 /* For context switching purposes, the previous hash output
113 hashs->D1R = *((u32 *) sctx->hash + 0);
114 hashs->D2R = *((u32 *) sctx->hash + 1);
115 hashs->D3R = *((u32 *) sctx->hash + 2);
116 hashs->D4R = *((u32 *) sctx->hash + 3);
117 hashs->D5R = *((u32 *) sctx->hash + 4);
132 *((u32 *) sctx->hash + 0) = hashs->D1R;
133 *((u32 *) sctx->hash
[all...]
H A Difxmips_deu_vr9.h129 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; \
130 hash->controlr.ENDI = 1; \
131 hash->controlr.SM = 1; \
132 hash->controlr.ALGO = 0; \
133 hash->controlr.INIT = 1; \
138 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; \
139 hash->controlr.ENDI = 1; \
140 hash->controlr.SM = 1; \
141 hash->controlr.ALGO = 1; \
142 hash
[all...]
H A Difxmips_md5_hmac.c48 #include <crypto/internal/hash.h>
83 u32 hash[MD5_HASH_WORDS]; member in struct:md5_hmac_ctx
136 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; local
140 printk("Key length more than what DEU hash can handle\n");
145 hash->KIDX |= 0x80000000; // reset all 16 words of the key to '0'
163 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; local
174 hash->KIDX = j;
176 hash->KEY = *((u32 *) in_key + j);
319 /* reset the context after we finish with the hash */
321 memset(&mctx->hash[
[all...]
H A Difxmips_deu_ar9.h114 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; \
115 hash->controlr.SM = 1; \
116 hash->controlr.ALGO = 0; \
117 hash->controlr.INIT = 1; \
H A Difxmips_deu_danube.h101 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; \
102 hash->controlr.SM = 1; \
103 hash->controlr.ALGO = 0; \
104 hash->controlr.INIT = 1; \
H A Difxmips_sha1_hmac.c48 #include <crypto/internal/hash.h>
154 volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; local
164 hash->KIDX = j;
166 hash->KEY = *((u32 *) in_key + j);
/openwrt/package/network/services/ead/src/
H A Dead-crypt.c99 ead_hash_message(struct ead_msg_encrypted *enc, uint32_t *hash, int len) argument
103 /* hash the packet with the stored hash part initialized to zero */
104 sha_init(hash);
105 memset(enc->hash, 0, sizeof(enc->hash));
107 sha_transform(hash, data, W);
118 uint32_t hash[5]; local
127 ead_hash_message(enc, hash, enclen);
129 enc->hash[
[all...]
H A Dead.h104 uint32_t hash[5]; member in struct:ead_msg_encrypted
/openwrt/package/utils/px5g-standalone/src/polarssl/
H A Drsa.h108 int hash_id; /*!< hash identifier */
123 * \param hash_id RSA_PKCS_V21 hash identifier
254 * \param hash buffer holding the message digest
267 unsigned char *hash,
277 * \param hash buffer holding the message digest
290 unsigned char *hash,
/openwrt/package/network/services/ead/src/tinysrp/
H A Dt_client.c82 SHA1Init(&tc->hash);
103 SHA1Update(&tc->hash, buf1, sizeof(buf1));
109 SHA1Update(&tc->hash, buf1, sizeof(buf1));
115 SHA1Update(&tc->hash, tc->s.data, tc->s.len);
151 SHA1Update(&tc->hash, tc->A.data, tc->A.len);
211 SHA1Update(&tc->hash, serverval->data, serverval->len);
249 SHA1Update(&tc->hash, tc->session_key, sizeof(tc->session_key));
251 SHA1Final(tc->session_response, &tc->hash);
H A Dt_client.h98 SHA1_CTX hash, ckhash; member in struct:t_client
132 * r, the other replies with H(r,K), where H() is a hash function.
H A Dt_server.h92 SHA1_CTX oldhash, hash, oldckhash, ckhash; member in struct:t_server
121 * r, the other replies with H(r,K), where H() is a hash function.
H A Dt_server.c103 SHA1Init(&ts->hash);
167 SHA1Update(&ts->hash, clientval->data, clientval->len);
236 SHA1Update(&ts->hash, expected, sizeof(expected));
237 SHA1Update(&ts->hash, ts->session_key, sizeof(ts->session_key));
238 SHA1Final(ts->session_response, &ts->hash);
/openwrt/package/utils/px5g-standalone/src/library/
H A Drsa.c402 unsigned char *hash,
452 memcpy( p, hash, hashlen );
457 memcpy( p + 18, hash, 16 );
462 memcpy( p + 18, hash, 16 );
467 memcpy( p + 18, hash, 16 );
472 memcpy( p + 15, hash, 20 );
491 unsigned char *hash,
547 if( memcmp( p + 18, hash, 16 ) == 0 )
557 memcmp( p + 15, hash, 20 ) == 0 )
565 if( memcmp( p, hash, hashle
398 rsa_pkcs1_sign( rsa_context *ctx, int mode, int hash_id, int hashlen, unsigned char *hash, unsigned char *sig ) argument
487 rsa_pkcs1_verify( rsa_context *ctx, int mode, int hash_id, int hashlen, unsigned char *hash, unsigned char *sig ) argument
[all...]
H A Dx509write.c968 * make hash from tbs and sign that with private key
973 unsigned char hash[20], *sign; local
976 /* make hash */
977 sha1(chain->tbs.data, chain->tbs.len, hash);
984 if ((ret = rsa_pkcs1_sign(privkey, RSA_PRIVATE, RSA_SHA1, 20, hash,
/openwrt/package/utils/nvram/src/
H A Dnvram.c29 /* String hash */
30 static uint32_t hash(const char *s) function
32 uint32_t hash = 0; local
35 hash = 31 * hash + *s++;
37 return hash;
46 /* Free hash table */
95 /* (Re)initialize the hash table. */
101 /* (Re)initialize hash table */
160 i = hash(nam
[all...]
/openwrt/package/kernel/linux/modules/
H A Dcrypto.mk36 define KernelPackage/crypto-hash
37 TITLE:=CryptoAPI hash support
44 $(eval $(call KernelPackage,crypto-hash))
49 DEPENDS:=+kmod-crypto-aead +kmod-crypto-hash +kmod-crypto-pcompress
76 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
103 DEPENDS:=+kmod-crypto-hash +kmod-crypto-hmac +kmod-crypto-sha256
163 DEPENDS:=@TARGET_imx6||TARGET_mpc85xx +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-hash +kmod-random-core
189 DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
224 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core
277 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
[all...]
H A Dfs.mk180 +kmod-crypto-hash
H A Dblock.mk251 AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
/openwrt/scripts/config/
H A Dsymbol.c791 /* fnv32 hash */
792 unsigned hash = 2166136261U; local
794 hash = (hash ^ *s) * 0x01000193;
795 return hash;
802 int hash; local
812 hash = strhash(name) % SYMBOL_HASHSIZE;
814 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
824 hash = 0;
833 symbol->next = symbol_hash[hash];
842 int hash = 0; local
[all...]
/openwrt/scripts/flashing/
H A Dadam2flash-fritzbox.pl162 $ftp->hash(\*STDOUT, 64 * 1024);
/openwrt/package/system/mtd/src/
H A Dmd5.c160 void MD5_Final (hash, mdContext)
161 unsigned char hash[];
198 memcpy(hash, mdContext->digest, 16);
/openwrt/tools/firmware-utils/src/
H A Dmd5.c160 void MD5_Final (hash, mdContext)
161 unsigned char hash[];
198 memcpy(hash, mdContext->digest, 16);
/openwrt/target/linux/adm5120/files-3.18/drivers/usb/host/
H A Dadm5120-q.c370 int hash; local
411 /* hash it for later reverse mapping */
412 hash = TD_HASH_FUNC(td->td_dma);
413 td->td_hash = ahcd->td_hash[hash];
414 ahcd->td_hash[hash] = td;

Completed in 201 milliseconds

12