]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_smime/lib/cryptohi.h
Security-58286.260.20.tar.gz
[apple/security.git] / OSX / libsecurity_smime / lib / cryptohi.h
index f140c4ca79c970e52b04f1dc3a415a26ebe10e41..749c755a8ad58d94543d4a3ed935b432221e5e3f 100644 (file)
@@ -137,6 +137,14 @@ extern SECStatus WRAP_PubWrapSymKey(SecPublicKeyRef publickey,
 
 extern SecSymmetricKeyRef WRAP_PubUnwrapSymKey(SecPrivateKeyRef privkey, CSSM_DATA_PTR encKey, SECOidTag bulkalgtag);
 
+CFStringRef SECOID_CopyKeyTypeByTag(SECOidTag tag);
+
+/*
+ * NULL wrap a ref key to raw key in default format.
+ * The utility of this function is that it rescues the actual data content
+ * of the SecSymmetricKeyRef so that we can encrypt it.
+ */
+OSStatus cmsNullWrapKey(SecKeyRef refKey, CSSM_KEY_PTR rawKey);
 
 SEC_END_PROTOS