dpapi.h and crypt32.dll.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Crypt32.
Contains the function pointers loaded from the crypt32 |
| Modifier and Type | Field and Description |
|---|---|
| private static final SharedLibrary | |
| public static final int | CRYPTPROTECT_AUDIT
Flags for the |
| public static final int | CRYPTPROTECT_LOCAL_MACHINE
Flags for the |
| public static final int | CRYPTPROTECT_PROMPT_ON_PROTECT
Flags for the |
| public static final int | CRYPTPROTECT_PROMPT_ON_UNPROTECT
Flags for the |
| public static final int | CRYPTPROTECT_UI_FORBIDDEN
Flags for the |
| public static final int | CRYPTPROTECT_VERIFY_PROTECTION
Flags for the |
| public static final int | CRYPTPROTECTMEMORY_BLOCK_SIZE
The block size for data encrypted via |
| public static final int | CRYPTPROTECTMEMORY_CROSS_PROCESS
Flags for the |
| public static final int | CRYPTPROTECTMEMORY_SAME_LOGON
Flags for the |
| public static final int | CRYPTPROTECTMEMORY_SAME_PROCESS
Flags for the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||
|---|---|---|---|---|
| public static boolean | CryptProtectData(DATA_BLOB
a pointer to a pDataIn, ByteBuffer DATA_BLOB structure that contains the plaintext to be encrypteda string with a readable description of the data to be encrypted.
szDataDescr, DATA_BLOB This description string is included with the encrypted data. This parameter is optional and can be set to a pointer to a pOptionalEntropy, long DATA_BLOB structure that contains a password or other additional entropy used to encrypt the data.
The reserved for future use and must be set to pvReserved, CRYPTPROTECT_PROMPTSTRUCT NULLa pointer to a pPromptStruct, int dwFlags, DATA_BLOB CRYPTPROTECT_PROMPTSTRUCT structure that provides information about where and when prompts are to be displayed and what the
content of those prompts should be.
This parameter can be set to a pointer to a pDataOut)DATA_BLOB structure that receives the encrypted data.
When you have finished using the The | |||
| public static boolean | CryptProtectData(DATA_BLOB
a pointer to a pDataIn, CharSequence DATA_BLOB structure that contains the plaintext to be encrypteda string with a readable description of the data to be encrypted.
szDataDescr, DATA_BLOB This description string is included with the encrypted data. This parameter is optional and can be set to a pointer to a pOptionalEntropy, long DATA_BLOB structure that contains a password or other additional entropy used to encrypt the data.
The reserved for future use and must be set to pvReserved, CRYPTPROTECT_PROMPTSTRUCT NULLa pointer to a pPromptStruct, int dwFlags, DATA_BLOB CRYPTPROTECT_PROMPTSTRUCT structure that provides information about where and when prompts are to be displayed and what the
content of those prompts should be.
This parameter can be set to a pointer to a pDataOut)DATA_BLOB structure that receives the encrypted data.
When you have finished using the The | |||
| public static boolean | CryptProtectMemory(ByteBuffer
a pointer to the block of memory to encrypt pDataIn, int this parameter can be one of the following flags. You must specify the same flag when encrypting and decrypting the memory. One of: dwFlags)
Encrypts memory to prevent others from viewing sensitive information in your process. | |||
| public static boolean | CryptUnprotectData(DATA_BLOB
a pointer to a pDataIn, PointerBuffer DATA_BLOB structure that holds the encrypted dataa pointer to a string-readable description of the encrypted data included with the encrypted data.
ppszDataDescr, DATA_BLOB This parameter can be set to a pointer to a pOptionalEntropy, long DATA_BLOB structure that contains a password or other additional entropy used when the data was encrypted.
This parameter can be set to reserved for future use and must be set to pvReserved, CRYPTPROTECT_PROMPTSTRUCT NULLa pointer to a pPromptStruct, int CRYPTPROTECT_PROMPTSTRUCT structure that provides information about where and when prompts are to be displayed and what the content
of those prompts should be.
This parameter can be set to one or more of: dwFlags, DATA_BLOB
a pointer to a pDataOut)DATA_BLOB structure where the function stores the decrypted data.
When you have finished using the The | |||
| public static boolean | CryptUnprotectMemory(ByteBuffer
a pointer to the block of memory to decrypt pDataIn, int this parameter can be one of the following flags. You must specify the same flag when encrypting and decrypting the memory. One of: dwFlags)
The | |||
| public static SharedLibrary | ||||
| public static native int | nCryptProtectData(long pDataIn, long szDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut, long __functionAddress)
Unsafe version of: | |||
| public static int | nCryptProtectData(long pDataIn, long szDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut)
Unsafe version of: | |||
| public static native int | nCryptProtectMemory(long pDataIn, int
number of bytes of memory pointed to by the cbDataIn, int dwFlags, long __functionAddress)pData parameter to encrypt.
The number of bytes must be a multiple of the Unsafe version of: | |||
| public static int | nCryptProtectMemory(long pDataIn, int
number of bytes of memory pointed to by the cbDataIn, int dwFlags)pData parameter to encrypt.
The number of bytes must be a multiple of the Unsafe version of: | |||
| public static native int | nCryptUnprotectData(long pDataIn, long ppszDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut, long __functionAddress)
Unsafe version of: | |||
| public static int | nCryptUnprotectData(long pDataIn, long ppszDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut)
Unsafe version of: | |||
| public static native int | nCryptUnprotectMemory(long pDataIn, int
number of bytes of memory pointed to by the cbDataIn, int dwFlags, long __functionAddress)pData parameter to decrypt.
The number of bytes must be a multiple of the Unsafe version of: | |||
| public static int | nCryptUnprotectMemory(long pDataIn, int
number of bytes of memory pointed to by the cbDataIn, int dwFlags)pData parameter to decrypt.
The number of bytes must be a multiple of the Unsafe version of: |
| CRYPT32 | back to summary |
|---|---|
| private static final SharedLibrary CRYPT32 | |
| CRYPTPROTECT_AUDIT | back to summary |
|---|---|
| public static final int CRYPTPROTECT_AUDIT Flags for the | |
| CRYPTPROTECT_LOCAL_MACHINE | back to summary |
|---|---|
| public static final int CRYPTPROTECT_LOCAL_MACHINE Flags for the | |
| CRYPTPROTECT_PROMPT_ON_PROTECT | back to summary |
|---|---|
| public static final int CRYPTPROTECT_PROMPT_ON_PROTECT Flags for the | |
| CRYPTPROTECT_PROMPT_ON_UNPROTECT | back to summary |
|---|---|
| public static final int CRYPTPROTECT_PROMPT_ON_UNPROTECT Flags for the | |
| CRYPTPROTECT_UI_FORBIDDEN | back to summary |
|---|---|
| public static final int CRYPTPROTECT_UI_FORBIDDEN Flags for the | |
| CRYPTPROTECT_VERIFY_PROTECTION | back to summary |
|---|---|
| public static final int CRYPTPROTECT_VERIFY_PROTECTION Flags for the | |
| CRYPTPROTECTMEMORY_BLOCK_SIZE | back to summary |
|---|---|
| public static final int CRYPTPROTECTMEMORY_BLOCK_SIZE The block size for data encrypted via | |
| CRYPTPROTECTMEMORY_CROSS_PROCESS | back to summary |
|---|---|
| public static final int CRYPTPROTECTMEMORY_CROSS_PROCESS Flags for the | |
| CRYPTPROTECTMEMORY_SAME_LOGON | back to summary |
|---|---|
| public static final int CRYPTPROTECTMEMORY_SAME_LOGON Flags for the | |
| CRYPTPROTECTMEMORY_SAME_PROCESS | back to summary |
|---|---|
| public static final int CRYPTPROTECTMEMORY_SAME_PROCESS Flags for the | |
| Crypt32 | back to summary |
|---|---|
| protected Crypt32() | |
| CryptProtectData | back to summary | |||
|---|---|---|---|---|
| public static boolean CryptProtectData(DATA_BLOB pDataIn, ByteBuffer szDataDescr, DATA_BLOB pOptionalEntropy, long pvReserved, CRYPTPROTECT_PROMPTSTRUCT pPromptStruct, int dwFlags, DATA_BLOB pDataOut) The Typically, only a user with the same logon credential as the user who encrypted the data can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer.
| ||||
| CryptProtectData | back to summary | |||
|---|---|---|---|---|
| public static boolean CryptProtectData(DATA_BLOB pDataIn, CharSequence szDataDescr, DATA_BLOB pOptionalEntropy, long pvReserved, CRYPTPROTECT_PROMPTSTRUCT pPromptStruct, int dwFlags, DATA_BLOB pDataOut) The Typically, only a user with the same logon credential as the user who encrypted the data can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer.
| ||||
| CryptProtectMemory | back to summary | |||
|---|---|---|---|---|
| public static boolean CryptProtectMemory(ByteBuffer pDataIn, int dwFlags) Encrypts memory to prevent others from viewing sensitive information in your process. For example, use the
| ||||
| CryptUnprotectData | back to summary | ||
|---|---|---|---|
| public static boolean CryptUnprotectData(DATA_BLOB pDataIn, PointerBuffer ppszDataDescr, DATA_BLOB pOptionalEntropy, long pvReserved, CRYPTPROTECT_PROMPTSTRUCT pPromptStruct, int dwFlags, DATA_BLOB pDataOut) The Usually, the only user who can decrypt the data is a user with the same logon credentials as the user who encrypted the data. In addition, the encryption and decryption must be done on the same computer.
| |||
| CryptUnprotectMemory | back to summary | |||
|---|---|---|---|---|
| public static boolean CryptUnprotectMemory(ByteBuffer pDataIn, int dwFlags) The
| ||||
| getLibrary | back to summary |
|---|---|
| public static SharedLibrary getLibrary() Returns the crypt32 | |
| nCryptProtectData | back to summary |
|---|---|
| public static native int nCryptProtectData(long pDataIn, long szDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut, long __functionAddress) Unsafe version of: | |
| nCryptProtectData | back to summary |
|---|---|
| public static int nCryptProtectData(long pDataIn, long szDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut) Unsafe version of: | |
| nCryptProtectMemory | back to summary |
|---|---|
| public static native int nCryptProtectMemory(long pDataIn, int cbDataIn, int dwFlags, long __functionAddress) Unsafe version of:
| |
| nCryptProtectMemory | back to summary |
|---|---|
| public static int nCryptProtectMemory(long pDataIn, int cbDataIn, int dwFlags) Unsafe version of:
| |
| nCryptUnprotectData | back to summary |
|---|---|
| public static native int nCryptUnprotectData(long pDataIn, long ppszDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut, long __functionAddress) Unsafe version of: | |
| nCryptUnprotectData | back to summary |
|---|---|
| public static int nCryptUnprotectData(long pDataIn, long ppszDataDescr, long pOptionalEntropy, long pvReserved, long pPromptStruct, int dwFlags, long pDataOut) Unsafe version of: | |
| nCryptUnprotectMemory | back to summary |
|---|---|
| public static native int nCryptUnprotectMemory(long pDataIn, int cbDataIn, int dwFlags, long __functionAddress) Unsafe version of:
| |
| nCryptUnprotectMemory | back to summary |
|---|---|
| public static int nCryptUnprotectMemory(long pDataIn, int cbDataIn, int dwFlags) Unsafe version of:
| |
SharedLibrary.
| Modifier and Type | Field and Description |
|---|---|
| public static final long | CryptProtectData
Function address. |
| public static final long | CryptProtectMemory
Function address. |
| public static final long | CryptUnprotectData
Function address. |
| public static final long | CryptUnprotectMemory
Function address. |
| Access | Constructor and Description |
|---|---|
| private |
| CryptProtectData | back to summary |
|---|---|
| public static final long CryptProtectData Function address. | |
| CryptProtectMemory | back to summary |
|---|---|
| public static final long CryptProtectMemory Function address. | |
| CryptUnprotectData | back to summary |
|---|---|
| public static final long CryptUnprotectData Function address. | |
| CryptUnprotectMemory | back to summary |
|---|---|
| public static final long CryptUnprotectMemory Function address. | |
| Functions | back to summary |
|---|---|
| private Functions() | |