3.1.4.6.11 LsarStorePrivateData2 (Opnum 140)

The LsarStorePrivateData2 method is invoked to store a secret value.<92>

 NTSTATUS LsarStorePrivateData2(
   [in] LSAPR_HANDLE PolicyHandle,
   [in] PLSAPR_AES_CIPHER_VALUE EncryptedKeyName,
   [in,unique] PLSAPR_AES_CIPHER_VALUE EncryptedData
 );

PolicyHandle: An RPC context handle obtained from LsarOpenPolicy3 (section 3.1.4.4.9).

EncryptedKeyName: The name under which private data will be stored. This is encrypted to specification per AES Cipher Usage (section 5.1.5).

EncryptedData: The secret value to be stored. This is encrypted to specification per AES Cipher Usage (section 5.1.5).

Return Values: The return values are the same as specified for LsarStorePrivateData (section 3.1.4.6.5).

Processing:

The processing is the same as LsarStorePrivateData with the exception that the encrypted EncryptedKeyName and EncryptedData are first decrypted.