Lines Matching refs:signature
6 /* Routines for verifying a file's signature. Useful in testing the core
29 uint8_t* signature = NULL;
31 fprintf(stderr, "Couldn't open signature file\n");
35 /* Read the signature into a buffer*/
36 signature = (uint8_t*) malloc(len);
37 if (!signature)
40 if( (i = read(sigfd, signature, len)) != len ) {
41 fprintf(stderr, "Wrong signature length - Expected = %d, Received = %d\n",
48 return signature;
55 uint8_t* signature = NULL;
59 fprintf(stderr, "Usage: %s <algorithm> <key file> <signature file>"
61 fprintf(stderr, "where <algorithm> depends on the signature algorithm"
76 (signature = read_signature(argv[3], sig_len)) &&
78 if (RSAVerify(key, signature, sig_len, algorithm, digest)) {
91 free(signature);