Lines Matching refs:salt
23 const unsigned char *salt; member
55 const unsigned char *salt, size_t salt_len, in hash_block() argument
65 ret &= EVP_DigestUpdate(mdctx, salt, salt_len); in hash_block()
79 const unsigned char *salt, size_t salt_size, in hash_blocks() argument
85 hash_block(md, in + i, block_size, salt, salt_size, out, &s); in hash_blocks()
101 ctx->salt, ctx->salt_size, ctx->block_size); in hash_chunk()
129 unsigned char *salt = NULL; in main() local
154 salt = new unsigned char[salt_size](); in main()
155 if (salt == NULL) { in main()
158 memcpy(salt, optarg, salt_size); in main()
166 salt = new unsigned char[salt_size](); in main()
167 if (salt == NULL) { in main()
170 if((size_t)BN_bn2bin(bn, salt) != salt_size) { in main()
217 if (!salt || !salt_size) { in main()
219 salt = new unsigned char[salt_size]; in main()
220 if (salt == NULL) { in main()
229 ssize_t ret = read(random_fd, salt, salt_size); in main()
313 hash_block(md, zero_block, block_size, salt, salt_size, zero_block_hash, NULL); in main()
320 ctx.salt = salt; in main()
337 salt, salt_size, block_size); in main()
350 printf("%02x", salt[i]); in main()
366 delete[] salt; in main()