Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/openssl/ossl_poly1305.h
Show All 27 Lines | struct poly1305_context { | ||||
unsigned int nonce[4]; | unsigned int nonce[4]; | ||||
unsigned char data[POLY1305_BLOCK_SIZE]; | unsigned char data[POLY1305_BLOCK_SIZE]; | ||||
size_t num; | size_t num; | ||||
struct { | struct { | ||||
poly1305_blocks_f blocks; | poly1305_blocks_f blocks; | ||||
poly1305_emit_f emit; | poly1305_emit_f emit; | ||||
} func; | } func; | ||||
}; | }; | ||||
int ossl_poly1305_update(void *vctx, const void *buf, u_int len); | |||||
void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32]); | |||||
void Poly1305_Update(POLY1305 *ctx, const unsigned char *inp, size_t len); | |||||
void Poly1305_Final(POLY1305 *ctx, unsigned char mac[16]); |