Home
last modified time | relevance | path

Searched refs:SHA1_DIGEST_LENGTH (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/dports/mail/cyrus-imapd34/cyrus-imapd-3.4.2/lib/
H A Dxsha1.h52 #ifndef SHA1_DIGEST_LENGTH
53 #define SHA1_DIGEST_LENGTH (SHA_DIGEST_LENGTH) macro
66 #define SHA1_DIGEST_LENGTH 20 macro
67 #define SHA_DIGEST_LENGTH (SHA1_DIGEST_LENGTH)
74 int SHA1_Final(sha1_byte digest[SHA1_DIGEST_LENGTH], SHA_CTX *context);
77 sha1_byte dest[SHA1_DIGEST_LENGTH]);
/dports/mail/cyrus-imapd32/cyrus-imapd-3.2.8/lib/
H A Dxsha1.h52 #ifndef SHA1_DIGEST_LENGTH
53 #define SHA1_DIGEST_LENGTH (SHA_DIGEST_LENGTH) macro
66 #define SHA1_DIGEST_LENGTH 20 macro
67 #define SHA_DIGEST_LENGTH (SHA1_DIGEST_LENGTH)
74 int SHA1_Final(sha1_byte digest[SHA1_DIGEST_LENGTH], SHA_CTX *context);
77 sha1_byte dest[SHA1_DIGEST_LENGTH]);
/dports/mail/cyrus-imapd30/cyrus-imapd-3.0.16/lib/
H A Dxsha1.h52 #ifndef SHA1_DIGEST_LENGTH
53 #define SHA1_DIGEST_LENGTH (SHA_DIGEST_LENGTH) macro
66 #define SHA1_DIGEST_LENGTH 20 macro
67 #define SHA_DIGEST_LENGTH (SHA1_DIGEST_LENGTH)
74 int SHA1_Final(sha1_byte digest[SHA1_DIGEST_LENGTH], SHA_CTX *context);
77 sha1_byte dest[SHA1_DIGEST_LENGTH]);
/dports/www/sogo/SOGo-5.4.0/SoObjects/SOGo/
H A Dpkcs5_pbkdf2.c41 #define SHA1_DIGEST_LENGTH 20 macro
42 #define SHA1_DIGEST_STRING_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1)
49 size_t key_len, u_int8_t digest[SHA1_DIGEST_LENGTH]) in hmac_sha1() argument
53 u_int8_t tk[SHA1_DIGEST_LENGTH]; in hmac_sha1()
62 key_len = SHA1_DIGEST_LENGTH; in hmac_sha1()
82 SHA1_Update(&ctx, digest, SHA1_DIGEST_LENGTH); in hmac_sha1()
94 uint8_t *asalt, obuf[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2()
95 uint8_t d1[SHA1_DIGEST_LENGTH], d2[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2()
124 r = MINIMUM(key_len, SHA1_DIGEST_LENGTH); in pkcs5_pbkdf2()
/dports/www/sogo-activesync/SOGo-5.4.0/SoObjects/SOGo/
H A Dpkcs5_pbkdf2.c41 #define SHA1_DIGEST_LENGTH 20 macro
42 #define SHA1_DIGEST_STRING_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1)
49 size_t key_len, u_int8_t digest[SHA1_DIGEST_LENGTH]) in hmac_sha1() argument
53 u_int8_t tk[SHA1_DIGEST_LENGTH]; in hmac_sha1()
62 key_len = SHA1_DIGEST_LENGTH; in hmac_sha1()
82 SHA1_Update(&ctx, digest, SHA1_DIGEST_LENGTH); in hmac_sha1()
94 uint8_t *asalt, obuf[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2()
95 uint8_t d1[SHA1_DIGEST_LENGTH], d2[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2()
124 r = MINIMUM(key_len, SHA1_DIGEST_LENGTH); in pkcs5_pbkdf2()
/dports/security/libzrtpcppcore/ZRTPCPP-4.6.6/srtp/crypto/gcrypt/
H A Dgcrypthmac.cpp40 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmac_sha1()
42 *macLength = SHA1_DIGEST_LENGTH; in hmac_sha1()
63 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmac_sha1()
65 *macLength = SHA1_DIGEST_LENGTH; in hmac_sha1()
89 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmacSha1Ctx()
91 *mac_length = SHA1_DIGEST_LENGTH; in hmacSha1Ctx()
107 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmacSha1Ctx()
109 *mac_length = SHA1_DIGEST_LENGTH; in hmacSha1Ctx()
/dports/devel/ccrtp/ccrtp-2.1.2/src/ccrtp/crypto/gcrypt/
H A Dgcrypthmac.cpp40 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmac_sha1()
42 *macLength = SHA1_DIGEST_LENGTH; in hmac_sha1()
63 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmac_sha1()
65 *macLength = SHA1_DIGEST_LENGTH; in hmac_sha1()
89 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmacSha1Ctx()
91 *mac_length = SHA1_DIGEST_LENGTH; in hmacSha1Ctx()
107 memcpy(mac, p, SHA1_DIGEST_LENGTH); in hmacSha1Ctx()
109 *mac_length = SHA1_DIGEST_LENGTH; in hmacSha1Ctx()
/dports/net/rpki-client/rpki-client-portable-7.6/openbsd/src/lib/libutil/
H A Dpkcs5_pbkdf2.c35 size_t key_len, u_int8_t digest[SHA1_DIGEST_LENGTH]) in hmac_sha1() argument
39 u_int8_t tk[SHA1_DIGEST_LENGTH]; in hmac_sha1()
48 key_len = SHA1_DIGEST_LENGTH; in hmac_sha1()
68 SHA1Update(&ctx, digest, SHA1_DIGEST_LENGTH); in hmac_sha1()
80 uint8_t *asalt, obuf[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2()
81 uint8_t d1[SHA1_DIGEST_LENGTH], d2[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2()
110 r = MINIMUM(key_len, SHA1_DIGEST_LENGTH); in pkcs5_pbkdf2()
/dports/security/pam_google_authenticator/google-authenticator-libpam-1.09/src/
H A Dhmac.c28 uint8_t hashed_key[SHA1_DIGEST_LENGTH]; in hmac_sha1()
36 keyLength = SHA1_DIGEST_LENGTH; in hmac_sha1()
53 uint8_t sha[SHA1_DIGEST_LENGTH]; in hmac_sha1()
66 sha1_update(&ctx, sha, SHA1_DIGEST_LENGTH); in hmac_sha1()
71 if (resultLength > SHA1_DIGEST_LENGTH) { in hmac_sha1()
72 resultLength = SHA1_DIGEST_LENGTH; in hmac_sha1()
/dports/emulators/tpm-emulator/tpm_emulator-0.7.4/crypto/
H A Drsa.c365 uint8_t mask[SHA1_DIGEST_LENGTH]; in tpm_rsa_mask_generation()
374 len = (data_len < SHA1_DIGEST_LENGTH) ? data_len : SHA1_DIGEST_LENGTH; in tpm_rsa_mask_generation()
436 tpm_get_random_bytes(&msg[1], SHA1_DIGEST_LENGTH); in encode_message()
439 tpm_sha1_final(&ctx, &msg[1 + SHA1_DIGEST_LENGTH]); in encode_message()
440 memset(&msg[1 + 2 * SHA1_DIGEST_LENGTH], 0x00, in encode_message()
445 &msg[1 + SHA1_DIGEST_LENGTH], msg_len - SHA1_DIGEST_LENGTH - 1); in encode_message()
447 msg_len - SHA1_DIGEST_LENGTH - 1, &msg[1], SHA1_DIGEST_LENGTH); in encode_message()
487 msg_len - SHA1_DIGEST_LENGTH - 1, &msg[1], SHA1_DIGEST_LENGTH); in decode_message()
489 &msg[1 + SHA1_DIGEST_LENGTH], msg_len - SHA1_DIGEST_LENGTH - 1); in decode_message()
493 if (memcmp(&msg[1], &msg[1 + SHA1_DIGEST_LENGTH], in decode_message()
[all …]
/dports/graphics/mesa-devel/mesa-22.0-branchpoint-2059-ge8a63cf61ec/src/util/
H A Dmesa-sha1.c70 sha1_to_uint32(const uint8_t sha1[SHA1_DIGEST_LENGTH], in sha1_to_uint32() argument
73 memset(out, 0, SHA1_DIGEST_LENGTH); in sha1_to_uint32()
75 for (unsigned i = 0; i < SHA1_DIGEST_LENGTH; i++) in sha1_to_uint32()
80 _mesa_sha1_print(FILE *f, const uint8_t sha1[SHA1_DIGEST_LENGTH]) in _mesa_sha1_print() argument
82 uint32_t u32[SHA1_DIGEST_LENGTH]; in _mesa_sha1_print()
93 _mesa_printed_sha1_equal(const uint8_t sha1[SHA1_DIGEST_LENGTH], in _mesa_printed_sha1_equal() argument
/dports/net/freeradius3/freeradius-server-3.0.25/src/modules/rlm_eap/libeap/
H A Dmppe_keys.c133 buf = talloc_size(NULL, SHA1_DIGEST_LENGTH + prf_size + seed_len + 2 + 1); in T_PRF()
135 memcpy(buf + SHA1_DIGEST_LENGTH, prf_label, prf_size); in T_PRF()
136 if (seed) memcpy(buf + SHA1_DIGEST_LENGTH + prf_size, seed, seed_len); in T_PRF()
138 buf[SHA1_DIGEST_LENGTH + prf_size + seed_len + 2] = 1; in T_PRF()
144 memcpy(out, buf, MIN(out_len, SHA1_DIGEST_LENGTH)); in T_PRF()
146 pos = SHA1_DIGEST_LENGTH; in T_PRF()
148 buf[SHA1_DIGEST_LENGTH + prf_size + seed_len + 2]++; in T_PRF()
151 memcpy(&out[pos], buf, MIN(out_len - pos, SHA1_DIGEST_LENGTH)); in T_PRF()
153 if (out_len - pos <= SHA1_DIGEST_LENGTH) in T_PRF()
156 pos += SHA1_DIGEST_LENGTH; in T_PRF()
[all …]
/dports/databases/libdrizzle/libdrizzle-0.8/libdrizzle/
H A Dpack.c236 uint8_t hash_tmp1[SHA1_DIGEST_LENGTH]; in _pack_scramble_hash()
237 uint8_t hash_tmp2[SHA1_DIGEST_LENGTH]; in _pack_scramble_hash()
240 if (SHA1_DIGEST_LENGTH != DRIZZLE_MAX_SCRAMBLE_SIZE) in _pack_scramble_hash()
243 "SHA1 hash size mismatch:%u:%u", SHA1_DIGEST_LENGTH, in _pack_scramble_hash()
262 SHA1Update(&ctx, hash_tmp1, SHA1_DIGEST_LENGTH); in _pack_scramble_hash()
267 SHA1Update(&ctx, con->scramble, SHA1_DIGEST_LENGTH); in _pack_scramble_hash()
268 SHA1Update(&ctx, hash_tmp2, SHA1_DIGEST_LENGTH); in _pack_scramble_hash()
272 for (x= 0; x < SHA1_DIGEST_LENGTH; x++) in _pack_scramble_hash()
/dports/lang/clover/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/libosmesa-gallium/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/libosmesa/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-libs/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-gallium-va/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-dri-gallium/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-gallium-vdpau/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-gallium-xa/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-devel/mesa-22.0-branchpoint-2059-ge8a63cf61ec/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-dri/mesa-21.3.6/src/freedreno/common/
H A Dfreedreno_uuid.c53 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
56 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
89 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
92 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/graphics/mesa-dri-classic/mesa-20.2.3/src/freedreno/common/
H A Dfreedreno_uuid.c52 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_driver_uuid()
55 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_driver_uuid()
88 uint8_t sha1[SHA1_DIGEST_LENGTH]; in fd_get_device_uuid()
91 assert(SHA1_DIGEST_LENGTH >= UUID_SIZE); in fd_get_device_uuid()
/dports/emulators/tpm-emulator/tpm_emulator-0.7.4/tpm/
H A Dtpm_maintenance.c100 tpm_rsa_mask_generation(&buf[1], SHA1_DIGEST_LENGTH, in TPM_CreateMaintenanceArchive()
101 &buf[1 + SHA1_DIGEST_LENGTH], buf_len - SHA1_DIGEST_LENGTH - 1); in TPM_CreateMaintenanceArchive()
102 tpm_rsa_mask_generation(&buf[1 + SHA1_DIGEST_LENGTH], in TPM_CreateMaintenanceArchive()
103 buf_len - SHA1_DIGEST_LENGTH - 1, &buf[1], SHA1_DIGEST_LENGTH); in TPM_CreateMaintenanceArchive()
120 SHA1_DIGEST_LENGTH, buf, buf_len); in TPM_CreateMaintenanceArchive()
195 SHA1_DIGEST_LENGTH, buf, buf_len); in TPM_LoadMaintenanceArchive()
197 tpm_rsa_mask_generation(&buf[1 + SHA1_DIGEST_LENGTH], in TPM_LoadMaintenanceArchive()
198 buf_len - SHA1_DIGEST_LENGTH - 1, &buf[1], SHA1_DIGEST_LENGTH); in TPM_LoadMaintenanceArchive()
199 tpm_rsa_mask_generation(&buf[1], SHA1_DIGEST_LENGTH, in TPM_LoadMaintenanceArchive()
200 &buf[1 + SHA1_DIGEST_LENGTH], buf_len - SHA1_DIGEST_LENGTH - 1); in TPM_LoadMaintenanceArchive()

12345678910>>...16