_libre_BN_get_rfc3526_prime_6144
_libre_BN_get_rfc3526_prime_8192
_libre_ERR_load_BN_strings
+_libre_SHA1_Init
+_libre_SHA1_Update
+_libre_SHA1_Final
+_libre_SHA1
+_libre_SHA1_Transform
+_libre_SHA224_Init
+_libre_SHA224_Update
+_libre_SHA224_Final
+_libre_SHA224
+_libre_SHA256_Init
+_libre_SHA256_Update
+_libre_SHA256_Final
+_libre_SHA256
+_libre_SHA256_Transform
+_libre_SHA384_Init
+_libre_SHA384_Update
+_libre_SHA384_Final
+_libre_SHA384
+_libre_SHA512_Init
+_libre_SHA512_Update
+_libre_SHA512_Final
+_libre_SHA512
+_libre_SHA512_Transform
--- /dev/null
+/* $OpenBSD: sha.h,v 1.1 2023/07/08 12:24:10 beck Exp $ */
+/*
+ * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBCRYPTO_SHA_H
+#define _LIBCRYPTO_SHA_H
+
+#ifndef _MSC_VER
+#include_next <openssl/sha.h>
+#else
+#include "../include/openssl/sha.h"
+#endif
+#include "crypto_namespace.h"
+
+LCRYPTO_USED(SHA1_Init);
+LCRYPTO_USED(SHA1_Update);
+LCRYPTO_USED(SHA1_Final);
+LCRYPTO_USED(SHA1);
+LCRYPTO_USED(SHA1_Transform);
+LCRYPTO_USED(SHA224_Init);
+LCRYPTO_USED(SHA224_Update);
+LCRYPTO_USED(SHA224_Final);
+LCRYPTO_USED(SHA224);
+LCRYPTO_USED(SHA256_Init);
+LCRYPTO_USED(SHA256_Update);
+LCRYPTO_USED(SHA256_Final);
+LCRYPTO_USED(SHA256);
+LCRYPTO_USED(SHA256_Transform);
+LCRYPTO_USED(SHA384_Init);
+LCRYPTO_USED(SHA384_Update);
+LCRYPTO_USED(SHA384_Final);
+LCRYPTO_USED(SHA384);
+LCRYPTO_USED(SHA512_Init);
+LCRYPTO_USED(SHA512_Update);
+LCRYPTO_USED(SHA512_Final);
+LCRYPTO_USED(SHA512);
+LCRYPTO_USED(SHA512_Transform);
+
+#endif /* _LIBCRYPTO_SHA_H */
-/* $OpenBSD: sha1.c,v 1.10 2023/07/08 07:58:25 jsing Exp $ */
+/* $OpenBSD: sha1.c,v 1.11 2023/07/08 12:24:10 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
return 1;
}
+LCRYPTO_ALIAS(SHA1_Init);
int
SHA1_Update(SHA_CTX *c, const void *data_, size_t len)
}
return 1;
}
+LCRYPTO_ALIAS(SHA1_Update);
void
SHA1_Transform(SHA_CTX *c, const unsigned char *data)
{
sha1_block_data_order(c, data, 1);
}
+LCRYPTO_ALIAS(SHA1_Transform);
int
SHA1_Final(unsigned char *md, SHA_CTX *c)
return 1;
}
+LCRYPTO_ALIAS(SHA1_Final);
unsigned char *
SHA1(const unsigned char *d, size_t n, unsigned char *md)
return (md);
}
+LCRYPTO_ALIAS(SHA1);
#endif
-/* $OpenBSD: sha256.c,v 1.26 2023/07/07 15:06:50 jsing Exp $ */
+/* $OpenBSD: sha256.c,v 1.27 2023/07/08 12:24:10 beck Exp $ */
/* ====================================================================
* Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
*
return 1;
}
+LCRYPTO_ALIAS(SHA224_Init);
int
SHA224_Update(SHA256_CTX *c, const void *data, size_t len)
{
return SHA256_Update(c, data, len);
}
+LCRYPTO_ALIAS(SHA224_Update);
int
SHA224_Final(unsigned char *md, SHA256_CTX *c)
{
return SHA256_Final(md, c);
}
+LCRYPTO_ALIAS(SHA224_Final);
unsigned char *
SHA224(const unsigned char *d, size_t n, unsigned char *md)
return (md);
}
+LCRYPTO_ALIAS(SHA224);
int
SHA256_Init(SHA256_CTX *c)
return 1;
}
+LCRYPTO_ALIAS(SHA256_Init);
int
SHA256_Update(SHA256_CTX *c, const void *data_, size_t len)
}
return 1;
}
+LCRYPTO_ALIAS(SHA256_Update);
void
SHA256_Transform(SHA256_CTX *c, const unsigned char *data)
{
sha256_block_data_order(c, data, 1);
}
+LCRYPTO_ALIAS(SHA256_Transform);
int
SHA256_Final(unsigned char *md, SHA256_CTX *c)
return 1;
}
+LCRYPTO_ALIAS(SHA256_Final);
unsigned char *
SHA256(const unsigned char *d, size_t n, unsigned char *md)
return (md);
}
+LCRYPTO_ALIAS(SHA256);
#endif /* OPENSSL_NO_SHA256 */
-/* $OpenBSD: sha512.c,v 1.40 2023/07/02 14:57:58 jsing Exp $ */
+/* $OpenBSD: sha512.c,v 1.41 2023/07/08 12:24:10 beck Exp $ */
/* ====================================================================
* Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
*
return 1;
}
+LCRYPTO_ALIAS(SHA384_Init);
int
SHA384_Update(SHA512_CTX *c, const void *data, size_t len)
{
return SHA512_Update(c, data, len);
}
+LCRYPTO_ALIAS(SHA384_Update);
int
SHA384_Final(unsigned char *md, SHA512_CTX *c)
{
return SHA512_Final(md, c);
}
+LCRYPTO_ALIAS(SHA384_Final);
unsigned char *
SHA384(const unsigned char *d, size_t n, unsigned char *md)
return (md);
}
+LCRYPTO_ALIAS(SHA384);
int
SHA512_Init(SHA512_CTX *c)
return 1;
}
+LCRYPTO_ALIAS(SHA512_Init);
void
SHA512_Transform(SHA512_CTX *c, const unsigned char *data)
{
sha512_block_data_order(c, data, 1);
}
+LCRYPTO_ALIAS(SHA512_Transform);
int
SHA512_Update(SHA512_CTX *c, const void *_data, size_t len)
return 1;
}
+LCRYPTO_ALIAS(SHA512_Update);
int
SHA512_Final(unsigned char *md, SHA512_CTX *c)
return 1;
}
+LCRYPTO_ALIAS(SHA512_Final);
unsigned char *
SHA512(const unsigned char *d, size_t n, unsigned char *md)
return (md);
}
+LCRYPTO_ALIAS(SHA512);
int
SHA512_224_Init(SHA512_CTX *c)