Lines Matching defs:prov_cipher_ctx_st
48 struct prov_cipher_ctx_st { struct
51 unsigned char oiv[GENERIC_BLOCK_SIZE];
53 unsigned char buf[GENERIC_BLOCK_SIZE];
54 unsigned char iv[GENERIC_BLOCK_SIZE];
56 block128_f block;
57 union {
61 } stream;
63 unsigned int mode;
64 size_t keylen; /* key size (in bytes) */
65 size_t ivlen;
66 size_t blocksize;
67 size_t bufsz; /* Number of bytes in buf */
68 unsigned int cts_mode; /* Use to set the type for CTS modes */
69 unsigned int pad : 1; /* Whether padding should be used or not */
70 unsigned int enc : 1; /* Set to 1 for encrypt, or 0 otherwise */
71 unsigned int iv_set : 1; /* Set when the iv is copied to the iv/oiv buffers */
72 unsigned int key_set : 1; /* Set when key is set on the context */
73 unsigned int updated : 1; /* Set to 1 during update for one shot ciphers */
74 unsigned int variable_keylength : 1;
75 unsigned int inverse_cipher : 1; /* set to 1 to use inverse cipher */
76 unsigned int use_bits : 1; /* Set to 0 for cfb1 to use bits instead of bytes */
78 unsigned int tlsversion; /* If TLS padding is in use the TLS version number */
79 unsigned char *tlsmac; /* tls MAC extracted from the last record */
80 int alloced; /*
84 size_t tlsmacsize; /* Size of the TLS MAC */
85 int removetlspad; /* Whether TLS padding should be removed or not */
86 size_t removetlsfixed; /*
96 unsigned int num;
97 const PROV_CIPHER_HW *hw; /* hardware specific functions */
98 const void *ks; /* Pointer to algorithm specific key data */
99 OSSL_LIB_CTX *libctx;