Expand description
Raw FFI bindings to AOCL-Cryptography (ALCP).
For a safe, idiomatic API see aocl-crypto.
Re-exports§
pub use self::_alc_error_generic as alc_error_generic_t;pub use self::alc_key_len as alc_key_len_t;pub use self::_alc_cipher_mode as alc_cipher_mode_t;pub use self::_alc_digest_len as alc_digest_len_t;pub use self::alc_digest_block_size as alc_digest_block_size_t;pub use self::_alc_digest_mode as alc_digest_mode_t;pub use self::_alc_mac_type as alc_mac_type_t;pub use self::_alc_rng_algo_flags as alc_rng_algo_flags_t;pub use self::_alc_drbg_type as alc_drbg_type_t;
Structs§
- BigNum
- _alc_
cipher_ handle - _alc_
cipher_ state - _alc_
cmac_ info - _alc_
ctr_ drbg_ info - _alc_
custom_ rng_ info - _alc_
digest_ handle - _alc_
drbg_ info_ t - _alc_
ec_ handle - _alc_
hmac_ drbg_ info - _alc_
hmac_ info - _alc_
rng_ info - _alc_
rng_ source_ info - _alc_
rsa_ handle - _alc_
version - alc_
drbg_ handle - alc_
ec_ info - alc_
mac_ handle - alc_
rng_ handle_ t
Constants§
- Digest
Index_ MD_ 5 - Digest
Index_ MD_ 5_ SHA_ 1 - Digest
Index_ SHA_ 1 - Digest
Index_ SHA_ 224 - Digest
Index_ SHA_ 256 - Digest
Index_ SHA_ 384 - Digest
Index_ SHA_ 512 - Digest
Index_ SHA_ 512_ 224 - Digest
Index_ SHA_ 512_ 256 - Digest
Index_ SHA_ UNKNOWN - _ALCP_
ALCP_ H_ - _ALCP_
CIPHER_ AEAD_ H_ - _ALCP_
CIPHER_ H_ - _ALCP_
CIPHER_ SEGMENT_ H_ - _ALCP_
DIGEST_ H - _ALCP_
DRBG_ H_ - _ALCP_
ECDH_ H_ - _ALCP_
EC_ H_ - _ALCP_
ERROR_ H_ - _ALCP_
KEY_ H_ - _ALCP_
MACROS_ H_ - _ALCP_
MAC_ H_ - _ALCP_
RNG_ H_ - _ALCP_
RSA_ H_ - _ALCP_
TYPES_ H_ - _VERSION_
H_ - _alc_
cipher_ mode_ ALC_ AES_ MODE_ CBC - _alc_
cipher_ mode_ ALC_ AES_ MODE_ CCM - _alc_
cipher_ mode_ ALC_ AES_ MODE_ CFB - _alc_
cipher_ mode_ ALC_ AES_ MODE_ CTR - _alc_
cipher_ mode_ ALC_ AES_ MODE_ ECB - _alc_
cipher_ mode_ ALC_ AES_ MODE_ GCM - _alc_
cipher_ mode_ ALC_ AES_ MODE_ MAX - _alc_
cipher_ mode_ ALC_ AES_ MODE_ NONE - _alc_
cipher_ mode_ ALC_ AES_ MODE_ OFB - _alc_
cipher_ mode_ ALC_ AES_ MODE_ SIV - _alc_
cipher_ mode_ ALC_ AES_ MODE_ XTS - _alc_
cipher_ mode_ ALC_ CHACH A20 - _alc_
cipher_ mode_ ALC_ CHACH A20_ POLY1305 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 128 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 160 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 192 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 224 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 256 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 288 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 384 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ 512 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ CUSTOM_ SHAKE_ 128 - _alc_
digest_ len_ ALC_ DIGEST_ LEN_ CUSTOM_ SHAKE_ 256 - _alc_
digest_ mode_ ALC_ MD5 - _alc_
digest_ mode_ ALC_ MD5_ SHA1 - _alc_
digest_ mode_ ALC_ SHA1 - _alc_
digest_ mode_ ALC_ SHA2_ 224 - _alc_
digest_ mode_ ALC_ SHA2_ 256 - _alc_
digest_ mode_ ALC_ SHA2_ 384 - _alc_
digest_ mode_ ALC_ SHA2_ 512 - _alc_
digest_ mode_ ALC_ SHA2_ 512_ 224 - _alc_
digest_ mode_ ALC_ SHA2_ 512_ 256 - _alc_
digest_ mode_ ALC_ SHA3_ 224 - _alc_
digest_ mode_ ALC_ SHA3_ 256 - _alc_
digest_ mode_ ALC_ SHA3_ 384 - _alc_
digest_ mode_ ALC_ SHA3_ 512 - _alc_
digest_ mode_ ALC_ SHAKE_ 128 - _alc_
digest_ mode_ ALC_ SHAKE_ 256 - _alc_
drbg_ type_ ALC_ DRBG_ CTR - _alc_
drbg_ type_ ALC_ DRBG_ HMAC - _alc_
error_ generic_ ALC_ ERROR_ BAD_ STATE - _alc_
error_ generic_ ALC_ ERROR_ DUPLICATE_ KEY - _alc_
error_ generic_ ALC_ ERROR_ EXISTS - _alc_
error_ generic_ ALC_ ERROR_ GENERIC - _alc_
error_ generic_ ALC_ ERROR_ HARDWARE_ FAILURE - _alc_
error_ generic_ ALC_ ERROR_ INVALID_ ARG - _alc_
error_ generic_ ALC_ ERROR_ INVALID_ DATA - _alc_
error_ generic_ ALC_ ERROR_ INVALID_ SIZE - _alc_
error_ generic_ ALC_ ERROR_ NONE - _alc_
error_ generic_ ALC_ ERROR_ NOT_ EXISTS - _alc_
error_ generic_ ALC_ ERROR_ NOT_ PERMITTED - _alc_
error_ generic_ ALC_ ERROR_ NOT_ SUPPORTED - _alc_
error_ generic_ ALC_ ERROR_ NO_ ENTROPY - _alc_
error_ generic_ ALC_ ERROR_ NO_ MEMORY - _alc_
error_ generic_ ALC_ ERROR_ TAG_ MISMATCH - _alc_
mac_ type_ ALC_ MAC_ CMAC - _alc_
mac_ type_ ALC_ MAC_ HMAC - _alc_
mac_ type_ ALC_ MAC_ POLY1305 - _alc_
rng_ algo_ flags_ ALC_ RNG_ FLAG_ DUMMY - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ MD5 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ MD5_ SHA1 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA1 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA2_ 256 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA2_ 512 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA3_ 224 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA3_ 256 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA3_ 384 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHA3_ 512 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHAKE_ 128 - alc_
digest_ block_ size_ ALC_ DIGEST_ BLOCK_ SIZE_ SHAKE_ 256 - alc_
ec_ curve_ id_ ALCP_ EC_ CURV E25519 - alc_
ec_ curve_ id_ ALCP_ EC_ MAX - alc_
ec_ curve_ id_ ALCP_ EC_ SECP256 R1 - alc_
ec_ curve_ type_ ALCP_ EC_ CURVE_ TYPE_ MAX - alc_
ec_ curve_ type_ ALCP_ EC_ CURVE_ TYPE_ MONTGOMERY - alc_
ec_ curve_ type_ ALCP_ EC_ CURVE_ TYPE_ SHORT_ WEIERSTRASS - alc_
ec_ point_ format_ id_ ALCP_ EC_ POINT_ FORMAT_ COMPRESSED - alc_
ec_ point_ format_ id_ ALCP_ EC_ POINT_ FORMAT_ UNCOMPRESSED - alc_
key_ len_ ALC_ KEY_ LEN_ 128 - alc_
key_ len_ ALC_ KEY_ LEN_ 192 - alc_
key_ len_ ALC_ KEY_ LEN_ 256 - alc_
key_ len_ ALC_ KEY_ LEN_ 384 - alc_
key_ len_ ALC_ KEY_ LEN_ 512 - alc_
key_ len_ ALC_ KEY_ LEN_ 1024 - alc_
key_ len_ ALC_ KEY_ LEN_ 2048 - alc_
key_ len_ ALC_ KEY_ LEN_ 4096 - alc_
key_ len_ ALC_ KEY_ LEN_ CUSTOM - alc_
key_ len_ ALC_ KEY_ LEN_ DEFAULT - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ BERNOULLI - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ BETA - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ BINOMIAL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ CAUCHY - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ CHISQUARE - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ DIRICHLET - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ EXPONENTIAL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ GAMMA - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ GAUSSIAN - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ GEOMETRIC - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ GUMBEL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ HYPERGEOMETRIC - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ LAPLACE - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ LOGISTIC - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ LOGNORMAL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ MAX - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ MULTINOMIAL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ NEGBINOMIAL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ PARETO - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ POISSON - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ RAYLEIGH - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ UNIFORM - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ UNIFORM_ BITS - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ UNKNOWN - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ VONMISES - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ WALD - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ WEIBULL - alc_
rng_ distrib_ t_ ALC_ RNG_ DISTRIB_ ZIPF - alc_
rng_ source_ t_ ALC_ RNG_ SOURCE_ ALGO - alc_
rng_ source_ t_ ALC_ RNG_ SOURCE_ ARCH - alc_
rng_ source_ t_ ALC_ RNG_ SOURCE_ DEV - alc_
rng_ source_ t_ ALC_ RNG_ SOURCE_ MAX - alc_
rng_ source_ t_ ALC_ RNG_ SOURCE_ OS - alc_
rng_ type_ t_ ALC_ RNG_ TYPE_ CONTINUOUS - alc_
rng_ type_ t_ ALC_ RNG_ TYPE_ DISCRETE - alc_
rng_ type_ t_ ALC_ RNG_ TYPE_ INVALID - alc_
rng_ type_ t_ ALC_ RNG_ TYPE_ MAX - alc_
rng_ type_ t_ ALC_ RNG_ TYPE_ SIMPLE - alc_
rsa_ key_ size_ KEY_ SIZE_ 1024 - alc_
rsa_ key_ size_ KEY_ SIZE_ 2048 - alc_
rsa_ key_ size_ KEY_ SIZE_ UNSUPPORTED - alc_
rsa_ padding_ ALCP_ RSA_ PADDING_ NONE - alc_
rsa_ padding_ ALCP_ RSA_ PADDING_ OAEP - bool__
false_ - bool__
true_
Statics§
Functions§
- alcp_
cipher_ ⚠aead_ context_ size - alcp_
cipher_ ⚠aead_ decrypt - alcp_
cipher_ ⚠aead_ encrypt - alcp_
cipher_ ⚠aead_ finish - alcp_
cipher_ ⚠aead_ get_ tag - alcp_
cipher_ ⚠aead_ init - alcp_
cipher_ ⚠aead_ request - alcp_
cipher_ ⚠aead_ request_ with_ extState - alcp_
cipher_ ⚠aead_ set_ aad - alcp_
cipher_ ⚠aead_ set_ ccm_ plaintext_ length - alcp_
cipher_ ⚠aead_ set_ tag_ length - alcp_
cipher_ ⚠context_ size - alcp_
cipher_ ⚠decrypt - alcp_
cipher_ ⚠encrypt - alcp_
cipher_ ⚠finish - alcp_
cipher_ ⚠init - alcp_
cipher_ ⚠request - alcp_
cipher_ ⚠segment_ decrypt_ xts - alcp_
cipher_ ⚠segment_ encrypt_ xts - alcp_
cipher_ ⚠segment_ finish - alcp_
cipher_ ⚠segment_ init - alcp_
cipher_ ⚠segment_ request - alcp_
digest_ ⚠context_ copy - alcp_
digest_ ⚠context_ size - alcp_
digest_ ⚠finalize - alcp_
digest_ ⚠finish - alcp_
digest_ ⚠init - alcp_
digest_ ⚠request - alcp_
digest_ ⚠shake_ squeeze - alcp_
digest_ ⚠update - alcp_
drbg_ ⚠context_ size - alcp_
drbg_ ⚠finish - alcp_
drbg_ ⚠initialize - alcp_
drbg_ ⚠randomize - alcp_
drbg_ ⚠request - alcp_
drbg_ ⚠supported - alcp_
ec_ ⚠context_ size - alcp_
ec_ ⚠finish - alcp_
ec_ ⚠get_ publickey - alcp_
ec_ ⚠get_ secretkey - alcp_
ec_ ⚠request - alcp_
ec_ ⚠set_ privatekey - alcp_
ec_ ⚠supported - alcp_
get_ ⚠build_ env - alcp_
get_ ⚠version - alcp_
is_ ⚠error - alcp_
mac_ ⚠context_ copy - alcp_
mac_ ⚠context_ size - alcp_
mac_ ⚠finalize - alcp_
mac_ ⚠finish - alcp_
mac_ ⚠init - alcp_
mac_ ⚠request - alcp_
mac_ ⚠reset - alcp_
mac_ ⚠update - alcp_
rng_ ⚠context_ size - alcp_
rng_ ⚠finish - alcp_
rng_ ⚠gen_ random - alcp_
rng_ ⚠init - alcp_
rng_ ⚠request - alcp_
rng_ ⚠seed - alcp_
rng_ ⚠supported - alcp_
rsa_ ⚠add_ digest - alcp_
rsa_ ⚠add_ mgf - alcp_
rsa_ ⚠context_ copy - alcp_
rsa_ ⚠context_ size - alcp_
rsa_ ⚠finish - alcp_
rsa_ ⚠get_ digest_ info_ index - alcp_
rsa_ ⚠get_ digest_ info_ size - alcp_
rsa_ ⚠get_ key_ size - alcp_
rsa_ ⚠privatekey_ decrypt - alcp_
rsa_ ⚠privatekey_ decrypt_ oaep - alcp_
rsa_ ⚠privatekey_ decrypt_ pkcs1v15 - alcp_
rsa_ ⚠privatekey_ sign_ hash_ pkcs1v15 - alcp_
rsa_ ⚠privatekey_ sign_ hash_ pss - alcp_
rsa_ ⚠privatekey_ sign_ pkcs1v15 - alcp_
rsa_ ⚠privatekey_ sign_ pss - alcp_
rsa_ ⚠publickey_ encrypt - alcp_
rsa_ ⚠publickey_ encrypt_ oaep - alcp_
rsa_ ⚠publickey_ encrypt_ pkcs1v15 - alcp_
rsa_ ⚠publickey_ verify_ hash_ pkcs1v15 - alcp_
rsa_ ⚠publickey_ verify_ hash_ pss - alcp_
rsa_ ⚠publickey_ verify_ pkcs1v15 - alcp_
rsa_ ⚠publickey_ verify_ pss - alcp_
rsa_ ⚠request - alcp_
rsa_ ⚠set_ bignum_ private_ key - alcp_
rsa_ ⚠set_ bignum_ public_ key - alcp_
rsa_ ⚠set_ privatekey - alcp_
rsa_ ⚠set_ publickey
Type Aliases§
- AlcDigest
Handle - AlcDigest
HandleP - AlcDrbg
Handle - AlcEc
Handle - AlcEc
HandleP - AlcHandleP
- AlcMac
Handle - AlcRng
Handle - AlcRng
HandleP - Digest
Index - Int8
- Int8P
- Int16
- Int32
- Int64
- Int16P
- Int32P
- Int64P
- Uint8
- Uint8P
- Uint16
- Uint32
- Uint64
- Uint16P
- Uint32P
- Uint64P
- VoidP
- _alc_
cipher_ mode - _alc_
digest_ len - _alc_
digest_ mode - _alc_
drbg_ type - _alc_
error_ generic - _alc_
mac_ type - _alc_
rng_ algo_ flags - alc_
cipher_ context_ p - alc_
cipher_ context_ t - alc_
cipher_ handle_ p - alc_
cipher_ handle_ t - alc_
cipher_ state_ t - alc_
cmac_ info_ p - alc_
cmac_ info_ t - alc_
ctr_ drbg_ info_ p - alc_
ctr_ drbg_ info_ t - alc_
custom_ rng_ info_ p - alc_
custom_ rng_ info_ t - alc_
digest_ block_ size - alc_
digest_ context_ p - alc_
digest_ context_ t - alc_
digest_ handle_ p - alc_
digest_ handle_ t - alc_
diget_ mode_ p - alc_
drbg_ context_ p - alc_
drbg_ context_ t - alc_
drbg_ handle_ p - alc_
drbg_ handle_ t - alc_
drbg_ info_ p - alc_
drbg_ info_ t - alc_
ec_ context_ p - alc_
ec_ context_ t - alc_
ec_ curve_ id - alc_
ec_ curve_ type - alc_
ec_ handle_ p - alc_
ec_ handle_ t - alc_
ec_ info_ p - alc_
ec_ info_ t - alc_
ec_ point_ format_ id - alc_
error_ t - alc_
hmac_ drbg_ info_ p - alc_
hmac_ drbg_ info_ t - alc_
hmac_ info_ p - alc_
hmac_ info_ t - alc_
key_ len - alc_
mac_ context_ p - alc_
mac_ context_ t - alc_
mac_ handle_ p - alc_
mac_ handle_ t - alc_
mac_ info_ t - alc_
rng_ distrib_ t - alc_
rng_ handle_ p - alc_
rng_ info_ p - alc_
rng_ info_ t - alc_
rng_ source_ info_ p - alc_
rng_ source_ info_ t - alc_
rng_ source_ t - alc_
rng_ type_ t - alc_
rsa_ context_ p - alc_
rsa_ context_ t - alc_
rsa_ handle_ p - alc_
rsa_ handle_ t - alc_
rsa_ key_ size - alc_
rsa_ padding - alc_
version_ t - bool_