• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_transform/lib/

Lines Matching +defs:signature +defs:file

6  * This file contains Original Code and/or Modifications of Original Code
8 * Version 2.0 (the 'License'). You may not use this file except in
11 * file.
38 CFErrorRef do_sec_fail(OSStatus code, const char *func, const char *file, int line) {
39 CFStringRef msg = CFStringCreateWithFormat(NULL, NULL, CFSTR("Internal error #%x at %s %s:%d"), (unsigned)code, func, file, line);
223 return fancy_error(kSecTransformErrorDomain, kSecTransformErrorInvalidAlgorithm, CFSTR("Invalid digest algorithm for RSA signature, choose one of: SHA1, SHA2 (512bits, 348bits, 256bits, or 224 bits), MD2, or MD5"));
227 return fancy_error(kSecTransformErrorDomain, kSecTransformErrorInvalidAlgorithm, CFSTR("Invalid digest algorithm for ECDSA signature, choose one of: SHA1, or SHA2 (512bits, 348bits, 256bits, or 224 bits)"));
231 return fancy_error(kSecTransformErrorDomain, kSecTransformErrorInvalidAlgorithm, CFSTR("Invalid digest algorithm for DSA signature, only SHA1 is supported"));
504 __block CFDataRef signature = NULL;
553 // We call this when we get the last input and when we get the signature. If both are true when it is
557 if (signature && had_last_input)
561 sig.Data = (void*)CFDataGetBytePtr(signature);
562 sig.Length = CFDataGetLength(signature);
563 CFRelease(signature);
564 signature = NULL;
599 signature = CFRetain(value);
692 SecTransformRef SecVerifyTransformCreate(SecKeyRef key, CFDataRef signature, CFErrorRef* error)
716 if (signature)
718 SecTransformSetAttribute(tr, kSecSignatureAttributeName, signature, error);