/macosx-10.10/Security-57031.1.35/securityd/src/ |
H A D | localdatabase.cpp | 199 Key *wrappingKey, Key &keyToBeWrapped, 205 if (wrappingKey) { 206 context.replace(CSSM_ATTRIBUTE_KEY, myKey(*wrappingKey).cssmKey()); 207 wrappingKey->validate(CSSM_ACL_AUTHORIZATION_ENCRYPT, context); 217 Key *wrappingKey, Key *publicKey, CSSM_KEYUSE usage, CSSM_KEYATTR_FLAGS attrs, 220 if (wrappingKey) { 221 context.replace(CSSM_ATTRIBUTE_KEY, myKey(*wrappingKey).cssmKey()); 222 wrappingKey->validate(CSSM_ACL_AUTHORIZATION_DECRYPT, context); 198 wrapKey(const Context &context, const AccessCredentials *cred, Key *wrappingKey, Key &keyToBeWrapped, const CssmData &descriptiveData, CssmKey &wrappedKey) argument 215 unwrapKey(const Context &context, const AccessCredentials *cred, const AclEntryPrototype *owner, Key *wrappingKey, Key *publicKey, CSSM_KEYUSE usage, CSSM_KEYATTR_FLAGS attrs, const CssmKey wrappedKey, RefPointer<Key> &unwrappedKey, CssmData &descriptiveData) argument
|
H A D | localdatabase.h | 89 Key *wrappingKey, Key &keyToBeWrapped, 93 Key *wrappingKey, Key *publicKey, CSSM_KEYUSE usage, CSSM_KEYATTR_FLAGS attrs,
|
H A D | database.h | 140 Key *wrappingKey, Key &keyToBeWrapped, 144 Key *wrappingKey, Key *publicKey, CSSM_KEYUSE usage, CSSM_KEYATTR_FLAGS attrs,
|
H A D | tokendatabase.cpp | 486 Key *wrappingKey, Key &subjectKey, 490 InputKey cWrappingKey(wrappingKey); 496 if (wrappingKey) 497 wrappingKey->validate(CSSM_ACL_AUTHORIZATION_ENCRYPT, context); 510 Key *wrappingKey, Key *publicKey, CSSM_KEYUSE usage, CSSM_KEYATTR_FLAGS attrs, 514 InputKey cWrappingKey(wrappingKey); 517 if (wrappingKey) 518 wrappingKey->validate(CSSM_ACL_AUTHORIZATION_DECRYPT, context); 485 wrapKey(const Context &context, const AccessCredentials *cred, Key *wrappingKey, Key &subjectKey, const CssmData &descriptiveData, CssmKey &wrappedKey) argument 508 unwrapKey(const Context &context, const AccessCredentials *cred, const AclEntryPrototype *owner, Key *wrappingKey, Key *publicKey, CSSM_KEYUSE usage, CSSM_KEYATTR_FLAGS attrs, const CssmKey wrappedKey, RefPointer<Key> &unwrappedKey, CssmData &descriptiveData) argument
|
/macosx-10.10/Security-57031.1.35/Security/include/security_keychain/ |
H A D | SecWrappedKeys.cpp | 411 CSSM_KEY wrappingKey; local 412 wrappingKey.KeyData.Data = NULL; 413 wrappingKey.KeyData.Length = 0; 418 &wrappingKey); 427 ortn = impExpExportKeyCommon(cspHand, secKey, &wrappingKey, &wrappedKey, 488 if(wrappingKey.KeyData.Data != NULL) { 489 CSSM_FreeKey(cspHand, NULL, &wrappingKey, CSSM_FALSE);
|
H A D | SecImportExportCrypto.h | 108 CSSM_KEY_PTR wrappingKey,
|
H A D | SecImportExportOpenSSH.cpp | 604 CSSM_KEY wrappingKey; local 605 crtn = openSSHv1DeriveKey(cspdlHand, keyParams, VP_Export, &wrappingKey); 614 crtn = impExpExportKeyCommon(cspdlHand, secKey, &wrappingKey, &wrappedKey,
|
H A D | SecKey.h | 564 @param wrappingKey The key wrapping key. 576 SecKeyRef wrappingKey, CFDictionaryRef parameters, CFErrorRef *error)
|
H A D | SecImportExportPkcs8.cpp | 913 CSSM_KEY wrappingKey; local 914 memset(&wrappingKey, 0, sizeof(CSSM_KEY)); 920 &wrappingKey); 949 crtn = impExpExportKeyCommon(cspdlHand, secKey, &wrappingKey, &wrappedKey, 971 if(wrappingKey.KeyData.Data) { 972 CSSM_FreeKey(cspdlHand, NULL, &wrappingKey, CSSM_FALSE);
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_keychain/Security/ |
H A D | SecWrappedKeys.cpp | 411 CSSM_KEY wrappingKey; local 412 wrappingKey.KeyData.Data = NULL; 413 wrappingKey.KeyData.Length = 0; 418 &wrappingKey); 427 ortn = impExpExportKeyCommon(cspHand, secKey, &wrappingKey, &wrappedKey, 488 if(wrappingKey.KeyData.Data != NULL) { 489 CSSM_FreeKey(cspHand, NULL, &wrappingKey, CSSM_FALSE);
|
H A D | SecImportExportCrypto.h | 108 CSSM_KEY_PTR wrappingKey,
|
H A D | SecImportExportOpenSSH.cpp | 604 CSSM_KEY wrappingKey; local 605 crtn = openSSHv1DeriveKey(cspdlHand, keyParams, VP_Export, &wrappingKey); 614 crtn = impExpExportKeyCommon(cspdlHand, secKey, &wrappingKey, &wrappedKey,
|
H A D | SecKey.h | 564 @param wrappingKey The key wrapping key. 576 SecKeyRef wrappingKey, CFDictionaryRef parameters, CFErrorRef *error)
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_keychain/lib/ |
H A D | SecWrappedKeys.cpp | 411 CSSM_KEY wrappingKey; local 412 wrappingKey.KeyData.Data = NULL; 413 wrappingKey.KeyData.Length = 0; 418 &wrappingKey); 427 ortn = impExpExportKeyCommon(cspHand, secKey, &wrappingKey, &wrappedKey, 488 if(wrappingKey.KeyData.Data != NULL) { 489 CSSM_FreeKey(cspHand, NULL, &wrappingKey, CSSM_FALSE);
|
H A D | SecImportExportCrypto.h | 108 CSSM_KEY_PTR wrappingKey,
|
H A D | SecImportExportOpenSSH.cpp | 604 CSSM_KEY wrappingKey; local 605 crtn = openSSHv1DeriveKey(cspdlHand, keyParams, VP_Export, &wrappingKey); 614 crtn = impExpExportKeyCommon(cspdlHand, secKey, &wrappingKey, &wrappedKey,
|
H A D | SecKey.h | 564 @param wrappingKey The key wrapping key. 576 SecKeyRef wrappingKey, CFDictionaryRef parameters, CFErrorRef *error)
|
/macosx-10.10/Security-57031.1.35/SecurityTests/cspxutils/wrap/ |
H A D | wrap.c | 44 CSSM_KEY_PTR wrappingKey; local 81 /* passphrase1 ==> wrappingKey */ 84 wrappingKey = cspDeriveKey(cspHand, 96 if(wrappingKey == NULL) { 149 /* now wrap encrKey with wrappingKey and write the wrapped blob */ 152 wrappingKey, 202 wrappingKey,
|
/macosx-10.10/Security-57031.1.35/SecurityTests/cspxutils/miniWrap/ |
H A D | miniWrap.c | 92 const CSSM_KEY_PTR wrappingKey, 115 if((wrappingKey == NULL) || 116 (wrappingKey->KeyHeader.KeyClass == CSSM_KEYCLASS_SESSION_KEY)) { 121 wrappingKey, 135 wrappingKey, 281 CSSM_KEY_PTR wrappingKey, // ...using this key, NULL for null wrap 306 CSSM_KEY_PTR wrappingKey, // ...using this key, NULL for null wrap 328 /* wrap decrKey or encrKey using wrappingKey ==> wrappedKey */ 329 if((wrappingKey == NULL) && !NULL_WRAP_DECR_KEY) { 333 wrappingKey, 90 wrapKey(CSSM_CSP_HANDLE cspHand, const CSSM_KEY_PTR unwrappedKey, const CSSM_KEY_PTR wrappingKey, CSSM_ALGORITHMS wrapAlg, CSSM_ENCRYPT_MODE wrapMode, CSSM_KEYBLOB_FORMAT wrapFormat, CSSM_PADDING wrapPad, CSSM_KEY_PTR wrappedKey) argument 278 doTest(CSSM_CSP_HANDLE cspHand, CSSM_KEY_PTR encrKey, CSSM_KEY_PTR decrKey, CSSM_KEY_PTR wrappingKey, CSSM_KEY_PTR unwrappingKey, CSSM_ALGORITHMS wrapAlg, CSSM_ENCRYPT_MODE wrapMode, CSSM_PADDING wrapPad, CSSM_ALGORITHMS encrAlg, CSSM_ENCRYPT_MODE encrMode, CSSM_PADDING encrPad, CSSM_BOOL wrapOnly, uint32 maxPtextSize, CSSM_BOOL quiet) argument 303 doTest(CSSM_CSP_HANDLE cspHand, CSSM_KEY_PTR encrKey, CSSM_KEY_PTR decrKey, CSSM_KEY_PTR wrappingKey, CSSM_KEY_PTR unwrappingKey, CSSM_ALGORITHMS wrapAlg, CSSM_ENCRYPT_MODE wrapMode, CSSM_KEYBLOB_FORMAT wrapFormat, CSSM_PADDING wrapPad, CSSM_ALGORITHMS encrAlg, CSSM_ENCRYPT_MODE encrMode, CSSM_PADDING encrPad, CSSM_BOOL wrapOnly, uint32 maxPtextSize, CSSM_BOOL quiet) argument [all...] |
/macosx-10.10/Security-57031.1.35/Security/libsecurity_apple_csp/lib/ |
H A D | wrapKey.cpp | 93 CssmKey *wrappingKey = NULL; local 106 wrappingKey = Context.get<CssmKey>(CSSM_ATTRIBUTE_KEY); 107 if(wrappingKey == NULL) { 134 cspValidateIntendedKeyUsage(&wrappingKey->KeyHeader, CSSM_KEYUSE_WRAP); 135 cspVerifyKeyTimes(wrappingKey->KeyHeader); 141 switch(wrappingKey->KeyHeader.KeyClass) { 150 errorLog0("WrapKey: bad class of wrappingKey\n"); 154 errorLog0("WrapKey: mismatch wrappingKey/contextType\n"); 533 errorLog0("UnwrapKey: bad class of wrappingKey\n");
|
/macosx-10.10/WebCore-7600.1.25/crypto/ |
H A D | SubtleCrypto.idl | 40 [Custom] Promise wrapKey(KeyFormat format, Key key, Key wrappingKey, AlgorithmIdentifier wrapAlgorithm);
|
/macosx-10.10/SecurityTokend-55108/lib/ |
H A D | SecTokend.h | 149 CSSM_HANDLE hWrappingKey, const CSSM_KEY *wrappingKey, const CSSM_ACCESS_CREDENTIALS *cred, 153 CSSM_HANDLE hWrappingKey, const CSSM_KEY *wrappingKey, const CSSM_ACCESS_CREDENTIALS *cred,
|
H A D | tdtransit.cpp | 389 KeyHandle hWrappingKey, const CssmKey *wrappingKey, 395 Copier<CssmKey> cWrappingKey(wrappingKey, internalAllocator); 404 KeyHandle hWrappingKey, const CssmKey *wrappingKey, 412 Copier<CssmKey> cWrappingKey(wrappingKey, internalAllocator); 388 wrapKey(const Context &context, const AccessCredentials *cred, KeyHandle hWrappingKey, const CssmKey *wrappingKey, KeyHandle hSubjectKey, const CssmKey *subjectKey, const CssmData &descriptiveData, CssmWrappedKey *&wrappedKey) argument 402 unwrapKey(const Security::Context &context, const AccessCredentials *cred, const AclEntryPrototype *proto, KeyHandle hWrappingKey, const CssmKey *wrappingKey, KeyHandle hPublicKey, const CssmKey *publicKey, const CssmWrappedKey &wrappedKey, uint32 usage, uint32 attrs, CssmData &descriptiveData, KeyHandle &hKey, CssmKey *&key) argument
|
/macosx-10.10/SecurityTokend-55108/security_tokend_client/ |
H A D | SecTokend.h | 149 CSSM_HANDLE hWrappingKey, const CSSM_KEY *wrappingKey, const CSSM_ACCESS_CREDENTIALS *cred, 153 CSSM_HANDLE hWrappingKey, const CSSM_KEY *wrappingKey, const CSSM_ACCESS_CREDENTIALS *cred,
|
H A D | tdtransit.cpp | 389 KeyHandle hWrappingKey, const CssmKey *wrappingKey, 395 Copier<CssmKey> cWrappingKey(wrappingKey, internalAllocator); 404 KeyHandle hWrappingKey, const CssmKey *wrappingKey, 412 Copier<CssmKey> cWrappingKey(wrappingKey, internalAllocator); 388 wrapKey(const Context &context, const AccessCredentials *cred, KeyHandle hWrappingKey, const CssmKey *wrappingKey, KeyHandle hSubjectKey, const CssmKey *subjectKey, const CssmData &descriptiveData, CssmWrappedKey *&wrappedKey) argument 402 unwrapKey(const Security::Context &context, const AccessCredentials *cred, const AclEntryPrototype *proto, KeyHandle hWrappingKey, const CssmKey *wrappingKey, KeyHandle hPublicKey, const CssmKey *publicKey, const CssmWrappedKey &wrappedKey, uint32 usage, uint32 attrs, CssmData &descriptiveData, KeyHandle &hKey, CssmKey *&key) argument
|