Sha256: 5ec3b3f5bef6f8dd04bbb2754c0bec85e2e60af418955aabfa7911d35da6a875
Contents?: true
Size: 1020 Bytes
Versions: 5
Compression:
Stored size: 1020 Bytes
Contents
#include "crypto_onetimeauth_poly1305.h" #include "crypto_onetimeauth_poly1305_donna.h" static const crypto_onetimeauth_poly1305_implementation *implementation = &crypto_onetimeauth_poly1305_donna_implementation; int crypto_onetimeauth_poly1305_set_implementation(crypto_onetimeauth_poly1305_implementation *impl) { implementation = impl; return 0; } const char * crypto_onetimeauth_poly1305_implementation_name(void) { return implementation->implementation_name(); } int crypto_onetimeauth_poly1305(unsigned char *out, const unsigned char *in, unsigned long long inlen, const unsigned char *k) { return implementation->onetimeauth(out, in, inlen, k); } int crypto_onetimeauth_poly1305_verify(const unsigned char *h, const unsigned char *in, unsigned long long inlen, const unsigned char *k) { return implementation->onetimeauth_verify(h, in, inlen, k); }
Version data entries
5 entries across 5 versions & 1 rubygems