X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..07691282a056c4efea71e1e505527601e8cc166b:/OSX/libsecurity_smime/lib/cryptohi.h?ds=inline diff --git a/OSX/libsecurity_smime/lib/cryptohi.h b/OSX/libsecurity_smime/lib/cryptohi.h index f140c4ca..749c755a 100644 --- a/OSX/libsecurity_smime/lib/cryptohi.h +++ b/OSX/libsecurity_smime/lib/cryptohi.h @@ -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