id
stringlengths
4
63
text
stringlengths
153
8.81M
cros_ec_resume_early(9)
NAME cros_ec_resume_early - Handle a resume early operation for the ChromeOS EC device. SYNOPSIS int cros_ec_resume_early (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to resume. DESCRIPTION This can be called by drivers to handle a resume early stage of resume. RETURN 0 always. SEE ALSO Kernel f...
cros_ec_sensor_ring_process_event(9)
NAME cros_ec_sensor_ring_process_event - Process one EC FIFO event SYNOPSIS bool cros_ec_sensor_ring_process_event (struct cros_ec_sensorhub *sensorhub , const struct ec_response_motion_sense_fifo_info *fifo_info , const ktime_t fifo_timestamp , ktime_t *current_timestamp , struct ec_response_mo‐ tion_sensor_data *in ...
cros_ec_sensor_ring_ts_filter(9)
NAME cros_ec_sensor_ring_ts_filter - Translate EC timebase timestamp to AP timebase SYNOPSIS s64 cros_ec_sensor_ring_ts_filter (struct cros_ec_sensors_ts_filter_state *state , s64 x ); ARGUMENTS state filter information. x any ec timestamp (us): DESCRIPTION cros_ec_sensor_ring_ts_filter(a) =>...
cros_ec_sensor_ring_ts_filter_update(9)
NAME cros_ec_sensor_ring_ts_filter_update - Update filter history. SYNOPSIS void cros_ec_sensor_ring_ts_filter_update (struct cros_ec_sensors_ts_filter_state *state , s64 b , s64 c ); ARGUMENTS state Filter information. b IRQ timestamp, EC timebase (us) c IRQ timestamp, AP ti...
cros_ec_sensorhub_push_data_cb_t(9)
NAME cros_ec_sensorhub_push_data_cb_t - Callback function to send datum to specific sensors. SYNOPSIS int cros_ec_sensorhub_push_data_cb_t (struct iio_dev *indio_dev , s16 *data , s64 timestamp ); ARGUMENTS indio_dev The IIO device that will process the sample. data Vector array of the ring sample. ...
cros_ec_sensorhub_register_push_data(9)
NAME cros_ec_sensorhub_register_push_data - register the callback to the hub. SYNOPSIS int cros_ec_sensorhub_register_push_data (struct cros_ec_sensorhub *sensorhub , u8 sensor_num , struct iio_dev *indio_dev , cros_ec_sensorhub_push_data_cb_t cb ); ARGUMENTS sensorhub Sensor Hub object sensor_num The sens...
cros_ec_sensorhub_ring_add(9)
NAME cros_ec_sensorhub_ring_add - Add the FIFO functionality if the EC supports it. SYNOPSIS int cros_ec_sensorhub_ring_add (struct cros_ec_sensorhub *sensorhub ); ARGUMENTS sensorhub Sensor Hub object. RETURN 0 on success. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_sensorhub_ring.c cros_ec_sensorh...
cros_ec_sensorhub_ring_allocate(9)
NAME cros_ec_sensorhub_ring_allocate - Prepare the FIFO functionality if the EC supports it. SYNOPSIS int cros_ec_sensorhub_ring_allocate (struct cros_ec_sensorhub *sensorhub ); ARGUMENTS sensorhub Sensor Hub object. RETURN 0 on success. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_sensorhub_ring.c c...
cros_ec_sensorhub_ring_fifo_enable(9)
NAME cros_ec_sensorhub_ring_fifo_enable - Enable or disable interrupt generation for FIFO events. SYNOPSIS int cros_ec_sensorhub_ring_fifo_enable (struct cros_ec_sensorhub *sensorhub , bool on ); ARGUMENTS sensorhub Sensor Hub object on true when events are requested. DESCRIPTION To be called befo...
cros_ec_sensorhub_ring_handler(9)
NAME cros_ec_sensorhub_ring_handler - The trigger handler function SYNOPSIS void cros_ec_sensorhub_ring_handler (struct cros_ec_sensorhub *sensorhub ); ARGUMENTS sensorhub Sensor Hub object. DESCRIPTION Called by the notifier, process the EC sensor FIFO queue. SEE ALSO Kernel file ./drivers/platform/chrome/cros...
cros_ec_sensors_capture(9)
NAME cros_ec_sensors_capture - the trigger handler function SYNOPSIS irqreturn_t cros_ec_sensors_capture (int irq , void *p ); ARGUMENTS irq the interrupt number. p a pointer to the poll function. DESCRIPTION On a trigger event occurring, if the pollfunc is attached then this handler is c...
cros_ec_sensors_core_init(9)
NAME cros_ec_sensors_core_init - basic initialization of the core structure SYNOPSIS int cros_ec_sensors_core_init (struct platform_device *pdev , struct iio_dev *indio_dev , bool physical_device , cros_ec_sensors_capture_t trigger_capture ); ARGUMENTS pdev platform device created for the sensor indio_...
cros_ec_sensors_core_read(9)
NAME cros_ec_sensors_core_read - function to request a value from the sensor SYNOPSIS int cros_ec_sensors_core_read (struct cros_ec_sensors_core_state *st , struct iio_chan_spec const *chan , int *val , int *val2 , long mask ); ARGUMENTS st pointer to state information for device chan channel ...
cros_ec_sensors_core_read_avail(9)
NAME cros_ec_sensors_core_read_avail - get available values SYNOPSIS int cros_ec_sensors_core_read_avail (struct iio_dev *indio_dev , struct iio_chan_spec const *chan , const int **vals , int *type , int *length , long mask ); ARGUMENTS indio_dev pointer to state information for device chan channel s...
cros_ec_sensors_core_register(9)
NAME cros_ec_sensors_core_register - Register callback to FIFO and IIO when sensor is ready. It must be called at the end of the sensor probe routine. SYNOPSIS int cros_ec_sensors_core_register (struct device *dev , struct iio_dev *indio_dev , cros_ec_sensorhub_push_data_cb_t push_data ); ARGUMENTS dev device...
cros_ec_sensors_core_write(9)
NAME cros_ec_sensors_core_write - function to write a value to the sensor SYNOPSIS int cros_ec_sensors_core_write (struct cros_ec_sensors_core_state *st , struct iio_chan_spec const *chan , int val , int val2 , long mask ); ARGUMENTS st pointer to state information for device chan channel spec...
cros_ec_sensors_idx_to_reg(9)
NAME cros_ec_sensors_idx_to_reg - convert index into offset in shared memory SYNOPSIS unsigned int cros_ec_sensors_idx_to_reg (struct cros_ec_sensors_core_state *st , unsigned int idx ); ARGUMENTS st pointer to state information for device idx sensor index (should be element of enum sensor_in...
cros_ec_sensors_read_cmd(9)
NAME cros_ec_sensors_read_cmd - retrieve data using the EC command protocol SYNOPSIS int cros_ec_sensors_read_cmd (struct iio_dev *indio_dev , unsigned long scan_mask , s16 *data ); ARGUMENTS indio_dev pointer to IIO device scan_mask bitmap of the sensor indices to scan data location to sto...
cros_ec_sensors_read_data_unsafe(9)
NAME cros_ec_sensors_read_data_unsafe - read acceleration data from EC shared memory SYNOPSIS int cros_ec_sensors_read_data_unsafe (struct iio_dev *indio_dev , unsigned long scan_mask , s16 *data ); ARGUMENTS indio_dev pointer to IIO device scan_mask bitmap of the sensor indices to scan data ...
cros_ec_sensors_read_lpc(9)
NAME cros_ec_sensors_read_lpc - read acceleration data from EC shared memory. SYNOPSIS int cros_ec_sensors_read_lpc (struct iio_dev *indio_dev , unsigned long scan_mask , s16 *data ); ARGUMENTS indio_dev pointer to IIO device. scan_mask bitmap of the sensor indices to scan. data location to...
cros_ec_sensors_read_until_not_busy(9)
NAME cros_ec_sensors_read_until_not_busy - read until is not busy SYNOPSIS int cros_ec_sensors_read_until_not_busy (struct cros_ec_sensors_core_state *st ); ARGUMENTS st pointer to state information for device DESCRIPTION Read from EC status byte until it reads not busy. RETURN 8-bit status if ok, -errno o...
cros_ec_spi_receive_packet(9)
NAME cros_ec_spi_receive_packet - Receive a packet from the EC. SYNOPSIS int cros_ec_spi_receive_packet (struct cros_ec_device *ec_dev , int need_len ); ARGUMENTS ec_dev ChromeOS EC device need_len Number of message bytes we need to read DESCRIPTION This function has two phases: reading the preamble ...
cros_ec_spi_receive_response(9)
NAME cros_ec_spi_receive_response - Receive a response from the EC. SYNOPSIS int cros_ec_spi_receive_response (struct cros_ec_device *ec_dev , int need_len ); ARGUMENTS ec_dev ChromeOS EC device need_len Number of message bytes we need to read DESCRIPTION This function has two phases: reading the pre...
cros_ec_suspend(9)
NAME cros_ec_suspend - Handle a suspend operation for the ChromeOS EC device. SYNOPSIS int cros_ec_suspend (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to suspend. DESCRIPTION This can be called by drivers to handle a suspend event. RETURN 0 always. SEE ALSO Kernel file ./drivers/platform/chrom...
cros_ec_suspend_late(9)
NAME cros_ec_suspend_late - Handle a suspend late operation for the ChromeOS EC device. SYNOPSIS int cros_ec_suspend_late (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to suspend. DESCRIPTION This can be called by drivers to handle a suspend late stage of suspend. RETURN 0 always. SEE ALSO Kernel ...
cros_ec_suspend_prepare(9)
NAME cros_ec_suspend_prepare - Handle a suspend prepare operation for the ChromeOS EC device. SYNOPSIS int cros_ec_suspend_prepare (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to suspend. DESCRIPTION This can be called by drivers to handle a suspend prepare stage of suspend. RETURN 0 always. SEE ...
cros_ec_unregister(9)
NAME cros_ec_unregister - Remove a ChromeOS EC. SYNOPSIS void cros_ec_unregister (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to unregister. DESCRIPTION Call this to deregister a ChromeOS EC, then clean up any private data. RETURN 0 on success or negative error code. SEE ALSO Kernel file ./driv...
cros_ec_usb_get_pd_mux_state(9)
NAME cros_ec_usb_get_pd_mux_state - Get PD mux state for given port. SYNOPSIS int cros_ec_usb_get_pd_mux_state (struct cros_ec_extcon_info *info ); ARGUMENTS info pointer to struct cros_ec_extcon_info RETURN PD mux state on success, <0 on failure. SEE ALSO Kernel file ./drivers/extcon/extcon-usbc-cros-ec.c c...
cros_ec_usb_get_power_type(9)
NAME cros_ec_usb_get_power_type - Get power type info about PD device attached to given port. SYNOPSIS int cros_ec_usb_get_power_type (struct cros_ec_extcon_info *info ); ARGUMENTS info pointer to struct cros_ec_extcon_info RETURN power type on success, <0 on failure. SEE ALSO Kernel file ./drivers/extcon/ex...
cros_ec_usb_get_role(9)
NAME cros_ec_usb_get_role - Get role info about possible PD device attached to a given port. SYNOPSIS int cros_ec_usb_get_role (struct cros_ec_extcon_info *info , bool *polarity ); ARGUMENTS info pointer to struct cros_ec_extcon_info polarity pointer to cable polarity (return value) RETURN role inf...
cros_ish_deinit(9)
NAME cros_ish_deinit - Deinit function for ISHTP client SYNOPSIS void cros_ish_deinit (struct ishtp_cl *cros_ish_cl ); ARGUMENTS cros_ish_cl ISHTP client instance DESCRIPTION Unlink and free cros_ec client SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_ishtp.c struct response_info(9), struct ishtp_cl_...
cros_ish_init(9)
NAME cros_ish_init - Init function for ISHTP client SYNOPSIS int cros_ish_init (struct ishtp_cl *cros_ish_cl , bool reset ); ARGUMENTS cros_ish_cl ISHTP client instance reset true if called from reset handler DESCRIPTION This function complete the initializtion of the client. RETURN 0 for success, neg...
cros_typec_get_cable_vdo(9)
NAME cros_typec_get_cable_vdo - Get Cable VDO of the connected cable SYNOPSIS int cros_typec_get_cable_vdo (struct cros_typec_port *port , u16 svid ); ARGUMENTS port Type-C port data svid Standard or Vendor ID to match DESCRIPTION Returns the Cable VDO if match is found and returns 0 if match i...
cros_usbpd_register_notify(9)
NAME cros_usbpd_register_notify - Register a notifier callback for PD events. SYNOPSIS int cros_usbpd_register_notify (struct notifier_block *nb ); ARGUMENTS nb Notifier block pointer to register DESCRIPTION On ACPI platforms this corresponds to host events on the ECPD "GOOG0003" ACPI device. On non-ACPI pl...
cros_usbpd_unregister_notify(9)
NAME cros_usbpd_unregister_notify - Unregister notifier callback for PD events. SYNOPSIS void cros_usbpd_unregister_notify (struct notifier_block *nb ); ARGUMENTS nb Notifier block pointer to unregister DESCRIPTION Unregister a notifier callback that was previously registered with cros_usbpd_register_notify...
crossbar_domain_free(9)
NAME crossbar_domain_free - unmap/free a crossbar<->irq connection SYNOPSIS void crossbar_domain_free (struct irq_domain *domain , unsigned int virq , unsigned int nr_irqs ); ARGUMENTS domain domain of irq to unmap virq virq number nr_irqs number of irqs to free DESCRIPTION We do not...
crq_queue_next_crq(9)
NAME crq_queue_next_crq - - Returns the next entry in message queue SYNOPSIS struct viosrp_crq * crq_queue_next_crq (struct crq_queue *queue ); ARGUMENTS queue crq_queue to use DESCRIPTION Returns pointer to next entry in queue, or NULL if there are no new entried in the CRQ. SEE ALSO Kernel file ./drivers/...
crste_origin_large(9)
NAME crste_origin_large - Return the large frame origin of a large crste SYNOPSIS phys_addr_t crste_origin_large (union crste crste ); ARGUMENTS crste The crste whose origin is to be returned. Should be either a region-3 table entry or a segment table entry, in both cases with FC set to 1 (large pages). RETURN...
crunch(1)
CRUNCH(1) General Commands Manual CRUNCH(1) NAME crunch - generate wordlists from a character set SYNOPSIS crunch <min-len> <max-len>...
crush_choose_firstn(9)
NAME crush_choose_firstn - choose numrep distinct items of given type SYNOPSIS int crush_choose_firstn (const struct crush_map *map , struct crush_work *work , const struct crush_bucket *bucket , const __u32 *weight , int weight_max , int x , int numrep , int type , int *out , int outpos , int out_size , unsigne...
crush_destroy(9)
NAME crush_destroy - Destroy a crush_map SYNOPSIS void crush_destroy (struct crush_map *map ); ARGUMENTS map crush_map pointer SEE ALSO Kernel file ./net/ceph/crush/crush.c crush_get_bucket_item_weight(9) April 2026 ...
crush_do_rule(9)
NAME crush_do_rule - calculate a mapping with the given input and rule SYNOPSIS int crush_do_rule (const struct crush_map *map , int ruleno , int x , int *result , int result_max , const __u32 *weight , int weight_max , void *cwin , const struct crush_choose_arg *choose_args ); ARGUMENTS map the crush_map ...
crush_find_rule(9)
NAME crush_find_rule - find a crush_rule id for a given ruleset, type, and size. SYNOPSIS int crush_find_rule (const struct crush_map *map , int ruleset , int type , int size ); ARGUMENTS map the crush_map ruleset the storage ruleset id (user defined) type storage ruleset type (user...
crush_get_bucket_item_weight(9)
NAME crush_get_bucket_item_weight - Get weight of an item in given bucket SYNOPSIS int crush_get_bucket_item_weight (const struct crush_bucket *b , int p ); ARGUMENTS b bucket pointer p item index in bucket SEE ALSO Kernel file ./net/ceph/crush/crush.c crush_destroy(9) April 2026 ...
crw_inject(9)
NAME crw_inject - Initiate the artificial CRW inject SYNOPSIS int crw_inject (struct crw *crw ); ARGUMENTS crw The data which needs to be injected as new CRW. DESCRIPTION The CRW handler is called, which will use the provided artificial data instead of the CRW from the underlying hardware. RETURN 0 on succe...
crw_register_handler(9)
NAME crw_register_handler - register a channel report word handler SYNOPSIS int crw_register_handler (int rsc , crw_handler_t handler ); ARGUMENTS rsc reporting source code to handle handler handler to be registered DESCRIPTION Returns 0 on success and a negative error value otherwise. SEE ALSO ...
crw_unregister_handler(9)
NAME crw_unregister_handler - unregister a channel report word handler SYNOPSIS void crw_unregister_handler (int rsc ); ARGUMENTS rsc reporting source code to handle SEE ALSO Kernel file ./drivers/s390/cio/crw.c crw_register_handler(9) April 2026 ...
crypt(3)
NAME crypt, crypt_r - password hashing LIBRARY Password hashing library (libcrypt, -lcrypt) SYNOPSIS #include <unistd.h> char *crypt(const char *key, const char *salt); #include <crypt.h> char *crypt_r(const char *key, const char *salt, struct crypt_data *restrict data); ...
crypt(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME crypt — string encoding function (CRYPT) SYNOPSIS #include <un...
crypt_extent(9)
NAME crypt_extent - SYNOPSIS int crypt_extent (struct ecryptfs_crypt_stat *crypt_stat , struct page *dst_page , struct page *src_page , pgoff_t page_index , unsigned long extent_offset , int op ); ARGUMENTS crypt_stat crypt_stat containing cryptographic context for the encryption operation dst_page The pa...
crypt_r(3)
NAME crypt, crypt_r - password hashing LIBRARY Password hashing library (libcrypt, -lcrypt) SYNOPSIS #include <unistd.h> char *crypt(const char *key, const char *salt); #include <crypt.h> char *crypt_r(const char *key, const char *salt, struct crypt_data *restrict data); ...
crypt_scatterlist(9)
NAME crypt_scatterlist - SYNOPSIS int crypt_scatterlist (struct ecryptfs_crypt_stat *crypt_stat , struct scatterlist *dst_sg , struct scatterlist *src_sg , int size , unsigned char *iv , int op ); ARGUMENTS crypt_stat Pointer to the crypt_stat struct to initialize. dst_sg Destination of the data after p...
crypto(3)
NAME crypto — OpenSSL cryptographic library DESCRIPTION The OpenSSL crypto library implements a wide range of cryptographic algorithms used in various Internet standards. The services provided by this library are used by the OpenSSL implementations of TLS and S/MIME, and they have also been used to implement SSH, Ope...
crypto.7ssl(7)
NAME ossl-guide-libcrypto-introduction, crypto - OpenSSL Guide: An introduction to libcrypto INTRODUCTION The OpenSSL cryptography library ("libcrypto") enables access to a wide range of cryptographic algorithms used in various Internet standards. The services provided by this library are used by the OpenSSL implement...
crypto_acomp_compress(9)
NAME crypto_acomp_compress - - Invoke asynchronous compress operation SYNOPSIS int crypto_acomp_compress (struct acomp_req *req ); ARGUMENTS req asynchronous compress request DESCRIPTION Function invokes the asynchronous compress operation RETURN zero on success; error code in case of error SEE ALSO Kernel...
crypto_acomp_decompress(9)
NAME crypto_acomp_decompress - - Invoke asynchronous decompress operation SYNOPSIS int crypto_acomp_decompress (struct acomp_req *req ); ARGUMENTS req asynchronous compress request DESCRIPTION Function invokes the asynchronous decompress operation RETURN zero on success; error code in case of error SEE ALS...
crypto_aead_authsize(9)
NAME crypto_aead_authsize - obtain maximum authentication data size SYNOPSIS unsigned int crypto_aead_authsize (struct crypto_aead *tfm ); ARGUMENTS tfm cipher handle DESCRIPTION The maximum size of the authentication data for the AEAD cipher referenced by the AEAD cipher handle is returned. The authenticati...
crypto_aead_blocksize(9)
NAME crypto_aead_blocksize - obtain block size of cipher SYNOPSIS unsigned int crypto_aead_blocksize (struct crypto_aead *tfm ); ARGUMENTS tfm cipher handle DESCRIPTION The block size for the AEAD referenced with the cipher handle is returned. The caller may use that information to allocate appropriate memo...
crypto_aead_chunksize(9)
NAME crypto_aead_chunksize - obtain chunk size SYNOPSIS unsigned int crypto_aead_chunksize (struct crypto_aead *tfm ); ARGUMENTS tfm cipher handle DESCRIPTION The block size is set to one for ciphers such as CCM. However, you still need to provide incremental updates in multiples of the underlying block siz...
crypto_aead_decrypt(9)
NAME crypto_aead_decrypt - decrypt ciphertext SYNOPSIS int crypto_aead_decrypt (struct aead_request *req ); ARGUMENTS req reference to the aead_request handle that holds all information needed to perform the cipher operation DESCRIPTION Decrypt ciphertext data using the aead_request handle. That data structu...
crypto_aead_encrypt(9)
NAME crypto_aead_encrypt - encrypt plaintext SYNOPSIS int crypto_aead_encrypt (struct aead_request *req ); ARGUMENTS req reference to the aead_request handle that holds all information needed to perform the cipher operation DESCRIPTION Encrypt plaintext data using the aead_request handle. That data structur...
crypto_aead_ivsize(9)
NAME crypto_aead_ivsize - obtain IV size SYNOPSIS unsigned int crypto_aead_ivsize (struct crypto_aead *tfm ); ARGUMENTS tfm cipher handle DESCRIPTION The size of the IV for the aead referenced by the cipher handle is returned. This IV size may be zero if the cipher does not need an IV. RETURN IV size in byt...
crypto_aead_reqsize(9)
NAME crypto_aead_reqsize - obtain size of the request data structure SYNOPSIS unsigned int crypto_aead_reqsize (struct crypto_aead *tfm ); ARGUMENTS tfm cipher handle RETURN number of bytes SEE ALSO Kernel file ./include/crypto/aead.h Kernel API(9), struct aead_request(9), struct aead_alg(9), crypto_al...
crypto_aead_setauthsize(9)
NAME crypto_aead_setauthsize - set authentication data size SYNOPSIS int crypto_aead_setauthsize (struct crypto_aead *tfm , unsigned int authsize ); ARGUMENTS tfm cipher handle authsize size of the authentication data / tag in bytes DESCRIPTION Set the authentication data size / tag size. AEAD req...
crypto_aead_setkey(9)
NAME crypto_aead_setkey - set key for cipher SYNOPSIS int crypto_aead_setkey (struct crypto_aead *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 set for t...
crypto_ahash_blocksize(9)
NAME crypto_ahash_blocksize - obtain block size for cipher SYNOPSIS unsigned int crypto_ahash_blocksize (struct crypto_ahash *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_ahash_digest(9)
NAME crypto_ahash_digest - calculate message digest for a buffer SYNOPSIS int crypto_ahash_digest (struct ahash_request *req ); ARGUMENTS req reference to the ahash_request handle that holds all information needed to perform the cipher operation DESCRIPTION This function is a "short-hand" for the function ca...
crypto_ahash_digestsize(9)
NAME crypto_ahash_digestsize - obtain message digest size SYNOPSIS unsigned int crypto_ahash_digestsize (struct crypto_ahash *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 message dige...
crypto_ahash_export(9)
NAME crypto_ahash_export - extract current message digest state SYNOPSIS int crypto_ahash_export (struct ahash_request *req , void *out ); ARGUMENTS req reference to the ahash_request handle whose state is exported out output buffer of sufficient size that can hold the hash state DESCRIPTION ...
crypto_ahash_export_core(9)
NAME crypto_ahash_export_core - extract core state for message digest SYNOPSIS int crypto_ahash_export_core (struct ahash_request *req , void *out ); ARGUMENTS req reference to the ahash_request handle whose state is exported out output buffer of sufficient size that can hold the hash state D...
crypto_ahash_final(9)
NAME crypto_ahash_final - calculate message digest SYNOPSIS int crypto_ahash_final (struct ahash_request *req ); ARGUMENTS req reference to the ahash_request handle that holds all information needed to perform the cipher operation DESCRIPTION Finalize the message digest operation and create the message diges...
crypto_ahash_finup(9)
NAME crypto_ahash_finup - update and finalize message digest SYNOPSIS int crypto_ahash_finup (struct ahash_request *req ); ARGUMENTS req reference to the ahash_request handle that holds all information needed to perform the cipher operation DESCRIPTION This function is a "short-hand" for the function calls o...
crypto_ahash_import(9)
NAME crypto_ahash_import - import message digest state SYNOPSIS int crypto_ahash_import (struct ahash_request *req , const void *in ); ARGUMENTS req reference to ahash_request handle the state is imported into in buffer holding the state DESCRIPTION This function imports the hash state into ...
crypto_ahash_import_core(9)
NAME crypto_ahash_import_core - import core state SYNOPSIS int crypto_ahash_import_core (struct ahash_request *req , const void *in ); ARGUMENTS req reference to ahash_request handle the state is imported into in buffer holding the state DESCRIPTION Import the hash state without the partial ...
crypto_ahash_init(9)
NAME crypto_ahash_init - (re)initialize message digest handle SYNOPSIS int crypto_ahash_init (struct ahash_request *req ); ARGUMENTS req ahash_request handle that already is initialized with all necessary data using the ahash_request_* API functions DESCRIPTION The call (re-)initializes the message digest re...
crypto_ahash_reqsize(9)
NAME crypto_ahash_reqsize - obtain size of the request data structure SYNOPSIS unsigned int crypto_ahash_reqsize (struct crypto_ahash *tfm ); ARGUMENTS tfm cipher handle RETURN size of the request data SEE ALSO Kernel file ./include/crypto/hash.h Kernel API(9), struct ahash_alg(9), struct shash_alg(9), Kern...
crypto_ahash_reqtfm(9)
NAME crypto_ahash_reqtfm - obtain cipher handle from request SYNOPSIS struct crypto_ahash * crypto_ahash_reqtfm (struct ahash_request *req ); ARGUMENTS req asynchronous request handle that contains the reference to the ahash cipher handle DESCRIPTION Return the ahash cipher handle that is registered with the...
crypto_ahash_setkey(9)
NAME crypto_ahash_setkey - set key for cipher handle SYNOPSIS int crypto_ahash_setkey (struct crypto_ahash *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...
crypto_ahash_statesize(9)
NAME crypto_ahash_statesize - obtain size of the ahash state SYNOPSIS unsigned int crypto_ahash_statesize (struct crypto_ahash *tfm ); ARGUMENTS tfm cipher handle DESCRIPTION Return the size of the ahash state. With the crypto_ahash_export function, the caller can export the state into a buffer whose size is...
crypto_ahash_update(9)
NAME crypto_ahash_update - add data to message digest for processing SYNOPSIS int crypto_ahash_update (struct ahash_request *req ); ARGUMENTS req ahash_request handle that was previously initialized with the crypto_ahash_init call. DESCRIPTION Updates the message digest state of the ahash_request handle. The...
crypto_akcipher_decrypt(9)
NAME crypto_akcipher_decrypt - Invoke public key decrypt operation SYNOPSIS int crypto_akcipher_decrypt (struct akcipher_request *req ); ARGUMENTS req asymmetric key request DESCRIPTION Function invokes the specific public key decrypt operation for a given public key algorithm RETURN zero on success; error ...
crypto_akcipher_encrypt(9)
NAME crypto_akcipher_encrypt - Invoke public key encrypt operation SYNOPSIS int crypto_akcipher_encrypt (struct akcipher_request *req ); ARGUMENTS req asymmetric key request DESCRIPTION Function invokes the specific public key encrypt operation for a given public key algorithm RETURN zero on success; error ...
crypto_akcipher_maxsize(9)
NAME crypto_akcipher_maxsize - Get len for output buffer SYNOPSIS unsigned int crypto_akcipher_maxsize (struct crypto_akcipher *tfm ); ARGUMENTS tfm AKCIPHER tfm handle allocated with crypto_alloc_akcipher DESCRIPTION Function returns the dest buffer size required for a given key. Function assumes that the...
crypto_akcipher_set_priv_key(9)
NAME crypto_akcipher_set_priv_key - Invoke set private key operation SYNOPSIS int crypto_akcipher_set_priv_key (struct crypto_akcipher *tfm , const void *key , unsigned int keylen ); ARGUMENTS tfm tfm handle key BER encoded private key, algo OID, paramlen, BER encoded parameters keylen...
crypto_akcipher_set_pub_key(9)
NAME crypto_akcipher_set_pub_key - Invoke set public key operation SYNOPSIS int crypto_akcipher_set_pub_key (struct crypto_akcipher *tfm , const void *key , unsigned int keylen ); ARGUMENTS tfm tfm handle key BER encoded public key, algo OID, paramlen, BER encoded parameters keylen ...
crypto_akcipher_sync_decrypt(9)
NAME crypto_akcipher_sync_decrypt - Invoke public key decrypt operation SYNOPSIS int crypto_akcipher_sync_decrypt (struct crypto_akcipher *tfm , const void *src , unsigned int slen , void *dst , unsigned int dlen ); ARGUMENTS tfm AKCIPHER tfm handle allocated with crypto_alloc_akcipher src sou...
crypto_akcipher_sync_encrypt(9)
NAME crypto_akcipher_sync_encrypt - Invoke public key encrypt operation SYNOPSIS int crypto_akcipher_sync_encrypt (struct crypto_akcipher *tfm , const void *src , unsigned int slen , void *dst , unsigned int dlen ); ARGUMENTS tfm AKCIPHER tfm handle allocated with crypto_alloc_akcipher src sou...
crypto_alloc_acomp(9)
NAME crypto_alloc_acomp - - allocate ACOMPRESS tfm handle SYNOPSIS struct crypto_acomp * crypto_alloc_acomp (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the compression algorithm e.g. "deflate" type specifies the type of...
crypto_alloc_acomp_node(9)
NAME crypto_alloc_acomp_node - - allocate ACOMPRESS tfm handle with desired NUMA node SYNOPSIS struct crypto_acomp * crypto_alloc_acomp_node (const char *alg_name , u32 type , u32 mask , int node ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the compression algorithm e.g. "deflat...
crypto_alloc_aead(9)
NAME crypto_alloc_aead - allocate AEAD cipher handle SYNOPSIS struct crypto_aead * crypto_alloc_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 cipher type specifies the type of the cipher mask ...
crypto_alloc_ahash(9)
NAME crypto_alloc_ahash - allocate ahash cipher handle SYNOPSIS struct crypto_ahash * crypto_alloc_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 cipher type specifies the type of the cipher mask ...
crypto_alloc_akcipher(9)
NAME crypto_alloc_akcipher - allocate AKCIPHER tfm handle SYNOPSIS struct crypto_akcipher * crypto_alloc_akcipher (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the public key algorithm e.g. "rsa" type specifies the type o...
crypto_alloc_cipher(9)
NAME crypto_alloc_cipher - allocate single block cipher handle SYNOPSIS struct crypto_cipher * crypto_alloc_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 ciphe...
crypto_alloc_kpp(9)
NAME crypto_alloc_kpp - allocate KPP tfm handle SYNOPSIS struct crypto_kpp * crypto_alloc_kpp (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the name of the kpp algorithm (e.g. "dh", "ecdh") type specifies the type of the algorithm mask specifies the mask for the...
crypto_alloc_lskcipher(9)
NAME crypto_alloc_lskcipher - allocate linear symmetric key cipher handle SYNOPSIS struct crypto_lskcipher * crypto_alloc_lskcipher (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the lskcipher type specifies the type of th...
crypto_alloc_rng(9)
NAME crypto_alloc_rng - - allocate RNG handle SYNOPSIS struct crypto_rng * crypto_alloc_rng (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the message digest cipher type specifies the type of the cipher mask ...
crypto_alloc_shash(9)
NAME crypto_alloc_shash - allocate message digest handle SYNOPSIS struct crypto_shash * crypto_alloc_shash (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the message digest cipher type specifies the type of the cipher ...
crypto_alloc_sig(9)
NAME crypto_alloc_sig - allocate signature tfm handle SYNOPSIS struct crypto_sig * crypto_alloc_sig (const char *alg_name , u32 type , u32 mask ); ARGUMENTS alg_name is the cra_name / name or cra_driver_name / driver name of the signing algorithm e.g. "ecdsa" type specifies the type of the algorithm...
crypto_alloc_skcipher(9)
NAME crypto_alloc_skcipher - allocate symmetric key cipher handle SYNOPSIS struct crypto_skcipher * crypto_alloc_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 cipher type specifies the type of the ci...
crypto_check_attr_type(9)
NAME crypto_check_attr_type - check algorithm type and compute inherited mask SYNOPSIS int crypto_check_attr_type (struct rtattr **tb , u32 type , u32 *mask_ret ); ARGUMENTS tb the template parameters type the algorithm type the template would be instantiated as mask_ret (output) th...