Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_enc.h
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | struct enc_xform { | ||||
| /* | /* | ||||
| * Encrypt/decrypt a single block. For stream ciphers this | * Encrypt/decrypt a single block. For stream ciphers this | ||||
| * encrypts/decrypts a single "native" block. | * encrypts/decrypts a single "native" block. | ||||
| */ | */ | ||||
| void (*encrypt) (void *, const uint8_t *, uint8_t *); | void (*encrypt) (void *, const uint8_t *, uint8_t *); | ||||
| void (*decrypt) (void *, const uint8_t *, uint8_t *); | void (*decrypt) (void *, const uint8_t *, uint8_t *); | ||||
| int (*setkey) (void *, const uint8_t *, int len); | int (*setkey) (void *, const uint8_t *, int len); | ||||
| void (*reinit) (void *, const uint8_t *); | void (*reinit) (void *, const uint8_t *, size_t); | ||||
| /* | /* | ||||
| * For stream ciphers, encrypt/decrypt the final partial block | * For stream ciphers, encrypt/decrypt the final partial block | ||||
| * of 'len' bytes. | * of 'len' bytes. | ||||
| */ | */ | ||||
| void (*encrypt_last) (void *, const uint8_t *, uint8_t *, size_t len); | void (*encrypt_last) (void *, const uint8_t *, uint8_t *, size_t len); | ||||
| void (*decrypt_last) (void *, const uint8_t *, uint8_t *, size_t len); | void (*decrypt_last) (void *, const uint8_t *, uint8_t *, size_t len); | ||||
| }; | }; | ||||
| Show All 27 Lines | |||||