diff options
Diffstat (limited to 'lib/freebl/blapi.h')
-rw-r--r-- | lib/freebl/blapi.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/freebl/blapi.h b/lib/freebl/blapi.h index 6f806884e..3d1ff7269 100644 --- a/lib/freebl/blapi.h +++ b/lib/freebl/blapi.h @@ -1043,6 +1043,27 @@ Camellia_Decrypt(CamelliaContext *cx, unsigned char *output, /******************************************/ /* +** ChaCha20 block cipher +*/ + +extern SECStatus ChaCha20_InitContext(ChaCha20Context *ctx, + const unsigned char *key, + unsigned int keyLen, + const unsigned char *nonce, + unsigned int nonceLen, + PRUint32 ctr); + +extern ChaCha20Context *ChaCha20_CreateContext(const unsigned char *key, + unsigned int keyLen, + const unsigned char *nonce, + unsigned int nonceLen, + PRUint32 ctr); + +extern void ChaCha20_DestroyContext(ChaCha20Context *ctx, PRBool freeit); + + +/******************************************/ +/* ** ChaCha20+Poly1305 AEAD */ |