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