Sha256: f6c0ff19f7bce0880718510881aab95b62cd88ac301ae9517a5771e7ffe94b75

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 KB

Contents

#ifndef poly1305_donna_H
#define poly1305_donna_H

#include <stddef.h>

#include "crypto_onetimeauth_poly1305.h"

typedef crypto_onetimeauth_poly1305_state poly1305_context;

extern struct crypto_onetimeauth_poly1305_implementation
    crypto_onetimeauth_poly1305_donna_implementation;

const char *crypto_onetimeauth_poly1305_donna_implementation_name(void);

int crypto_onetimeauth_poly1305_donna(unsigned char *out,
                                      const unsigned char *in,
                                      unsigned long long inlen,
                                      const unsigned char *k);

int crypto_onetimeauth_poly1305_donna_verify(const unsigned char *h,
                                             const unsigned char *in,
                                             unsigned long long inlen,
                                             const unsigned char *k);

int crypto_onetimeauth_poly1305_donna_init(crypto_onetimeauth_poly1305_state *state,
                                           const unsigned char *key);

int crypto_onetimeauth_poly1305_donna_update(crypto_onetimeauth_poly1305_state *state,
                                             const unsigned char *in,
                                             unsigned long long inlen);

int crypto_onetimeauth_poly1305_donna_final(crypto_onetimeauth_poly1305_state *state,
                                            unsigned char *out);

#endif /* __POLY1305_DONNA_H__ */

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.h