Windows API category
Crypto
Encryption is normal in browsers, installers, VPN clients and games. Suspicion rises with mass file I/O, random-looking extensions, key import from embedded blobs or use of legacy CryptoAPI in unexpected binaries.
Hashing, encryption, key handling and certificate stores (CryptoAPI, CNG). This category contains 69 APIs.
Open Crypto in the interactive atlasCrypto APIs
Last reviewed or generated: .
-
BCryptCloseAlgorithmProvider
Closes a CNG algorithm provider handle.
-
BCryptCreateHash
Creates a CNG hash object.
-
BCryptDecrypt
Decrypts a buffer with a CNG symmetric key.
-
BCryptDeriveKey
Derives a key from a secret agreement.
-
BCryptDestroyHash
Destroys a CNG hash object.
-
BCryptDestroyKey
Destroys a CNG key object.
-
BCryptEncrypt
Encrypts a buffer with a CNG symmetric key.
-
BCryptExportKey
Exports a CNG key to a blob.
-
BCryptFinishHash
Completes a hash and returns the digest.
-
BCryptGenerateKeyPair
Generates a public/private key pair with CNG.
-
BCryptGenerateSymmetricKey
Creates a symmetric key object from a secret value.
-
BCryptGenRandom
Generates cryptographically secure random bytes through CNG.
-
BCryptGetProperty
Reads a property of a CNG object.
-
BCryptHash
One-shot hashing of a buffer with a chosen algorithm.
-
BCryptHashData
Hashes a block of data.
-
BCryptImportKey
Imports a symmetric key from a blob.
-
BCryptImportKeyPair
Imports a CNG public/private key pair.
-
BCryptKeyDerivation
Performs key derivation with a CNG pseudorandom function.
-
BCryptOpenAlgorithmProvider
Opens a CNG algorithm provider such as AES or SHA-256.
-
BCryptSetProperty
Sets a property on a CNG object, such as chaining mode.
-
BCryptSignHash
Signs a hash with a private key.
-
BCryptVerifySignature
Verifies a signature with a public key.
-
CertCloseStore
Closes a certificate store handle.
-
CertEnumCertificatesInStore
Enumerates certificates in a store.
-
CertFindCertificateInStore
Searches a certificate store for a matching certificate.
-
CertFreeCertificateContext
Frees a certificate context.
-
CertGetCertificateContextProperty
Reads a property of a certificate, such as its private key association.
-
CertOpenStore
Opens a certificate store such as the user or machine MY store.
-
CertOpenSystemStoreW
Opens a predefined system certificate store.
-
CryptAcquireContextW
Acquires a handle to a cryptographic service provider and key container.
-
CryptBinaryToStringW
Encodes binary data as Base64 or hex text.
-
CryptCreateHash
Creates a hashing object for a given algorithm.
-
CryptDecrypt
Decrypts data with a symmetric key.
-
CryptDeriveKey
Derives a session key from a hash value.
-
CryptDestroyHash
Destroys a hash object.
-
CryptDestroyKey
Destroys a cryptographic key handle.
-
CryptEncrypt
Encrypts data with a symmetric key, the workhorse of file encryption.
-
CryptEnumProvidersW
Enumerates available cryptographic service providers.
-
CryptExportKey
Exports a key or key pair as an opaque blob.
-
CryptGenKey
Generates a random symmetric or asymmetric key.
-
CryptGenRandom
Fills a buffer with cryptographically strong random bytes.
-
CryptGetHashParam
Retrieves a parameter of a hash object such as the digest.
-
CryptGetKeyParam
Retrieves parameters of a key, such as the IV or key length.
-
CryptGetProvParam
Retrieves provider parameters such as container names.
-
CryptHashData
Adds data to a hash object.
-
CryptImportKey
Imports a key blob into a cryptographic provider and returns a key handle.
-
CryptMsgClose
Closes a cryptographic message handle.
-
CryptMsgOpenToEncode
Opens a message for encoding, used for signed or enveloped CMS data.
-
CryptMsgUpdate
Feeds data into an open cryptographic message.
-
CryptProtectData
Encrypts data with a key tied to the current user or machine.
-
CryptQueryObject
Identifies the type and content of an encoded PKCS message.
-
CryptReleaseContext
Releases a cryptographic provider context.
-
CryptSetKeyParam
Sets key parameters such as the initialisation vector or padding.
-
CryptSignHashW
Signs a hash value with a private key.
-
CryptStringToBinaryW
Decodes Base64 or hex text into binary data.
-
CryptUnprotectData
Decrypts a DPAPI-protected data blob using the current user master key, or the machine scope when CRYPTPROTECT_LOCAL_MACHINE is specified.
-
CryptVerifySignatureW
Verifies a signature against a hash and public key.
-
NCryptCreatePersistedKey
Creates a key that is stored by the provider and persists across reboots.
-
NCryptDecrypt
Decrypts data with a CNG key storage key.
-
NCryptDeleteKey
Deletes a persisted key.
-
NCryptEncrypt
Encrypts data with a CNG key storage key.
-
NCryptEnumKeys
Enumerates keys stored by a provider.
-
NCryptFreeObject
Frees a CNG key storage object.
-
NCryptOpenKey
Opens a persisted key by name.
-
NCryptOpenStorageProvider
Opens a key storage provider such as the Microsoft Software Key Storage Provider.
-
NCryptSignHash
Signs a hash using a persisted key.
-
NCryptVerifySignature
Verifies a signature using a persisted public key.
-
PFXExportCertStoreEx
Exports certificates and private keys from a store into a PFX blob.
-
PFXImportCertStore
Imports an encrypted PFX/PKCS#12 blob and its private keys.