aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_aesgcm.h
blob: d4cde01f9a12b2918bab9963603296eaba71840f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (C) 2018 Denys Vlasenko
 *
 * Licensed under GPLv2, see file LICENSE in this source tree.
 */

void xorbuf(void* buf, const void* mask, unsigned count) FAST_FUNC;

void aesgcm_GHASH(uint8_t* h,
	const uint8_t* a, unsigned aSz,
	const uint8_t* c, unsigned cSz,
	uint8_t* s, unsigned sSz
) FAST_FUNC;

void aesgcm_setkey(uint8_t H[16], struct tls_aes *aes, const uint8_t* key, unsigned len) FAST_FUNC;