summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/poly1305
diff options
context:
space:
mode:
authorbeck <>2023-07-07 12:01:32 +0000
committerbeck <>2023-07-07 12:01:32 +0000
commit5c0527aa790cba96ac1060e17d6a3909694d8e4e (patch)
tree088d60cfe20bcd912db9923f7699deabc41696db /src/lib/libcrypto/poly1305
parent7e8c1dd29d6e69da1876294635c98160b2707e56 (diff)
downloadopenbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.tar.gz
openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.tar.bz2
openbsd-5c0527aa790cba96ac1060e17d6a3909694d8e4e.zip
hide symbols in sm, rand, and poly1305
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/poly1305')
-rw-r--r--src/lib/libcrypto/poly1305/poly1305.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/poly1305/poly1305.c b/src/lib/libcrypto/poly1305/poly1305.c
index 75a34cc3e1..a34e8f8e88 100644
--- a/src/lib/libcrypto/poly1305/poly1305.c
+++ b/src/lib/libcrypto/poly1305/poly1305.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: poly1305.c,v 1.3 2014/06/12 15:49:30 deraadt Exp $ */ 1/* $OpenBSD: poly1305.c,v 1.4 2023/07/07 12:01:32 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -23,6 +23,7 @@ CRYPTO_poly1305_init(poly1305_context *ctx, const unsigned char key[32])
23{ 23{
24 poly1305_init(ctx, key); 24 poly1305_init(ctx, key);
25} 25}
26LCRYPTO_ALIAS(CRYPTO_poly1305_init);
26 27
27void 28void
28CRYPTO_poly1305_update(poly1305_context *ctx, const unsigned char *in, 29CRYPTO_poly1305_update(poly1305_context *ctx, const unsigned char *in,
@@ -30,9 +31,11 @@ CRYPTO_poly1305_update(poly1305_context *ctx, const unsigned char *in,
30{ 31{
31 poly1305_update(ctx, in, len); 32 poly1305_update(ctx, in, len);
32} 33}
34LCRYPTO_ALIAS(CRYPTO_poly1305_update);
33 35
34void 36void
35CRYPTO_poly1305_finish(poly1305_context *ctx, unsigned char mac[16]) 37CRYPTO_poly1305_finish(poly1305_context *ctx, unsigned char mac[16])
36{ 38{
37 poly1305_finish(ctx, mac); 39 poly1305_finish(ctx, mac);
38} 40}
41LCRYPTO_ALIAS(CRYPTO_poly1305_finish);