Crate commoncrypto_sys [−] [src]
Low-level bindings to OSX/macOS/iOS's CommonCrypto
library.
Structs
CCDigestCtx |
Context used in |
CC_MD5_CTX |
Struct used to generate MD5 hashes. |
CC_SHA256_CTX |
Struct used to generate SHA2 hashes with the given bits. |
CC_SHA512_CTX |
Struct used to generate SHA2 hashes with the given bits. |
CC_SHA_CTX |
Struct used to generate SHA1 hashes. |
Enums
CCDigestAlgorithm |
Digest algorithm used in |
Constants
MD5_DIGEST_LENGTH |
Number of bytes for an MD5 hash. |
SHA1_DIGEST_LENGTH |
Number of bytes for an SHA1 hash. |
SHA256_DIGEST_LENGTH |
Number of bytes for an SHA256 hash. |
SHA384_DIGEST_LENGTH |
Number of bytes for an SHA384 hash. |
SHA512_DIGEST_LENGTH |
Number of bytes for an SHA512 hash. |
Functions
CCDigest |
Generic digest hasher. |
CCDigestCreate |
Allocate and initialize a |
CCDigestDestroy |
Clear and free a |
CCDigestFinal |
Conclude digest operations and produce the digest output. Returns |
CCDigestGetBlockSize |
Provides the block size of the digest algorithm. Returns |
CCDigestGetBlockSizeFromRef |
Provides the block size of the digest algorithm. Returns |
CCDigestGetDigest |
Produce the digest output result for the bytes currently processed. Returns |
CCDigestGetOutputSize |
Provides the digest output size of the digest algorithm. Returns |
CCDigestGetOutputSizeFromRef |
Provides the digest output size of the digest algorithm. Returns |
CCDigestReset |
Clear and re-initialize a |
CCDigestUpdate |
Continue to digest data. Returns |
CC_MD5_Final |
Generates MD5 hash. See |
CC_MD5_Init |
Initializes MD5 hasher. See |
CC_MD5_Update |
Appends data to be hashed. See |
CC_SHA1_Final |
Generates SHA1 hash. See |
CC_SHA1_Init |
Initializes SHA1 hasher. See |
CC_SHA1_Update |
Appends data to be hashed. See |
CC_SHA256_Final |
Generates SHA256 hash. See |
CC_SHA256_Init |
Initializes SHA256 hasher. See |
CC_SHA256_Update |
Appends data to be hashed. See |
CC_SHA384_Final |
Generates SHA384 hash. See |
CC_SHA384_Init |
Initializes SHA384 hasher. See |
CC_SHA384_Update |
Appends data to be hashed. See |
CC_SHA512_Final |
Generates SHA512 hash. See |
CC_SHA512_Init |
Initializes SHA512 hasher. See |
CC_SHA512_Update |
Appends data to be hashed. See |