-Key::Key()
- : SecurityServerAcl(keyAcl, Allocator::standard())
-{
-}
-
-
-Database &Key::database() const
-{
- return referent<Database>();
-}
-
-
-//
-// Form a KeySpec with checking and masking
-//
-Key::KeySpec::KeySpec(uint32 usage, uint32 attrs)
- : CssmClient::KeySpec(usage, (attrs & ~managedAttributes) | forcedAttributes)
-{
- if (attrs & generatedAttributes)
- CssmError::throwMe(CSSMERR_CSP_INVALID_KEYATTR_MASK);
-}
-
-Key::KeySpec::KeySpec(uint32 usage, uint32 attrs, const CssmData &label)
- : CssmClient::KeySpec(usage, (attrs & ~managedAttributes) | forcedAttributes, label)