Searched refs:hash_ctx (Results 1 – 3 of 3) sorted by relevance
| /netbsd/src/external/bsd/pkg_install/dist/lib/ |
| D | vulnerabilities-file.c | 137 static SHA512_CTX hash_ctx; in sha512_hash_init() local 139 SHA512_Init(&hash_ctx); in sha512_hash_init() 140 return &hash_ctx; in sha512_hash_init() 146 SHA512_CTX *hash_ctx = ctx; in sha512_hash_update() local 148 SHA512_Update(hash_ctx, data, len); in sha512_hash_update() 156 SHA512_CTX *hash_ctx = ctx; in sha512_hash_finish() local 159 SHA512_Final(digest, hash_ctx); in sha512_hash_finish() 183 static SHA1_CTX hash_ctx; in sha1_hash_init() local 185 SHA1Init(&hash_ctx); in sha1_hash_init() 186 return &hash_ctx; in sha1_hash_init() [all …]
|
| D | pkg_signature.c | 86 SHA512_CTX hash_ctx; in hash_block() local 89 SHA512_Init(&hash_ctx); in hash_block() 90 SHA512_Update(&hash_ctx, buf, buf_len); in hash_block() 91 SHA512_Final(digest, &hash_ctx); in hash_block()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/ec/ |
| D | curve25519.c | 5452 EVP_MD_CTX *hash_ctx = EVP_MD_CTX_new(); in ossl_ed25519_sign() local 5456 if (sha512 == NULL || hash_ctx == NULL) in ossl_ed25519_sign() 5459 if (!EVP_DigestInit_ex(hash_ctx, sha512, NULL) in ossl_ed25519_sign() 5460 || !EVP_DigestUpdate(hash_ctx, private_key, 32) in ossl_ed25519_sign() 5461 || !EVP_DigestFinal_ex(hash_ctx, az, &sz)) in ossl_ed25519_sign() 5468 if (!EVP_DigestInit_ex(hash_ctx, sha512, NULL) in ossl_ed25519_sign() 5469 || !EVP_DigestUpdate(hash_ctx, az + 32, 32) in ossl_ed25519_sign() 5470 || !EVP_DigestUpdate(hash_ctx, message, message_len) in ossl_ed25519_sign() 5471 || !EVP_DigestFinal_ex(hash_ctx, nonce, &sz)) in ossl_ed25519_sign() 5478 if (!EVP_DigestInit_ex(hash_ctx, sha512, NULL) in ossl_ed25519_sign() [all …]
|