Home
last modified time | relevance | path

Searched refs:sha_ctx (Results 1 – 25 of 268) sorted by relevance

1234567891011

/dports/games/0ad/0ad-0.0.23b-alpha/build/premake/premake5/contrib/mbedtls/programs/aes/
H A Daescrypt2.c89 mbedtls_md_context_t sha_ctx; in main() local
101 mbedtls_md_init( &sha_ctx ); in main()
235 mbedtls_md_starts( &sha_ctx ); in main()
236 mbedtls_md_update( &sha_ctx, buffer, 8 ); in main()
238 mbedtls_md_finish( &sha_ctx, digest ); in main()
269 mbedtls_md_starts( &sha_ctx ); in main()
272 mbedtls_md_finish( &sha_ctx, digest ); in main()
311 mbedtls_md_hmac_finish( &sha_ctx, digest ); in main()
371 mbedtls_md_starts( &sha_ctx ); in main()
374 mbedtls_md_finish( &sha_ctx, digest ); in main()
[all …]
/dports/emulators/yuzu/yuzu-0b47f7a46/externals/mbedtls/programs/aes/
H A Daescrypt2.c102 mbedtls_md_context_t sha_ctx; in main() local
114 mbedtls_md_init( &sha_ctx ); in main()
246 mbedtls_md_starts( &sha_ctx ); in main()
247 mbedtls_md_update( &sha_ctx, buffer, 8 ); in main()
249 mbedtls_md_finish( &sha_ctx, digest ); in main()
280 mbedtls_md_starts( &sha_ctx ); in main()
283 mbedtls_md_finish( &sha_ctx, digest ); in main()
321 mbedtls_md_hmac_finish( &sha_ctx, digest ); in main()
379 mbedtls_md_starts( &sha_ctx ); in main()
382 mbedtls_md_finish( &sha_ctx, digest ); in main()
[all …]
/dports/devel/premake5/premake-5.0.0-alpha16-src/contrib/mbedtls/programs/aes/
H A Daescrypt2.c102 mbedtls_md_context_t sha_ctx; in main() local
114 mbedtls_md_init( &sha_ctx ); in main()
246 mbedtls_md_starts( &sha_ctx ); in main()
247 mbedtls_md_update( &sha_ctx, buffer, 8 ); in main()
249 mbedtls_md_finish( &sha_ctx, digest ); in main()
280 mbedtls_md_starts( &sha_ctx ); in main()
283 mbedtls_md_finish( &sha_ctx, digest ); in main()
321 mbedtls_md_hmac_finish( &sha_ctx, digest ); in main()
379 mbedtls_md_starts( &sha_ctx ); in main()
382 mbedtls_md_finish( &sha_ctx, digest ); in main()
[all …]
/dports/emulators/qemu/qemu-6.2.0/roms/skiboot/libstb/crypto/mbedtls/programs/aes/
H A Daescrypt2.c115 mbedtls_md_context_t sha_ctx; in main() local
127 mbedtls_md_init( &sha_ctx ); in main()
259 mbedtls_md_starts( &sha_ctx ); in main()
260 mbedtls_md_update( &sha_ctx, buffer, 8 ); in main()
262 mbedtls_md_finish( &sha_ctx, digest ); in main()
293 mbedtls_md_starts( &sha_ctx ); in main()
296 mbedtls_md_finish( &sha_ctx, digest ); in main()
334 mbedtls_md_hmac_finish( &sha_ctx, digest ); in main()
392 mbedtls_md_starts( &sha_ctx ); in main()
395 mbedtls_md_finish( &sha_ctx, digest ); in main()
[all …]
/dports/security/bcwipe/bcwipe-1.9-13/
H A Dsha1.c305 sha_ctx->countLo = sha_ctx->countHi = 0; in SHA1Init()
329 dwTmp = sha_ctx->countLo; in SHA1Process()
332 (sha_ctx->countHi)++; in SHA1Process()
358 SHA_UpdateDigest( sha_ctx->digest, sha_ctx->data ); in SHA1Process()
367 SHA_UpdateDigest( sha_ctx->digest, sha_ctx->data ); in SHA1Process()
413 SHA_UpdateDigest( sha_ctx->digest, sha_ctx->data ); in SHA1Final()
419 sha_ctx->data[14] = (((sha_ctx->countHi) << 3) &0xffffffff) | (((sha_ctx->countLo) >> 29) & 0x7); in SHA1Final()
420 sha_ctx->data[15] = ((sha_ctx->countLo) << 3) & 0xffffffff; in SHA1Final()
423 SHA_UpdateDigest( sha_ctx->digest, sha_ctx->data ); in SHA1Final()
441 SHA1Context *sha_ctx; in SHA1Update() local
[all …]
/dports/net-p2p/shx/shx-0.2.4/include/
H A Dsha.h15 struct sha_ctx { struct
22 extern void sha_init(struct sha_ctx *ctx); argument
23 extern void sha_update(struct sha_ctx *ctx, u_int8_t *buffer, u_int32_t len);
24 extern void sha_final(u_int8_t *s, struct sha_ctx *ctx);
25 extern void sha_digest(struct sha_ctx *ctx, u_int8_t *s);
26 extern void sha_copy(struct sha_ctx *dest, struct sha_ctx *src);
/dports/security/mhash/mhash-0.9.9.9/lib/
H A Dmhash_sha1.h22 typedef struct sha_ctx { struct
29 void sha_init(struct sha_ctx *ctx); argument
30 void sha_update(struct sha_ctx *ctx, mutils_word8 *buffer, mutils_word32 len);
31 void sha_final(struct sha_ctx *ctx);
32 void sha_digest(struct sha_ctx *ctx, mutils_word8 *s);
33 void sha_copy(struct sha_ctx *dest, struct sha_ctx *src);
/dports/editors/wxhexeditor/wxHexEditor/mhash/lib/
H A Dmhash_sha1.h22 typedef struct sha_ctx { struct
29 void sha_init(struct sha_ctx *ctx); argument
30 void sha_update(struct sha_ctx *ctx, mutils_word8 *buffer, mutils_word32 len);
31 void sha_final(struct sha_ctx *ctx);
32 void sha_digest(struct sha_ctx *ctx, mutils_word8 *s);
33 void sha_copy(struct sha_ctx *dest, struct sha_ctx *src);
/dports/devel/libjitterentropy/jitterentropy-library-3.3.1/src/
H A Djitterentropy-sha3.h34 struct sha_ctx { struct
43 #define SHA_MAX_CTX_SIZE (sizeof(struct sha_ctx)) argument
45 struct sha_ctx name
47 void sha3_256_init(struct sha_ctx *ctx);
48 void sha3_update(struct sha_ctx *ctx, const uint8_t *in, size_t inlen);
49 void sha3_final(struct sha_ctx *ctx, uint8_t *digest);
/dports/audio/cyanrip/cyanrip-0.7.0/src/
H A Ddiscid.c28 struct AVSHA *sha_ctx = av_sha_alloc(); in crip_fill_discid() local
29 int err = av_sha_init(sha_ctx, 160); in crip_fill_discid()
32 av_free(sha_ctx); in crip_fill_discid()
38 av_sha_update(sha_ctx, temp, strlen(temp)); in crip_fill_discid()
46 av_sha_update(sha_ctx, temp, strlen(temp)); in crip_fill_discid()
50 av_sha_update(sha_ctx, temp, strlen(temp)); in crip_fill_discid()
57 av_sha_update(sha_ctx, temp, strlen(temp)); in crip_fill_discid()
61 av_sha_final(sha_ctx, digest); in crip_fill_discid()
62 av_free(sha_ctx); in crip_fill_discid()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/minizip/src/lib/brg/
H A Dhmac.c123 cx->f_begin(cx->sha_ctx); /* hash stored key characters */ in hmac_sha_key()
124 cx->f_hash(cx->key, cx->klen, cx->sha_ctx); in hmac_sha_key()
145 cx->f_end(cx->key, cx->sha_ctx); /* store the result as the */ in hmac_sha_data()
157 cx->f_begin(cx->sha_ctx); in hmac_sha_data()
158 cx->f_hash(cx->key, cx->input_len, cx->sha_ctx); in hmac_sha_data()
166 cx->f_hash(data, data_len, cx->sha_ctx); in hmac_sha_data()
178 cx->f_end(dig, cx->sha_ctx); /* complete the inner hash */ in hmac_sha_end()
185 cx->f_begin(cx->sha_ctx); in hmac_sha_end()
186 cx->f_hash(cx->key, cx->input_len, cx->sha_ctx); in hmac_sha_end()
187 cx->f_hash(dig, cx->output_len, cx->sha_ctx); in hmac_sha_end()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/minizip/src/lib/brg/
H A Dhmac.c123 cx->f_begin(cx->sha_ctx); /* hash stored key characters */ in hmac_sha_key()
124 cx->f_hash(cx->key, cx->klen, cx->sha_ctx); in hmac_sha_key()
145 cx->f_end(cx->key, cx->sha_ctx); /* store the result as the */ in hmac_sha_data()
157 cx->f_begin(cx->sha_ctx); in hmac_sha_data()
158 cx->f_hash(cx->key, cx->input_len, cx->sha_ctx); in hmac_sha_data()
166 cx->f_hash(data, data_len, cx->sha_ctx); in hmac_sha_data()
178 cx->f_end(dig, cx->sha_ctx); /* complete the inner hash */ in hmac_sha_end()
185 cx->f_begin(cx->sha_ctx); in hmac_sha_end()
186 cx->f_hash(cx->key, cx->input_len, cx->sha_ctx); in hmac_sha_end()
187 cx->f_hash(dig, cx->output_len, cx->sha_ctx); in hmac_sha_end()
[all …]
/dports/security/john/john-1.9.0-jumbo-1/src/
H A Dbitcoin_fmt_plug.c277 SHA512_CTX sha_ctx; in crypt_all() local
288 SHA512_Init(&sha_ctx); in crypt_all()
290 SHA512_Update(&sha_ctx, cur_salt->cry_salt, cur_salt->cry_salt_length); in crypt_all()
291 SHA512_Final(hash1, &sha_ctx); in crypt_all()
345 SHA512_Init(&sha_ctx); in crypt_all()
346 SHA512_Update(&sha_ctx, saved_key[index], strlen(saved_key[index])); in crypt_all()
347 SHA512_Update(&sha_ctx, cur_salt->cry_salt, cur_salt->cry_salt_length); in crypt_all()
348 SHA512_Final(key_iv, &sha_ctx); in crypt_all()
350 SHA512_Init(&sha_ctx); in crypt_all()
351 SHA512_Update(&sha_ctx, key_iv, SHA512_DIGEST_LENGTH); in crypt_all()
[all …]
H A Dnsec3_fmt_plug.c80 static SHA_CTX sha_ctx; variable
299 SHA1_Init(&sha_ctx); in crypt_all()
301 SHA1_Update(&sha_ctx, saved_wf_label, saved_key_length+1); in crypt_all()
302 SHA1_Update(&sha_ctx, saved_salt.zone_wf, saved_salt.zone_length); in crypt_all()
303 SHA1_Update(&sha_ctx, saved_salt.salt, salt_length); in crypt_all()
304 SHA1_Final((unsigned char *)crypt_out, &sha_ctx); in crypt_all()
306 SHA1_Init(&sha_ctx); in crypt_all()
307 SHA1_Update(&sha_ctx, crypt_out, BINARY_SIZE); in crypt_all()
308 SHA1_Update(&sha_ctx, saved_salt.salt, salt_length); in crypt_all()
309 SHA1_Final((unsigned char *)crypt_out, &sha_ctx); in crypt_all()
/dports/net/tigervnc-server/tigervnc-1.12.0/unix/xserver/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xephyr/xorg-server-1.20.13/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xwayland/xorg-server-1.20.13/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xorg-server/xorg-server-1.20.13/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xorg-dmx/xorg-server-1.20.13/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xorg-vfbserver/xorg-server-1.20.13/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xorg-nestserver/xorg-server-1.20.13/os/
H A Dxsha1.c273 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
275 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
277 free(sha_ctx); in x_sha1_update()
285 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
287 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
288 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xarcan/xarcan-0.6.0/os/
H A Dxsha1.c282 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
284 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
286 free(sha_ctx); in x_sha1_update()
294 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
296 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
297 free(sha_ctx); in x_sha1_final()
/dports/x11-servers/xwayland-devel/xorg-xserver-xorg-server-21.0.99.1-177-g9e5a37961/os/
H A Dxsha1.c282 SHA_CTX *sha_ctx = ctx; in x_sha1_update() local
284 ret = SHA1_Update(sha_ctx, data, size); in x_sha1_update()
286 free(sha_ctx); in x_sha1_update()
294 SHA_CTX *sha_ctx = ctx; in x_sha1_final() local
296 ret = SHA1_Final(result, sha_ctx); in x_sha1_final()
297 free(sha_ctx); in x_sha1_final()
/dports/mail/rspamd-devel/rspamd-93430bb/lualib/
H A Dlua_aws.lua142 local sha_ctx = rspamd_crypto_hash.create_specific('sha256')
146 sha_ctx:update(method .. '\n')
149 sha_ctx:update(uri .. '\n')
151 sha_ctx:update('\n')
162 sha_ctx:update(string.format('%s:%s\n', hn, v))
166 sha_ctx:update(string.format('\n%s\n%s', hdrs_list, hex_hash))
168 return sha_ctx:hex(),hdrs_list
/dports/mail/rspamd/rspamd-3.1/lualib/
H A Dlua_aws.lua142 local sha_ctx = rspamd_crypto_hash.create_specific('sha256')
146 sha_ctx:update(method .. '\n')
149 sha_ctx:update(uri .. '\n')
151 sha_ctx:update('\n')
162 sha_ctx:update(string.format('%s:%s\n', hn, v))
166 sha_ctx:update(string.format('\n%s\n%s', hdrs_list, hex_hash))
168 return sha_ctx:hex(),hdrs_list

1234567891011