Go to the documentation of this file.
58 "block cannot be divided into size_t");
69 *(
out++) = ivec[
n] ^= *(
in++);
74 (*block)(ivec, ivec,
key);
75 for (;
n < 16;
n +=
sizeof(crypto_word_t)) {
87 (*block)(ivec, ivec,
key);
98 *(
out++) = ivec[
n] ^ (
c = *(
in++));
104 (*block)(ivec, ivec,
key);
105 for (;
n < 16;
n +=
sizeof(crypto_word_t)) {
116 (*block)(ivec, ivec,
key);
139 if (nbits <= 0 || nbits > 128) {
146 (*block)(ivec, ivec,
key);
147 num = (nbits + 7) / 8;
150 for (
n = 0;
n <
num; ++
n) {
151 out[
n] = (ovec[16 +
n] =
in[
n] ^ ivec[
n]);
155 for (
n = 0;
n <
num; ++
n) {
156 out[
n] = (ovec[16 +
n] =
in[
n]) ^ ivec[
n];
165 for (
n = 0;
n < 16; ++
n) {
166 ivec[
n] = ovec[
n +
num] << rem | ovec[
n +
num + 1] >> (8 - rem);
184 c[0] = (
in[
n / 8] & (1 << (7 -
n % 8))) ? 0x80 : 0;
186 out[
n / 8] = (
out[
n / 8] & ~(1 << (
unsigned int)(7 -
n % 8))) |
187 ((
d[0] & 0x80) >> (
unsigned int)(
n % 8));
193 unsigned char ivec[16],
unsigned *
num,
int enc,
void CRYPTO_cfb128_1_encrypt(const uint8_t *in, uint8_t *out, size_t bits, const AES_KEY *key, uint8_t ivec[16], unsigned *num, int enc, block128_f block)
static void CRYPTO_store_word_le(void *out, crypto_word_t v)
void CRYPTO_cfb128_encrypt(const uint8_t *in, uint8_t *out, size_t len, const AES_KEY *key, uint8_t ivec[16], unsigned *num, int enc, block128_f block)
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
OPENSSL_EXPORT ASN1_BIT_STRING * bits
void CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out, size_t length, const AES_KEY *key, unsigned char ivec[16], unsigned *num, int enc, block128_f block)
OPENSSL_STATIC_ASSERT(16 % sizeof(size_t)==0, "block cannot be divided into size_t")
static void cfbr_encrypt_block(const uint8_t *in, uint8_t *out, unsigned nbits, const AES_KEY *key, uint8_t ivec[16], int enc, block128_f block)
void(* block128_f)(const uint8_t in[16], uint8_t out[16], const AES_KEY *key)
static crypto_word_t CRYPTO_load_word_le(const void *in)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:52