Optionalasymmetricfalse for a policy with no asymmetric encryption: its OpenSecureChannel message is signed and not encrypted. A factory that does not say it has asymmetric encryption: read it with hasAsymmetricEncryption.
A factory that sets it to false gives an CryptoFactory.asymmetricEncrypt and an CryptoFactory.asymmetricDecrypt that throw, and a CryptoFactory.blockPaddingSize of 0. The password of a user is not encrypted with such a policy.
for info only
OptionalasymmetricThe family of the key of an application certificate under this policy. A factory that does not say it is for RSA keys: read it with getAsymmetricKeyType.
For "ec" the policy also gives CryptoFactory.ecdsaSignParams
and CryptoFactory.certificateCurves.
raw-key signing is superseded by the opaque key-operations
path: declare signParams and sign through an IKeyOperations
(see computeSignatureAsync / the OPN builders). Still populated and
functional; a removal candidate for the next major.
for info only
Optionalauthenticatedtrue when the chunks of the channel are sealed in one step: the encryption and the signature are one algorithm (AES-GCM or ChaCha20-Poly1305), with a tag in place of a signature, no padding, and an initialization vector made for each chunk (OPC 10000-6, 6.7.2 and 6.8.1). A factory that does not say it signs with a HMAC and then encrypts: read it with usesAuthenticatedEncryption.
OptionalcertificateThe curves that the key of an application certificate can be on under
this policy, with their OpenSSL names. Only for a policy whose
CryptoFactory.asymmetricKeyType is "ec".
OptionalcertificateThe hash that HASH() of the signatures bound to the channel uses (OPC 10000-4, 6.1.8): the CertificateThumbprintAlgorithm of the policy. It is given by a policy with CryptoFactory.secureChannelEnhancements.
OptionaldecryptSame as signParams, for asymmetricDecrypt.
OptionalecdsaHow to sign with a key on an elliptic curve: the twin of
CryptoFactory.signParams for a policy whose
CryptoFactory.asymmetricKeyType is "ec".
The length of the derived initialization vector: 16 for AES-CBC, where it is the cipher block, and 12 for AES-GCM, where the cipher block is 16.
OptionalephemeralThe curve of the ephemeral key of each side, with its OpenSSL name, for a policy whose channel keys come from a key agreement: the nonce is then the public key of that ephemeral key, and the keys come from ECDH and HKDF (OPC 10000-6, 6.8.1). A factory that does not give it derives the keys from the two nonces.
OptionalkeyThe hash of the HKDF of a policy that gives CryptoFactory.ephemeralKeyCurve.
Optionallegacyfalse when the sequence numbers of the chunks start at 0 and go back to 0 after the largest UInt32 (OPC 10000-6, 6.7.2.4). A factory that does not say it has the earlier rule, with numbers that go back below 1024: read it with usesLegacySequenceNumbers.
for info only
for info only
Optionalsecuretrue for a policy with SecureChannelEnhancements (OPC 10000-6, 6.7.5): the ChannelThumbprint, the chaining of the keys on a renewal, and the signatures of a session bound to the channel. A factory that does not say it has the legacy calculations: read it with usesSecureChannelEnhancements.
OptionalsecureThe length in bytes of the nonce of an OpenSecureChannel message: the SecureChannelNonceLength of the policy. A factory that does not say it uses CryptoFactory.symmetricKeyLength, as the five RSA policies do: read it with getSecureChannelNonceLength.
OptionalsignThe policy's asymmetric signature scheme as parameters an opaque
IKeyOperations provider understands — the algorithm-URI-free
twin of asymmetricSign. Optional so third-party factory literals
predating it stay valid; using an opaque key against a factory that
lacks it fails with a clear error (see getSignParams).
Deprecated
raw-key decryption is superseded by the opaque key-operations path: declare decryptParams and decrypt through
asymmetricDecryptWithKeyOps(+Sync). Still populated and functional; a removal candidate for the next major.