• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/apps/

Lines Matching defs:digest

86 static int query_command(const char *data, char *digest,
91 static TS_REQ *create_query(BIO *data_bio, char *digest, const EVP_MD *md,
93 static int create_digest(BIO *input, char *digest,
113 static int verify_command(char *data, char *digest, char *queryfile,
116 static TS_VERIFY_CTX *create_verify_ctx(char *data, char *digest,
136 char *digest = NULL;
189 } else if (strcmp(*argv, "-digest") == 0) {
192 digest = *++argv;
297 ret = data != NULL && digest != NULL;
302 ret = !query_command(data, digest, md, policy, no_nonce, cert,
323 ret = !(((queryfile && !data && !digest)
324 || (!queryfile && data && !digest)
325 || (!queryfile && !data && digest))
330 ret = !verify_command(data, digest, queryfile, in, token_in,
339 "[-data file_to_hash] [-digest digest_bytes]"
352 "ts -verify [-data file_to_hash] [-digest digest_bytes] "
431 static int query_command(const char *data, char *digest, const EVP_MD *md,
448 * Open the file if no explicit digest bytes were specified.
450 if (!digest && !(data_bio = BIO_open_with_default(data, "rb", stdin)))
453 query = create_query(data_bio, digest, md, policy, no_nonce, cert);
493 static TS_REQ *create_query(BIO *data_bio, char *digest, const EVP_MD *md,
505 /* Setting default message digest. */
532 /* Adding message digest. */
533 if ((len = create_digest(data_bio, digest, md, &data)) == 0)
572 static int create_digest(BIO *input, char *digest, const EVP_MD *md,
596 /* Digest bytes are specified with digest. */
598 *md_value = string_to_hex(digest, &digest_len);
602 BIO_printf(bio_err, "bad digest, %d bytes "
944 static int verify_command(char *data, char *digest, char *queryfile,
965 if (!(verify_ctx = create_verify_ctx(data, digest, queryfile,
992 static TS_VERIFY_CTX *create_verify_ctx(char *data, char *digest,
1002 if (data != NULL || digest != NULL) {
1010 } else if (digest != NULL) {
1013 if (!(ctx->imprint = string_to_hex(digest, &imprint_len))) {
1014 BIO_printf(bio_err, "invalid digest string\n");