Searched refs:digestLength (Results 1 - 25 of 44) sorted by relevance

12

/macosx-10.10.1/Security-57031.1.35/Security/include/security_utilities/
H A Dhashing.h61 static const size_t digestLength = _size; // how many bytes in my digest? member in class:Security::Hash
67 SDigest(const Byte *source) { ::memcpy(data, source, digestLength); }
69 { return ::memcmp(x.data, y.data, digestLength) < 0; }
71 { return ::memcmp(this->data, other.data, digestLength) == 0; }
73 { return ::memcmp(this->data, other.data, digestLength) != 0; }
75 { return ::memcmp(this->data, other, digestLength) == 0; }
77 { return ::memcmp(this->data, other, digestLength) != 0; }
87 { Digest d; _self().finish(d); return memcmp(d, digest, digestLength) == 0; }
94 // Note that digestLength is a function here, not a constant. Obviously.
100 virtual size_t digestLength() cons
127 size_t digestLength() const function in class:Security::DynamicHashInstance
145 size_t digestLength() const function in class:Security::CCHashInstance
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Dhashing.h61 static const size_t digestLength = _size; // how many bytes in my digest? member in class:Security::Hash
67 SDigest(const Byte *source) { ::memcpy(data, source, digestLength); }
69 { return ::memcmp(x.data, y.data, digestLength) < 0; }
71 { return ::memcmp(this->data, other.data, digestLength) == 0; }
73 { return ::memcmp(this->data, other.data, digestLength) != 0; }
75 { return ::memcmp(this->data, other, digestLength) == 0; }
77 { return ::memcmp(this->data, other, digestLength) != 0; }
87 { Digest d; _self().finish(d); return memcmp(d, digest, digestLength) == 0; }
94 // Note that digestLength is a function here, not a constant. Obviously.
100 virtual size_t digestLength() cons
127 size_t digestLength() const function in class:Security::DynamicHashInstance
145 size_t digestLength() const function in class:Security::CCHashInstance
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_transform/lib/
H A DSecDigestTransform.cpp20 CFIndex digestLength,
27 CFErrorRef result = dt->Setup(digestType, digestLength);
19 SecDigestTransformCreate(CFTypeRef digestType, CFIndex digestLength, CFErrorRef* error ) argument
H A DSecDigestTransform.h113 @param digestLength The desired digest length. Note that certain
129 CFIndex digestLength,
H A DSecMaskGenerationFunctionTransform.c70 int32_t digestLength = 0;
73 CFNumberGetValue(transforms_assume(digestLengthAsCFNumber), kCFNumberSInt32Type, &digestLength);
75 (void)transforms_assume(digestLength >= 0);
77 UInt8 *buffer = malloc(outputLength + digestLength);
85 for(; l < outputLength; l += digestLength, i++) {
H A DDigest_block.c36 SecTransformRef SecDigestTransformCreate_block(SecProviderRef device, CFTypeRef digestType, CFIndex digestLength, CFErrorRef* error) { argument
95 CFNumberRef dlen = CFNumberCreate(NULL, kCFNumberCFIndexType, &digestLength);
H A DDigest.h18 Digest(CFStringRef digestType, size_t digestLength);
/macosx-10.10.1/Security-57031.1.35/Security/include/security_codesigning/
H A Dcodedirectory.cpp173 Hashing::Byte digest[hasher->digestLength()];
175 return memcmp(digest, (*this)[slot], hasher->digestLength()) == 0;
186 Hashing::Byte digest[hasher->digestLength()];
188 return memcmp(digest, (*this)[slot], hasher->digestLength()) == 0;
H A Dreqreader.cpp71 if (length != SHA1::digestLength)
H A Dcsutilities.cpp57 return !memcmp(sha1, gAppleAnchorHash, SHA1::digestLength);
91 return !memcmp(dig, digest, SHA1::digestLength);
H A Dreqmaker.cpp96 putData(digest, SHA1::digestLength);
135 putData(digest, SHA1::digestLength);
H A Ddrmaker.cpp75 || !memcmp(anchorHash, Requirement::testAppleAnchorHash(), SHA1::digestLength)
H A Dopaquewhitelist.cpp236 char s[2 * SHA1::digestLength + 1];
237 for (unsigned n = 0; n < SHA1::digestLength; n++)
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_codesigning/lib/
H A Dcodedirectory.cpp173 Hashing::Byte digest[hasher->digestLength()];
175 return memcmp(digest, (*this)[slot], hasher->digestLength()) == 0;
186 Hashing::Byte digest[hasher->digestLength()];
188 return memcmp(digest, (*this)[slot], hasher->digestLength()) == 0;
H A Dreqreader.cpp71 if (length != SHA1::digestLength)
H A Dcsutilities.cpp57 return !memcmp(sha1, gAppleAnchorHash, SHA1::digestLength);
91 return !memcmp(dig, digest, SHA1::digestLength);
H A Dreqmaker.cpp96 putData(digest, SHA1::digestLength);
135 putData(digest, SHA1::digestLength);
H A Ddrmaker.cpp75 || !memcmp(anchorHash, Requirement::testAppleAnchorHash(), SHA1::digestLength)
/macosx-10.10.1/Security-57031.1.35/Security/include/security_cdsa_utilities/
H A Dacl_codesigning.cpp59 new(alloc) ListElement(alloc, CssmData::wrap(legacyHash(), SHA1::digestLength)),
84 && list[2].data().length() == SHA1::digestLength
119 && length == SHA1::digestLength) {
154 pub.countedData(legacyHash(), SHA1::digestLength); member in class:SHA1
171 pub.countedData(legacyHash(), SHA1::digestLength); member in class:SHA1
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_cdsa_utilities/lib/
H A Dacl_codesigning.cpp59 new(alloc) ListElement(alloc, CssmData::wrap(legacyHash(), SHA1::digestLength)),
84 && list[2].data().length() == SHA1::digestLength
119 && length == SHA1::digestLength) {
154 pub.countedData(legacyHash(), SHA1::digestLength); member in class:SHA1
171 pub.countedData(legacyHash(), SHA1::digestLength); member in class:SHA1
/macosx-10.10.1/Security-57031.1.35/Security/include/security_keychain/
H A DTrustedApplication.h62 CssmData legacyHash() const { return CssmData::wrap(mForm->legacyHash(), SHA1::digestLength); }
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_keychain/Security/
H A DTrustedApplication.h62 CssmData legacyHash() const { return CssmData::wrap(mForm->legacyHash(), SHA1::digestLength); }
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_keychain/lib/
H A DTrustedApplication.h62 CssmData legacyHash() const { return CssmData::wrap(mForm->legacyHash(), SHA1::digestLength); }
/macosx-10.10.1/security_systemkeychain-55202/src/
H A Dcs_utils.cpp64 { "sha1", kSecCodeSignatureHashSHA1, SHA1::digestLength },
255 if (strlen(match) == 2 * SHA1::digestLength && strspn(match, hexDigits) == 2 * SHA1::digestLength) {
412 char s[2 * SHA1::digestLength + 1];
413 for (unsigned n = 0; n < SHA1::digestLength; n++)
427 for (unsigned n = 0; n < SHA1::digestLength; n++)
/macosx-10.10.1/Security-57031.1.35/securityd/src/
H A Dclientid.cpp153 return CssmData::wrap(guest->legacyHash, SHA1::digestLength);

Completed in 157 milliseconds

12