mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Add support for Streebog (hash) and kuznyechik (encryption)
This commit is contained in:
33
src/Crypto/Streebog.h
Normal file
33
src/Crypto/Streebog.h
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013, Alexey Degtyarev.
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
/* Adapted to VeraCrypt */
|
||||
|
||||
#ifndef STREEBOG_H
|
||||
#define STREEBOG_H
|
||||
|
||||
#include "Common/Tcdefs.h"
|
||||
#include "config.h"
|
||||
|
||||
#define ALIGN(a) CRYPTOPP_ALIGN_DATA(a)
|
||||
|
||||
typedef ALIGN(16) struct _STREEBOG_CTX
|
||||
{
|
||||
ALIGN(16) unsigned char buffer[64];
|
||||
ALIGN(16) unsigned long long hash[8];
|
||||
ALIGN(16) unsigned long long h[8];
|
||||
ALIGN(16) unsigned long long N[8];
|
||||
ALIGN(16) unsigned long long Sigma[8];
|
||||
size_t bufsize;
|
||||
unsigned int digest_size;
|
||||
} STREEBOG_CTX;
|
||||
|
||||
void STREEBOG_init(STREEBOG_CTX *ctx);
|
||||
void STREEBOG_init256(STREEBOG_CTX *ctx);
|
||||
void STREEBOG_add(STREEBOG_CTX *ctx, byte *msg, size_t len);
|
||||
void STREEBOG_finalize(STREEBOG_CTX *ctx, byte *out);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user