id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
crypto_cipher_blocksize(9) | NAME crypto_cipher_blocksize - obtain block size for cipher
SYNOPSIS unsigned int crypto_cipher_blocksize (struct crypto_cipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The block size for the single block cipher referenced with the cipher handle tfm is returned. The caller may use that information to ... |
crypto_cipher_decrypt_one(9) | NAME crypto_cipher_decrypt_one - decrypt one block of ciphertext
SYNOPSIS void crypto_cipher_decrypt_one (struct crypto_cipher *tfm , u8 *dst , const u8 *src );
ARGUMENTS tfm cipher handle
dst points to the buffer that will be filled with the plaintext
src buffer holding the ci... |
crypto_cipher_encrypt_one(9) | NAME crypto_cipher_encrypt_one - encrypt one block of plaintext
SYNOPSIS void crypto_cipher_encrypt_one (struct crypto_cipher *tfm , u8 *dst , const u8 *src );
ARGUMENTS tfm cipher handle
dst points to the buffer that will be filled with the ciphertext
src buffer holding the pl... |
crypto_cipher_setkey(9) | NAME crypto_cipher_setkey - set key for cipher
SYNOPSIS int crypto_cipher_setkey (struct crypto_cipher *tfm , const u8 *key , unsigned int keylen );
ARGUMENTS tfm cipher handle
key buffer holding the key
keylen length of the key in bytes
DESCRIPTION The caller provided key is se... |
crypto_des3_ede_verify_key(9) | NAME crypto_des3_ede_verify_key - Check whether a DES3-EDE key is weak
SYNOPSIS int crypto_des3_ede_verify_key (struct crypto_tfm *tfm , const u8 *key );
ARGUMENTS tfm the crypto algo
key the key buffer
DESCRIPTION Returns -EINVAL if the key is weak and the crypto TFM does not permit weak ke... |
crypto_des_verify_key(9) | NAME crypto_des_verify_key - Check whether a DES key is weak
SYNOPSIS int crypto_des_verify_key (struct crypto_tfm *tfm , const u8 *key );
ARGUMENTS tfm the crypto algo
key the key buffer
DESCRIPTION Returns -EINVAL if the key is weak and the crypto TFM does not permit weak keys. Otherwise, 0... |
crypto_dh_decode_key(9) | NAME crypto_dh_decode_key - decode a private key
SYNOPSIS int crypto_dh_decode_key (const char *buf , unsigned int len , struct dh *params );
ARGUMENTS buf Buffer holding a packet key that should be decoded
len Length of the packet private key buffer
params Buffer allocated by the... |
crypto_dh_encode_key(9) | NAME crypto_dh_encode_key - encode the private key
SYNOPSIS int crypto_dh_encode_key (char *buf , unsigned int len , const struct dh *params );
ARGUMENTS buf Buffer allocated by the caller to hold the packet DH private key. The buffer should be at least crypto_dh_key_len bytes in size.
len Len... |
crypto_dh_key_len(9) | NAME crypto_dh_key_len - Obtain the size of the private DH key
SYNOPSIS unsigned int crypto_dh_key_len (const struct dh *params );
ARGUMENTS params private DH key
DESCRIPTION This function returns the packet DH key size. A caller can use that with the provided DH private key reference to obtain the required mem... |
crypto_drop_kpp(9) | NAME crypto_drop_kpp - Release a spawn previously bound via crypto_grab_kpp().
SYNOPSIS void crypto_drop_kpp (struct crypto_kpp_spawn *spawn );
ARGUMENTS spawn The spawn to release.
SEE ALSO Kernel file ./include/crypto/internal/kpp.h struct kpp_instance(9), struct crypto_kpp_spawn(9), kpp_crypto_instance(9... |
crypto_ecdh_decode_key(9) | NAME crypto_ecdh_decode_key - decode a private key
SYNOPSIS int crypto_ecdh_decode_key (const char *buf , unsigned int len , struct ecdh *p );
ARGUMENTS buf Buffer holding a packet key that should be decoded
len Length of the packet private key buffer
p Buffer allocated by th... |
crypto_ecdh_encode_key(9) | NAME crypto_ecdh_encode_key - encode the private key
SYNOPSIS int crypto_ecdh_encode_key (char *buf , unsigned int len , const struct ecdh *p );
ARGUMENTS buf Buffer allocated by the caller to hold the packet ECDH private key. The buffer should be at least crypto_ecdh_key_len bytes in size.
len ... |
crypto_ecdh_key_len(9) | NAME crypto_ecdh_key_len - Obtain the size of the private ECDH key
SYNOPSIS unsigned int crypto_ecdh_key_len (const struct ecdh *params );
ARGUMENTS params private ECDH key
DESCRIPTION This function returns the packet ECDH key size. A caller can use that with the provided ECDH private key reference to obtain th... |
crypto_ecdh_shared_secret(9) | NAME crypto_ecdh_shared_secret - Compute a shared secret
SYNOPSIS int crypto_ecdh_shared_secret (unsigned int curve_id , unsigned int ndigits , const u64 *private_key , const u64 *public_key , u64 *secret );
ARGUMENTS curve_id id representing the curve to use
ndigits curve's number of digits
pr... |
crypto_engine_alloc_init(9) | NAME crypto_engine_alloc_init - allocate crypto hardware engine structure and initialize it.
SYNOPSIS struct crypto_engine * crypto_engine_alloc_init (struct device *dev , bool rt );
ARGUMENTS dev the device attached with one hardware engine
rt whether this queue is set to run as a realtime t... |
crypto_engine_alloc_init_and_set(9) | NAME crypto_engine_alloc_init_and_set - allocate crypto hardware engine structure and initialize it by setting the maximum number of entries in the software crypto-engine queue.
SYNOPSIS struct crypto_engine * crypto_engine_alloc_init_and_set (struct device *dev , bool retry_support , bool rt , int qlen );
ARGUMENTS ... |
crypto_engine_exit(9) | NAME crypto_engine_exit - free the resources of hardware engine when exit
SYNOPSIS void crypto_engine_exit (struct crypto_engine *engine );
ARGUMENTS engine the hardware engine need to be freed
SEE ALSO Kernel file ./crypto/crypto_engine.c crypto_finalize_request(9), crypto_pump_requests(9), crypto_transfer_re... |
crypto_engine_start(9) | NAME crypto_engine_start - start the hardware engine
SYNOPSIS int crypto_engine_start (struct crypto_engine *engine );
ARGUMENTS engine the hardware engine need to be started
DESCRIPTION Return 0 on success, else on fail.
SEE ALSO Kernel file ./crypto/crypto_engine.c crypto_finalize_request(9), crypto_pum... |
crypto_engine_stop(9) | NAME crypto_engine_stop - stop the hardware engine
SYNOPSIS int crypto_engine_stop (struct crypto_engine *engine );
ARGUMENTS engine the hardware engine need to be stopped
DESCRIPTION Return 0 on success, else on fail.
SEE ALSO Kernel file ./crypto/crypto_engine.c crypto_finalize_request(9), crypto_pump_reque... |
crypto_finalize_aead_request(9) | NAME crypto_finalize_aead_request - finalize one aead_request if the request is done
SYNOPSIS void crypto_finalize_aead_request (struct crypto_engine *engine , struct aead_request *req , int err );
ARGUMENTS engine the hardware engine
req the request need to be finalized
err error... |
crypto_finalize_akcipher_request(9) | NAME crypto_finalize_akcipher_request - finalize one akcipher_request if the request is done
SYNOPSIS void crypto_finalize_akcipher_request (struct crypto_engine *engine , struct akcipher_request *req , int err );
ARGUMENTS engine the hardware engine
req the request need to be finalized
e... |
crypto_finalize_hash_request(9) | NAME crypto_finalize_hash_request - finalize one ahash_request if the request is done
SYNOPSIS void crypto_finalize_hash_request (struct crypto_engine *engine , struct ahash_request *req , int err );
ARGUMENTS engine the hardware engine
req the request need to be finalized
err err... |
crypto_finalize_kpp_request(9) | NAME crypto_finalize_kpp_request - finalize one kpp_request if the request is done
SYNOPSIS void crypto_finalize_kpp_request (struct crypto_engine *engine , struct kpp_request *req , int err );
ARGUMENTS engine the hardware engine
req the request need to be finalized
err error num... |
crypto_finalize_request(9) | NAME crypto_finalize_request - finalize one request if the request is done
SYNOPSIS void crypto_finalize_request (struct crypto_engine *engine , struct crypto_async_request *req , int err );
ARGUMENTS engine the hardware engine
req the request need to be finalized
err error number... |
crypto_finalize_skcipher_request(9) | NAME crypto_finalize_skcipher_request - finalize one skcipher_request if the request is done
SYNOPSIS void crypto_finalize_skcipher_request (struct crypto_engine *engine , struct skcipher_request *req , int err );
ARGUMENTS engine the hardware engine
req the request need to be finalized
e... |
crypto_free_acomp(9) | NAME crypto_free_acomp - - free ACOMPRESS tfm handle
SYNOPSIS void crypto_free_acomp (struct crypto_acomp *tfm );
ARGUMENTS tfm ACOMPRESS tfm handle allocated with crypto_alloc_acomp
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/acompress.... |
crypto_free_aead(9) | NAME crypto_free_aead - zeroize and free aead handle
SYNOPSIS void crypto_free_aead (struct crypto_aead *tfm );
ARGUMENTS tfm cipher handle to be freed
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/aead.h Kernel API(9), struct aead_req... |
crypto_free_ahash(9) | NAME crypto_free_ahash - zeroize and free the ahash handle
SYNOPSIS void crypto_free_ahash (struct crypto_ahash *tfm );
ARGUMENTS tfm cipher handle to be freed
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/hash.h Kernel API(9), struct ... |
crypto_free_akcipher(9) | NAME crypto_free_akcipher - free AKCIPHER tfm handle
SYNOPSIS void crypto_free_akcipher (struct crypto_akcipher *tfm );
ARGUMENTS tfm AKCIPHER tfm handle allocated with crypto_alloc_akcipher
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/ak... |
crypto_free_cipher(9) | NAME crypto_free_cipher - zeroize and free the single block cipher handle
SYNOPSIS void crypto_free_cipher (struct crypto_cipher *tfm );
ARGUMENTS tfm cipher handle to be freed
SEE ALSO Kernel file ./include/crypto/internal/cipher.h Kernel API(9), crypto_alloc_cipher(9), crypto_has_cipher(9), crypto_cipher_b... |
crypto_free_context(9) | NAME crypto_free_context - Free crypto context to pool
SYNOPSIS void crypto_free_context (void *ctx );
ARGUMENTS ctx context to free
SEE ALSO Kernel file ./drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_common_sw_init(9), nitrox_common_sw_cleanup(9)
April 2026 ... |
crypto_free_kpp(9) | NAME crypto_free_kpp - free KPP tfm handle
SYNOPSIS void crypto_free_kpp (struct crypto_kpp *tfm );
ARGUMENTS tfm KPP tfm handle allocated with crypto_alloc_kpp
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/kpp.h struct kpp_request(9), ... |
crypto_free_lskcipher(9) | NAME crypto_free_lskcipher - zeroize and free cipher handle
SYNOPSIS void crypto_free_lskcipher (struct crypto_lskcipher *tfm );
ARGUMENTS tfm cipher handle to be freed
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/skcipher.h struct skci... |
crypto_free_rng(9) | NAME crypto_free_rng - zeroize and free RNG handle
SYNOPSIS void crypto_free_rng (struct crypto_rng *tfm );
ARGUMENTS tfm cipher handle to be freed
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/rng.h struct rng_alg(9), Kernel API(9), crypto_... |
crypto_free_shash(9) | NAME crypto_free_shash - zeroize and free the message digest handle
SYNOPSIS void crypto_free_shash (struct crypto_shash *tfm );
ARGUMENTS tfm cipher handle to be freed
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/hash.h Kernel API(9), stru... |
crypto_free_sig(9) | NAME crypto_free_sig - free signature tfm handle
SYNOPSIS void crypto_free_sig (struct crypto_sig *tfm );
ARGUMENTS tfm signature tfm handle allocated with crypto_alloc_sig
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/sig.h struct crypto_... |
crypto_free_skcipher(9) | NAME crypto_free_skcipher - zeroize and free cipher handle
SYNOPSIS void crypto_free_skcipher (struct crypto_skcipher *tfm );
ARGUMENTS tfm cipher handle to be freed
DESCRIPTION If tfm is a NULL or error pointer, this function does nothing.
SEE ALSO Kernel file ./include/crypto/skcipher.h struct skciphe... |
crypto_grab_kpp(9) | NAME crypto_grab_kpp - Look up a KPP algorithm and bind a spawn to it.
SYNOPSIS int crypto_grab_kpp (struct crypto_kpp_spawn *spawn , struct crypto_instance *inst , const char *name , u32 type , u32 mask );
ARGUMENTS spawn The KPP spawn to bind.
inst The template instance owning spawn.
na... |
crypto_has_aead(9) | NAME crypto_has_aead - Search for the availability of an aead.
SYNOPSIS int crypto_has_aead (const char *alg_name , u32 type , u32 mask );
ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the aead
type specifies the type of the aead
mask specifies the mask... |
crypto_has_ahash(9) | NAME crypto_has_ahash - Search for the availability of an ahash.
SYNOPSIS int crypto_has_ahash (const char *alg_name , u32 type , u32 mask );
ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the ahash
type specifies the type of the ahash
mask specifies the... |
crypto_has_cipher(9) | NAME crypto_has_cipher - Search for the availability of a single block cipher
SYNOPSIS int crypto_has_cipher (const char *alg_name , u32 type , u32 mask );
ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the single block cipher
type specifies the type of the cipher
... |
crypto_has_skcipher(9) | NAME crypto_has_skcipher - Search for the availability of an skcipher.
SYNOPSIS int crypto_has_skcipher (const char *alg_name , u32 type , u32 mask );
ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the skcipher
type specifies the type of the skcipher
mask ... |
crypto_kpp_compute_shared_secret(9) | NAME crypto_kpp_compute_shared_secret - Invoke kpp operation
SYNOPSIS int crypto_kpp_compute_shared_secret (struct kpp_request *req );
ARGUMENTS req kpp key request
DESCRIPTION Function invokes the specific kpp operation for computing the shared secret for a given kpp algorithm.
RETURN zero on success; erro... |
crypto_kpp_generate_public_key(9) | NAME crypto_kpp_generate_public_key - Invoke kpp operation
SYNOPSIS int crypto_kpp_generate_public_key (struct kpp_request *req );
ARGUMENTS req kpp key request
DESCRIPTION Function invokes the specific kpp operation for generating the public part for a given kpp algorithm. To generate a private key, the ca... |
crypto_kpp_maxsize(9) | NAME crypto_kpp_maxsize - Get len for output buffer
SYNOPSIS unsigned int crypto_kpp_maxsize (struct crypto_kpp *tfm );
ARGUMENTS tfm KPP tfm handle allocated with crypto_alloc_kpp
DESCRIPTION Function returns the output buffer size required for a given key. Function assumes that the key is already set in... |
crypto_kpp_set_secret(9) | NAME crypto_kpp_set_secret - Invoke kpp operation
SYNOPSIS int crypto_kpp_set_secret (struct crypto_kpp *tfm , const void *buffer , unsigned int len );
ARGUMENTS tfm tfm handle
buffer Buffer holding the packet representation of the private key. The structure of the packet key depends on the pa... |
crypto_krb5_calc_PRFplus(9) | NAME crypto_krb5_calc_PRFplus - Calculate PRF+ [RFC4402]
SYNOPSIS int crypto_krb5_calc_PRFplus (const struct krb5_enctype *krb5 , const struct krb5_buffer *K , unsigned int L , const struct krb5_buffer *S , struct krb5_buffer *result , gfp_t gfp );
ARGUMENTS krb5 The encryption type to use
K ... |
crypto_krb5_decrypt(9) | NAME crypto_krb5_decrypt - Validate and remove Kerberos encryption and integrity.
SYNOPSIS int crypto_krb5_decrypt (const struct krb5_enctype *krb5 , struct crypto_aead *aead , struct scatterlist *sg , unsigned int nr_sg , size_t *_offset , size_t *_len );
ARGUMENTS krb5 The encoding to use.
aead ... |
crypto_krb5_encrypt(9) | NAME crypto_krb5_encrypt - Apply Kerberos encryption and integrity.
SYNOPSIS ssize_t crypto_krb5_encrypt (const struct krb5_enctype *krb5 , struct crypto_aead *aead , struct scatterlist *sg , unsigned int nr_sg , size_t sg_len , size_t data_offset , size_t data_len , bool preconfounded );
ARGUMENTS krb5 The en... |
crypto_krb5_find_enctype(9) | NAME crypto_krb5_find_enctype - Find the handler for a Kerberos5 encryption type
SYNOPSIS const struct krb5_enctype * crypto_krb5_find_enctype (u32 enctype );
ARGUMENTS enctype The standard Kerberos encryption type number
DESCRIPTION Look up a Kerberos encryption type by number. If successful, returns a pointer... |
crypto_krb5_get_mic(9) | NAME crypto_krb5_get_mic - Apply Kerberos integrity checksum.
SYNOPSIS ssize_t crypto_krb5_get_mic (const struct krb5_enctype *krb5 , struct crypto_shash *shash , const struct krb5_buffer *metadata , struct scatterlist *sg , unsigned int nr_sg , size_t sg_len , size_t data_offset , size_t data_len );
ARGUMENTS krb... |
crypto_krb5_how_much_buffer(9) | NAME crypto_krb5_how_much_buffer - Work out how much buffer is required for an amount of data
SYNOPSIS size_t crypto_krb5_how_much_buffer (const struct krb5_enctype *krb5 , enum krb5_crypto_mode mode , size_t data_size , size_t *_offset );
ARGUMENTS krb5 The encoding to use.
mode The mode in whi... |
crypto_krb5_how_much_data(9) | NAME crypto_krb5_how_much_data - Work out how much data can fit in an amount of buffer
SYNOPSIS size_t crypto_krb5_how_much_data (const struct krb5_enctype *krb5 , enum krb5_crypto_mode mode , size_t *_buffer_size , size_t *_offset );
ARGUMENTS krb5 The encoding to use.
mode The mode in which to... |
crypto_krb5_prepare_checksum(9) | NAME crypto_krb5_prepare_checksum - Prepare AEAD crypto object for checksum-mode
SYNOPSIS struct crypto_shash * crypto_krb5_prepare_checksum (const struct krb5_enctype *krb5 , const struct krb5_buffer *TK , u32 usage , gfp_t gfp );
ARGUMENTS krb5 The encoding to use.
TK The transport key to us... |
crypto_krb5_prepare_encryption(9) | NAME crypto_krb5_prepare_encryption - Prepare AEAD crypto object for encryption-mode
SYNOPSIS struct crypto_aead * crypto_krb5_prepare_encryption (const struct krb5_enctype *krb5 , const struct krb5_buffer *TK , u32 usage , gfp_t gfp );
ARGUMENTS krb5 The encoding to use.
TK The transport key ... |
crypto_krb5_verify_mic(9) | NAME crypto_krb5_verify_mic - Validate and remove Kerberos integrity checksum.
SYNOPSIS int crypto_krb5_verify_mic (const struct krb5_enctype *krb5 , struct crypto_shash *shash , const struct krb5_buffer *metadata , struct scatterlist *sg , unsigned int nr_sg , size_t *_offset , size_t *_len );
ARGUMENTS krb5 ... |
crypto_krb5_where_is_the_data(9) | NAME crypto_krb5_where_is_the_data - Find the data in a decrypted message
SYNOPSIS void crypto_krb5_where_is_the_data (const struct krb5_enctype *krb5 , enum krb5_crypto_mode mode , size_t *_offset , size_t *_len );
ARGUMENTS krb5 The encoding to use.
mode Mode of operation
_offset O... |
crypto_krb5enc_extractkeys(9) | NAME crypto_krb5enc_extractkeys - Extract Ke and Ki keys from the key blob.
SYNOPSIS int crypto_krb5enc_extractkeys (struct crypto_authenc_keys *keys , const u8 *key , unsigned int keylen );
ARGUMENTS keys Where to put the key sizes and pointers
key Encoded key material
keylen Amou... |
crypto_lskcipher_blocksize(9) | NAME crypto_lskcipher_blocksize - obtain block size of cipher
SYNOPSIS unsigned int crypto_lskcipher_blocksize (struct crypto_lskcipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The block size for the lskcipher referenced with the cipher handle is returned. The caller may use that information to alloca... |
crypto_lskcipher_chunksize(9) | NAME crypto_lskcipher_chunksize - obtain chunk size
SYNOPSIS unsigned int crypto_lskcipher_chunksize (struct crypto_lskcipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The block size is set to one for ciphers such as CTR. However, you still need to provide incremental updates in multiples of the under... |
crypto_lskcipher_decrypt(9) | NAME crypto_lskcipher_decrypt - decrypt ciphertext
SYNOPSIS int crypto_lskcipher_decrypt (struct crypto_lskcipher *tfm , const u8 *src , u8 *dst , unsigned len , u8 *siv );
ARGUMENTS tfm lskcipher handle
src source buffer
dst destination buffer
len number of byt... |
crypto_lskcipher_encrypt(9) | NAME crypto_lskcipher_encrypt - encrypt plaintext
SYNOPSIS int crypto_lskcipher_encrypt (struct crypto_lskcipher *tfm , const u8 *src , u8 *dst , unsigned len , u8 *siv );
ARGUMENTS tfm lskcipher handle
src source buffer
dst destination buffer
len number of byte... |
crypto_lskcipher_ivsize(9) | NAME crypto_lskcipher_ivsize - obtain IV size
SYNOPSIS unsigned int crypto_lskcipher_ivsize (struct crypto_lskcipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The size of the IV for the lskcipher referenced by the cipher handle is returned. This IV size may be zero if the cipher does not need an IV.
R... |
crypto_lskcipher_setkey(9) | NAME crypto_lskcipher_setkey - set key for cipher
SYNOPSIS int crypto_lskcipher_setkey (struct crypto_lskcipher *tfm , const u8 *key , unsigned int keylen );
ARGUMENTS tfm cipher handle
key buffer holding the key
keylen length of the key in bytes
DESCRIPTION The caller provided... |
crypto_lskcipher_statesize(9) | NAME crypto_lskcipher_statesize - obtain state size
SYNOPSIS unsigned int crypto_lskcipher_statesize (struct crypto_lskcipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION Some algorithms cannot be chained with the IV alone. They carry internal state which must be replicated if data is to be processed inc... |
crypto_memneq(9) | NAME crypto_memneq - Compare two areas of memory without leaking timing information.
SYNOPSIS int crypto_memneq (const void *a , const void *b , size_t size );
ARGUMENTS a One area of memory
b Another area of memory
size The size of the area.
DESCRIPTION Returns 0 when data... |
crypto_pump_requests(9) | NAME crypto_pump_requests - dequeue one request from engine queue to process
SYNOPSIS void crypto_pump_requests (struct crypto_engine *engine , bool in_kthread );
ARGUMENTS engine the hardware engine
in_kthread true if we are in the context of the request pump thread
DESCRIPTION This function checks if... |
crypto_register_acomp(9) | NAME crypto_register_acomp - - Register asynchronous compression algorithm
SYNOPSIS int crypto_register_acomp (struct acomp_alg *alg );
ARGUMENTS alg algorithm definition
DESCRIPTION Function registers an implementation of an asynchronous compression algorithm
RETURN zero on success; error code in case of e... |
crypto_register_akcipher(9) | NAME crypto_register_akcipher - - Register public key algorithm
SYNOPSIS int crypto_register_akcipher (struct akcipher_alg *alg );
ARGUMENTS alg algorithm definition
DESCRIPTION Function registers an implementation of a public key cipher algorithm
RETURN zero on success; error code in case of error
SEE ALS... |
crypto_register_kpp(9) | NAME crypto_register_kpp - - Register key-agreement protocol primitives algorithm
SYNOPSIS int crypto_register_kpp (struct kpp_alg *alg );
ARGUMENTS alg algorithm definition
DESCRIPTION Function registers an implementation of a key-agreement protocol primitive algorithm
RETURN zero on success; error code in... |
crypto_register_scomp(9) | NAME crypto_register_scomp - - Register synchronous compression algorithm
SYNOPSIS int crypto_register_scomp (struct scomp_alg *alg );
ARGUMENTS alg algorithm definition
DESCRIPTION Function registers an implementation of a synchronous compression algorithm
RETURN zero on success; error code in case of erro... |
crypto_register_sig(9) | NAME crypto_register_sig - - Register public key signature algorithm
SYNOPSIS int crypto_register_sig (struct sig_alg *alg );
ARGUMENTS alg algorithm definition
DESCRIPTION Function registers an implementation of a public key signature algorithm
RETURN zero on success; error code in case of error
SEE ALSO ... |
crypto_rng_alg(9) | NAME crypto_rng_alg - obtain 'struct rng_alg' pointer from RNG handle
SYNOPSIS struct rng_alg * crypto_rng_alg (struct crypto_rng *tfm );
ARGUMENTS tfm RNG handle
RETURN Pointer to 'struct rng_alg', derived from tfm RNG handle
SEE ALSO Kernel file ./include/crypto/rng.h struct rng_alg(9), Kernel API(9), cry... |
crypto_rng_generate(9) | NAME crypto_rng_generate - get random number
SYNOPSIS int crypto_rng_generate (struct crypto_rng *tfm , const u8 *src , unsigned int slen , u8 *dst , unsigned int dlen );
ARGUMENTS tfm cipher handle
src Input buffer holding additional data, may be NULL
slen Length of additional ... |
crypto_rng_get_bytes(9) | NAME crypto_rng_get_bytes - get random number
SYNOPSIS int crypto_rng_get_bytes (struct crypto_rng *tfm , u8 *rdata , unsigned int dlen );
ARGUMENTS tfm cipher handle
rdata output buffer holding the random numbers
dlen length of the output buffer
DESCRIPTION This function fills t... |
crypto_rng_reset(9) | NAME crypto_rng_reset - re-initialize the RNG
SYNOPSIS int crypto_rng_reset (struct crypto_rng *tfm , const u8 *seed , unsigned int slen );
ARGUMENTS tfm cipher handle
seed seed input data
slen length of the seed input data
DESCRIPTION The reset function completely re-initializ... |
crypto_rng_seedsize(9) | NAME crypto_rng_seedsize - obtain seed size of RNG
SYNOPSIS int crypto_rng_seedsize (struct crypto_rng *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The function returns the seed size for the random number generator referenced by the cipher handle. This value may be zero if the random number genera... |
crypto_shash_blocksize(9) | NAME crypto_shash_blocksize - obtain block size for cipher
SYNOPSIS unsigned int crypto_shash_blocksize (struct crypto_shash *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The block size for the message digest cipher referenced with the cipher handle is returned.
RETURN block size of cipher
SEE ALSO Kerne... |
crypto_shash_descsize(9) | NAME crypto_shash_descsize - obtain the operational state size
SYNOPSIS unsigned int crypto_shash_descsize (struct crypto_shash *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The size of the operational state the cipher needs during operation is returned for the hash referenced with the cipher handle. T... |
crypto_shash_digest(9) | NAME crypto_shash_digest - calculate message digest for buffer
SYNOPSIS int crypto_shash_digest (struct shash_desc *desc , const u8 *data , unsigned int len , u8 *out );
ARGUMENTS desc see crypto_shash_final
data see crypto_shash_update
len see crypto_shash_update
out ... |
crypto_shash_digestsize(9) | NAME crypto_shash_digestsize - obtain message digest size
SYNOPSIS unsigned int crypto_shash_digestsize (struct crypto_shash *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The size for the message digest created by the message digest cipher referenced with the cipher handle is returned.
RETURN digest size ... |
crypto_shash_export(9) | NAME crypto_shash_export - extract operational state for message digest
SYNOPSIS int crypto_shash_export (struct shash_desc *desc , void *out );
ARGUMENTS desc reference to the operational state handle whose state is exported
out output buffer of sufficient size that can hold the hash state
DE... |
crypto_shash_export_core(9) | NAME crypto_shash_export_core - extract core state for message digest
SYNOPSIS int crypto_shash_export_core (struct shash_desc *desc , void *out );
ARGUMENTS desc reference to the operational state handle whose state is exported
out output buffer of sufficient size that can hold the hash state
... |
crypto_shash_final(9) | NAME crypto_shash_final - calculate message digest
SYNOPSIS int crypto_shash_final (struct shash_desc *desc , u8 *out );
ARGUMENTS desc operational state handle that is already filled with data
out output buffer filled with the message digest
DESCRIPTION Finalize the message digest operation a... |
crypto_shash_finup(9) | NAME crypto_shash_finup - calculate message digest of buffer
SYNOPSIS int crypto_shash_finup (struct shash_desc *desc , const u8 *data , unsigned int len , u8 *out );
ARGUMENTS desc see crypto_shash_final
data see crypto_shash_update
len see crypto_shash_update
out ... |
crypto_shash_import(9) | NAME crypto_shash_import - import operational state
SYNOPSIS int crypto_shash_import (struct shash_desc *desc , const void *in );
ARGUMENTS desc reference to the operational state handle the state imported into
in buffer holding the state
DESCRIPTION This function imports the hash state into ... |
crypto_shash_import_core(9) | NAME crypto_shash_import_core - import core state
SYNOPSIS int crypto_shash_import_core (struct shash_desc *desc , const void *in );
ARGUMENTS desc reference to the operational state handle the state imported into
in buffer holding the state
DESCRIPTION Import the hash state without the parti... |
crypto_shash_init(9) | NAME crypto_shash_init - (re)initialize message digest
SYNOPSIS int crypto_shash_init (struct shash_desc *desc );
ARGUMENTS desc operational state handle that is already filled
DESCRIPTION The call (re-)initializes the message digest referenced by the operational state handle. Any potentially existing state c... |
crypto_shash_setkey(9) | NAME crypto_shash_setkey - set key for message digest
SYNOPSIS int crypto_shash_setkey (struct crypto_shash *tfm , const u8 *key , unsigned int keylen );
ARGUMENTS tfm cipher handle
key buffer holding the key
keylen length of the key in bytes
DESCRIPTION The caller provided key i... |
crypto_shash_tfm_digest(9) | NAME crypto_shash_tfm_digest - calculate message digest for buffer
SYNOPSIS int crypto_shash_tfm_digest (struct crypto_shash *tfm , const u8 *data , unsigned int len , u8 *out );
ARGUMENTS tfm hash transformation object
data see crypto_shash_update
len see crypto_shash_update
... |
crypto_shash_update(9) | NAME crypto_shash_update - add data to message digest for processing
SYNOPSIS int crypto_shash_update (struct shash_desc *desc , const u8 *data , unsigned int len );
ARGUMENTS desc operational state handle that is already initialized
data input data to be added to the message digest
len ... |
crypto_sig_digestsize(9) | NAME crypto_sig_digestsize - Get maximum digest size
SYNOPSIS unsigned int crypto_sig_digestsize (struct crypto_sig *tfm );
ARGUMENTS tfm signature tfm handle allocated with crypto_alloc_sig
DESCRIPTION Function returns the maximum digest size in bytes. Function assumes that the key is already set in the t... |
crypto_sig_keysize(9) | NAME crypto_sig_keysize - Get key size
SYNOPSIS unsigned int crypto_sig_keysize (struct crypto_sig *tfm );
ARGUMENTS tfm signature tfm handle allocated with crypto_alloc_sig
DESCRIPTION Function returns the key size in bits. Function assumes that the key is already set in the transformation. If this functio... |
crypto_sig_maxsize(9) | NAME crypto_sig_maxsize - Get maximum signature size
SYNOPSIS unsigned int crypto_sig_maxsize (struct crypto_sig *tfm );
ARGUMENTS tfm signature tfm handle allocated with crypto_alloc_sig
DESCRIPTION Function returns the maximum signature size in bytes. Function assumes that the key is already set in t... |
crypto_sig_set_privkey(9) | NAME crypto_sig_set_privkey - Invoke set private key operation
SYNOPSIS int crypto_sig_set_privkey (struct crypto_sig *tfm , const void *key , unsigned int keylen );
ARGUMENTS tfm tfm handle
key BER encoded private key, algo OID, paramlen, BER encoded parameters
keylen length of t... |
crypto_sig_set_pubkey(9) | NAME crypto_sig_set_pubkey - Invoke set public key operation
SYNOPSIS int crypto_sig_set_pubkey (struct crypto_sig *tfm , const void *key , unsigned int keylen );
ARGUMENTS tfm tfm handle
key BER encoded public key, algo OID, paramlen, BER encoded parameters
keylen length of the k... |
crypto_sig_sign(9) | NAME crypto_sig_sign - Invoke signing operation
SYNOPSIS int crypto_sig_sign (struct crypto_sig *tfm , const void *src , unsigned int slen , void *dst , unsigned int dlen );
ARGUMENTS tfm signature tfm handle allocated with crypto_alloc_sig
src source buffer
slen source length
... |
crypto_sig_verify(9) | NAME crypto_sig_verify - Invoke signature verification
SYNOPSIS int crypto_sig_verify (struct crypto_sig *tfm , const void *src , unsigned int slen , const void *digest , unsigned int dlen );
ARGUMENTS tfm signature tfm handle allocated with crypto_alloc_sig
src source buffer
slen ... |
crypto_skcipher_blocksize(9) | NAME crypto_skcipher_blocksize - obtain block size of cipher
SYNOPSIS unsigned int crypto_skcipher_blocksize (struct crypto_skcipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The block size for the skcipher referenced with the cipher handle is returned. The caller may use that information to allocate a... |
crypto_skcipher_chunksize(9) | NAME crypto_skcipher_chunksize - obtain chunk size
SYNOPSIS unsigned int crypto_skcipher_chunksize (struct crypto_skcipher *tfm );
ARGUMENTS tfm cipher handle
DESCRIPTION The block size is set to one for ciphers such as CTR. However, you still need to provide incremental updates in multiples of the underlyi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.