Home
last modified time | relevance | path

Searched refs:sha1ctx (Results 1 – 25 of 51) sorted by relevance

123

/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-src-3.5.1-2/nettle/testsuite/
H A Dpbkdf2-test.c28 struct hmac_sha1_ctx sha1ctx; in test_main() local
34 hmac_sha1_set_key (&sha1ctx, LDATA("password")); in test_main()
36 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
40 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
44 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
49 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
54 hmac_sha1_set_key (&sha1ctx, LDATA("passwordPASSWORDpassword")); in test_main()
56 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
60 hmac_sha1_set_key (&sha1ctx, LDATA("pass\0word")); in test_main()
62 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
H A Dpss-mgf1-test.c7 struct sha1_ctx sha1ctx; in test_main() local
19 sha1_init(&sha1ctx); in test_main()
20 sha1_update(&sha1ctx, seed->length, seed->data); in test_main()
21 pss_mgf1(&sha1ctx, &nettle_sha1, expected->length, mask); in test_main()
/dports/security/nettle/nettle-3.7.3/testsuite/
H A Dpbkdf2-test.c29 struct hmac_sha1_ctx sha1ctx; in test_main() local
38 hmac_sha1_set_key (&sha1ctx, LDATA("password")); in test_main()
40 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
44 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
48 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
53 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
58 hmac_sha1_set_key (&sha1ctx, LDATA("passwordPASSWORDpassword")); in test_main()
60 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
64 hmac_sha1_set_key (&sha1ctx, LDATA("pass\0word")); in test_main()
66 PBKDF2_TEST (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, SHA1_DIGEST_SIZE, in test_main()
H A Dpss-mgf1-test.c7 struct sha1_ctx sha1ctx; in test_main() local
19 sha1_init(&sha1ctx); in test_main()
20 sha1_update(&sha1ctx, seed->length, seed->data); in test_main()
21 pss_mgf1(&sha1ctx, &nettle_sha1, expected->length, mask); in test_main()
/dports/net/cvsync/cvsync-0.24.19/common/
H A Dhash_native.c138 SHA1_CTX *sha1ctx; in cvsync_SHA1_init() local
140 if ((sha1ctx = malloc(sizeof(*sha1ctx))) == NULL) in cvsync_SHA1_init()
142 SHA1Init(sha1ctx); in cvsync_SHA1_init()
144 *ctx = sha1ctx; in cvsync_SHA1_init()
H A Dhash_openssl.c130 SHA_CTX *sha1ctx; in cvsync_SHA1_init() local
132 if ((sha1ctx = malloc(sizeof(*sha1ctx))) == NULL) in cvsync_SHA1_init()
134 SHA1_Init(sha1ctx); in cvsync_SHA1_init()
136 *ctx = sha1ctx; in cvsync_SHA1_init()
/dports/dns/bind911/bind-9.11.37/lib/dns/
H A Dopenssldsa_link.c149 isc_sha1_t *sha1ctx; in openssldsa_createctx()
154 if (sha1ctx == NULL) in openssldsa_createctx()
156 isc_sha1_init(sha1ctx); in openssldsa_createctx()
157 dctx->ctxdata.sha1ctx = sha1ctx; in openssldsa_createctx()
172 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx; in openssldsa_destroyctx()
174 if (sha1ctx != NULL) { in openssldsa_destroyctx()
175 isc_sha1_invalidate(sha1ctx); in openssldsa_destroyctx()
177 dctx->ctxdata.sha1ctx = NULL; in openssldsa_destroyctx()
191 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx; in openssldsa_adddata()
222 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx; in openssldsa_sign() local
[all …]
H A Dopensslrsa_link.c359 isc_sha1_t *sha1ctx; in opensslrsa_createctx() local
362 if (sha1ctx == NULL) in opensslrsa_createctx()
364 isc_sha1_init(sha1ctx); in opensslrsa_createctx()
365 dctx->ctxdata.sha1ctx = sha1ctx; in opensslrsa_createctx()
444 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx; in opensslrsa_destroyctx() local
446 if (sha1ctx != NULL) { in opensslrsa_destroyctx()
447 isc_sha1_invalidate(sha1ctx); in opensslrsa_destroyctx()
450 dctx->ctxdata.sha1ctx = NULL; in opensslrsa_destroyctx()
524 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx; in opensslrsa_adddata() local
630 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx; in opensslrsa_sign() local
[all …]
/dports/net/ntp/ntp-4.2.8p15/lib/isc/
H A Dhmacsha.c210 isc_sha1_t sha1ctx; in isc_hmacsha1_init() local
211 isc_sha1_init(&sha1ctx); in isc_hmacsha1_init()
212 isc_sha1_update(&sha1ctx, key, len); in isc_hmacsha1_init()
213 isc_sha1_final(&sha1ctx, ctx->key); in isc_hmacsha1_init()
217 isc_sha1_init(&ctx->sha1ctx); in isc_hmacsha1_init()
221 isc_sha1_update(&ctx->sha1ctx, ipad, sizeof(ipad)); in isc_hmacsha1_init()
226 isc_sha1_invalidate(&ctx->sha1ctx); in isc_hmacsha1_invalidate()
238 isc_sha1_update(&ctx->sha1ctx, buf, len); in isc_hmacsha1_update()
251 isc_sha1_final(&ctx->sha1ctx, newdigest); in isc_hmacsha1_sign()
257 isc_sha1_init(&ctx->sha1ctx); in isc_hmacsha1_sign()
[all …]
/dports/security/nettle/nettle-3.7.3/
H A Dpbkdf2-hmac-sha1.c48 struct hmac_sha1_ctx sha1ctx; in pbkdf2_hmac_sha1() local
50 hmac_sha1_set_key (&sha1ctx, key_length, key); in pbkdf2_hmac_sha1()
51 PBKDF2 (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, in pbkdf2_hmac_sha1()
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-src-3.5.1-2/nettle/
H A Dpbkdf2-hmac-sha1.c48 struct hmac_sha1_ctx sha1ctx; in pbkdf2_hmac_sha1() local
50 hmac_sha1_set_key (&sha1ctx, key_length, key); in pbkdf2_hmac_sha1()
51 PBKDF2 (&sha1ctx, hmac_sha1_update, hmac_sha1_digest, in pbkdf2_hmac_sha1()
/dports/net-p2p/torrentcheck/torrentcheck-1.00_1/
H A Dtorrentcheck.c268 SHA_CTX sha1ctx; in sha1Filter() local
276 SHAInit(&sha1ctx); in sha1Filter()
281 SHAFinal(sha1hash,&sha1ctx); in sha1Filter()
358 SHA_CTX sha1ctx; in main() local
361 SHAInit(&sha1ctx); in main()
363 SHAFinal(sha1hash,&sha1ctx); in main()
365 SHAInit(&sha1ctx); in main()
367 SHAFinal(sha1hash,&sha1ctx); in main()
728 SHAInit(&sha1ctx); in main()
843 SHAInit(&sha1ctx); in main()
[all …]
/dports/dns/bind911/bind-9.11.37/bin/tools/
H A Disc-hmac-fixup.c75 isc_sha1_t sha1ctx; in main() local
76 isc_sha1_init(&sha1ctx); in main()
77 isc_sha1_update(&sha1ctx, r.base, r.length); in main()
78 isc_sha1_final(&sha1ctx, key); in main()
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/marvell/
H A Dmvcesa.c263 SHA1_CTX sha1ctx; in mvcesa_newsession() local
278 SHA1Init(&sha1ctx); in mvcesa_newsession()
279 SHA1Update(&sha1ctx, c->cri_key, klen_bytes); in mvcesa_newsession()
280 SHA1Update(&sha1ctx, hmac_ipad_buffer, in mvcesa_newsession()
282 memcpy(ses->ses_hminner, sha1ctx.state, in mvcesa_newsession()
283 sizeof(sha1ctx.state)); in mvcesa_newsession()
297 SHA1Init(&sha1ctx); in mvcesa_newsession()
298 SHA1Update(&sha1ctx, c->cri_key, klen_bytes); in mvcesa_newsession()
299 SHA1Update(&sha1ctx, hmac_opad_buffer, in mvcesa_newsession()
301 memcpy(ses->ses_hmouter, sha1ctx.state, in mvcesa_newsession()
[all …]
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/
H A Dhash.c660 struct sha1_ctx sha1ctx; variable
664 sha1_init(&sha1ctx); in h_sha1_begin()
669 sha1_update(&sha1ctx, len, (UINT8*)mem); in h_sha1_buffer()
674 sha1_final(&sha1ctx); in h_sha1_end()
675 sha1_digest(&sha1ctx, 20, bin_chksum); in h_sha1_end()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/
H A Dhash.c660 struct sha1_ctx sha1ctx; variable
664 sha1_init(&sha1ctx); in h_sha1_begin()
669 sha1_update(&sha1ctx, len, (UINT8*)mem); in h_sha1_buffer()
674 sha1_final(&sha1ctx); in h_sha1_end()
675 sha1_digest(&sha1ctx, 20, bin_chksum); in h_sha1_end()
/dports/security/clamav-lts/clamav-0.103.5/libclamav/
H A Dmatcher.c1006 sha1ctx = cl_hash_init("sha1"); in cli_scan_fmap()
1007 if (!(sha1ctx)) { in cli_scan_fmap()
1015 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1037 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1087 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1100 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1108 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1123 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1157 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1294 sha1ctx = NULL; in cli_scan_fmap()
[all …]
/dports/security/clamav/clamav-0.104.2/libclamav/
H A Dmatcher.c1006 sha1ctx = cl_hash_init("sha1"); in cli_scan_fmap()
1007 if (!(sha1ctx)) { in cli_scan_fmap()
1015 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1037 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1087 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1100 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1108 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1123 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1157 cl_hash_destroy(sha1ctx); in cli_scan_fmap()
1294 sha1ctx = NULL; in cli_scan_fmap()
[all …]
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx,
371 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument
376 if (sha1ctx != NULL) { in tls1_prf_alg()
393 if (!tls1_prf_P_hash(sha1ctx, sec + slen - L_S2, L_S2, in tls1_prf_alg()
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx,
371 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument
376 if (sha1ctx != NULL) { in tls1_prf_alg()
393 if (!tls1_prf_P_hash(sha1ctx, sec + slen - L_S2, L_S2, in tls1_prf_alg()
/dports/security/acmed/acmed-0.18.0/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx,
371 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument
376 if (sha1ctx != NULL) { in tls1_prf_alg()
393 if (!tls1_prf_P_hash(sha1ctx, sec + slen - L_S2, L_S2, in tls1_prf_alg()
/dports/textproc/mdbook-linkcheck/mdbook-linkcheck-0.7.6/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx,
371 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument
376 if (sha1ctx != NULL) { in tls1_prf_alg()
393 if (!tls1_prf_P_hash(sha1ctx, sec + slen - L_S2, L_S2, in tls1_prf_alg()
/dports/security/openssl-devel/openssl-3.0.2/providers/implementations/kdfs/
H A Dtls1_prf.c74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx,
371 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument
376 if (sha1ctx != NULL) { in tls1_prf_alg()
393 if (!tls1_prf_P_hash(sha1ctx, sec + slen - L_S2, L_S2, in tls1_prf_alg()
/dports/security/openssl-quictls/openssl-7f2ab56a2b842b8e6fefc7b9d20eb5ff9c6ef151/providers/implementations/kdfs/
H A Dtls1_prf.c74 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx,
371 static int tls1_prf_alg(EVP_MAC_CTX *mdctx, EVP_MAC_CTX *sha1ctx, in tls1_prf_alg() argument
376 if (sha1ctx != NULL) { in tls1_prf_alg()
393 if (!tls1_prf_P_hash(sha1ctx, sec + slen - L_S2, L_S2, in tls1_prf_alg()
/dports/dns/bind911/bind-9.11.37/lib/isc/
H A Dhmacsha.c1120 isc_sha1_t sha1ctx; in isc_hmacsha1_init() local
1121 isc_sha1_init(&sha1ctx); in isc_hmacsha1_init()
1122 isc_sha1_update(&sha1ctx, key, len); in isc_hmacsha1_init()
1123 isc_sha1_final(&sha1ctx, ctx->key); in isc_hmacsha1_init()
1127 isc_sha1_init(&ctx->sha1ctx); in isc_hmacsha1_init()
1131 isc_sha1_update(&ctx->sha1ctx, ipad, sizeof(ipad)); in isc_hmacsha1_init()
1136 isc_sha1_invalidate(&ctx->sha1ctx); in isc_hmacsha1_invalidate()
1148 isc_sha1_update(&ctx->sha1ctx, buf, len); in isc_hmacsha1_update()
1161 isc_sha1_final(&ctx->sha1ctx, newdigest); in isc_hmacsha1_sign()
1167 isc_sha1_init(&ctx->sha1ctx); in isc_hmacsha1_sign()
[all …]

123