API Reference Manual  1.45.0
odp_crypto_cipher_capability_t Struct Reference

Cipher algorithm capabilities. More...

#include <crypto_types.h>

Data Fields

uint32_t key_len
 Key length in bytes.
 
uint32_t iv_len
 IV length in bytes.
 
odp_bool_t bit_mode
 Cipher supports bit mode. More...
 

Detailed Description

Cipher algorithm capabilities.

Examples
ipsec_crypto/odp_ipsec.c, odp_crypto.c, and odp_sysinfo.c.

Definition at line 1158 of file api/spec/crypto_types.h.

Field Documentation

◆ bit_mode

odp_bool_t odp_crypto_cipher_capability_t::bit_mode

Cipher supports bit mode.

This cipher can work on a range of bits in addition to a range of bytes. When this capability is not present, only byte ranges are supported. The unit of cipher range is selected at session creation through the cipher_range_in_bits session parameter.

Note: In bit mode the cipher range must start on a byte boundary. Using an offset which is not divisible by 8 will result in undefined behaviour.

Note2: If the range length in bit mode is not a multiple of 8, the remaining bits of the data in the last byte of the input/output will be the most significant bits, i.e. the most significant bit is considered to be the first bit of a byte for the purpose of input and output data range. The output bits that fall out of the output range are undefined.

Examples
ipsec_crypto/odp_ipsec.c, and odp_crypto.c.

Definition at line 1183 of file api/spec/crypto_types.h.


The documentation for this struct was generated from the following file: