diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-02-02 06:40:10 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-02-02 06:40:10 +0100 |
commit | 64b55e7e1236121ea4197d9a37cfec43b196cfe8 (patch) | |
tree | eb16f4a2d3eae3d9485eccbd923812a56b627979 /ecp/src/crypto/crypto.h | |
parent | a4401c99c2a54ba9a964317cbff915d40d16e470 (diff) |
moved ecp, platform -> src
Diffstat (limited to 'ecp/src/crypto/crypto.h')
-rw-r--r-- | ecp/src/crypto/crypto.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/ecp/src/crypto/crypto.h b/ecp/src/crypto/crypto.h deleted file mode 100644 index 378500c..0000000 --- a/ecp/src/crypto/crypto.h +++ /dev/null @@ -1,46 +0,0 @@ -#define CURVE25519_SIZE_KEY 32 -#define CHACHA20_SIZE_KEY 32 -#define POLY1305_SIZE_TAG 16 -#define CHACHA20_SIZE_NONCE 8 - -#define ECP_ECDH_SIZE_KEY 32 -#define ECP_AEAD_SIZE_KEY 32 -#define ECP_AEAD_SIZE_TAG 16 -#define ECP_AEAD_SIZE_NONCE 8 - -#define ECP_DSA_SIZE_KEY 32 -#define ECP_DSA_SIZE_SIGNATURE 32 - -typedef uint8_t ecp_dh_public_t[ECP_ECDH_SIZE_KEY]; -typedef uint8_t ecp_dh_private_t[ECP_ECDH_SIZE_KEY]; -typedef uint8_t ecp_aead_key_t[ECP_AEAD_SIZE_KEY]; -typedef uint8_t ecp_dsa_public_t[ECP_DSA_SIZE_KEY]; -typedef uint8_t ecp_dsa_private_t[ECP_DSA_SIZE_KEY]; - -int -aead_chacha20_poly1305_seal(unsigned char key[32], unsigned char tag_len, - unsigned char *out, size_t *out_len, size_t max_out_len, - const unsigned char *nonce, size_t nonce_len, - const unsigned char *in, size_t in_len, - const unsigned char *ad, size_t ad_len); - -int -aead_chacha20_poly1305_open(unsigned char key[32], unsigned char tag_len, - unsigned char *out, size_t *out_len, size_t max_out_len, - const unsigned char *nonce, size_t nonce_len, - const unsigned char *in, size_t in_len, - const unsigned char *ad, size_t ad_len); - -int -aead_xchacha20_poly1305_seal(unsigned char key[32], unsigned char tag_len, - unsigned char *out, size_t *out_len, size_t max_out_len, - const unsigned char *nonce, size_t nonce_len, - const unsigned char *in, size_t in_len, - const unsigned char *ad, size_t ad_len); - -int -aead_xchacha20_poly1305_open(unsigned char key[32], unsigned char tag_len, - unsigned char *out, size_t *out_len, size_t max_out_len, - const unsigned char *nonce, size_t nonce_len, - const unsigned char *in, size_t in_len, - const unsigned char *ad, size_t ad_len); |