Crate botan

Source
Expand description

A wrapper for the Botan cryptography library

Structs§

BlockCipher
A raw block cipher interface (ie ECB mode)
CRL
X.509 certificate revocation list
Certificate
X.509 certificate
Cipher
A symmetric cipher
Decryptor
An object that can perform public key decryption
Encryptor
An object that performs public key encryption
Error
The library error type
FPE
Represents an instance of format preserving encryption
HOTP
Generate or check HOTP tokens
HashFunction
A hash function object
KeyAgreement
An object that performs key agreement
KeySpec
Specifies valid keylengths for symmetric ciphers/MACs
MPI
A big integer type
MsgAuthCode
Message authentication code
Privkey
A private key object
Pubkey
A public key object
RandomNumberGenerator
A cryptographic random number generator
Signer
An object that can generate signatures
TOTP
Generate or check TOTP tokens
Verifier
An object that can perform public key signature verification
Version
Information about the library version

Enums§

CertUsage
Indicates if the certificate key is allowed for a particular usage
CertValidationStatus
Represents result of cert validation
CipherDirection
Which direction the cipher processes in
ErrorType
Possible error categories

Functions§

base64_decode
Base64 decode some data
base64_encode
Base64 encode some data
bcrypt_hash
Produce a bcrypt password hash
bcrypt_verify
Verify a bcrypt password hash
const_time_compare
Const time comparison
derive_key_from_password
Password based key derivation function
derive_key_from_password_timed
Password based key derivation function, timed variant
hex_decode
Hex decode some data
hex_encode
Hex encode some data
kdf
Key derivation function
pbkdf
Password based key derivation function
pkcs_hash_id
Return the identifier used for PKCS1 v1.5 signatures for the specified hash
rfc3394_key_unwrap
Unwrap a key encrypted using RFC3394’s AES key wrap algorithm
rfc3394_key_wrap
Wrap a key using RFC 3394’s AES key wrap algorithm.
scrub_mem
Securely zeroize memory
scrypt
Scrypt key derivation

Type Aliases§

Result
The result of calling an operation on the library