--- /dev/null
+/* $OpenBSD: ripemd.h,v 1.1 2024/03/28 23:54:15 joshua Exp $ */
+/*
+ * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
+ *
+ * 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_RIPEMD_H
+#define _LIBCRYPTO_RIPEMD_H
+
+#ifndef _MSC_VER
+#include_next <openssl/ripemd.h>
+#else
+#include "../include/openssl/ripemd.h"
+#endif
+#include "crypto_namespace.h"
+
+LCRYPTO_USED(RIPEMD160_Init);
+LCRYPTO_USED(RIPEMD160_Update);
+LCRYPTO_USED(RIPEMD160_Final);
+LCRYPTO_USED(RIPEMD160);
+LCRYPTO_USED(RIPEMD160_Transform);
+
+#endif /* _LIBCRYPTO_RIPEMD_H */
-/* $OpenBSD: ripemd.c,v 1.17 2024/03/28 10:45:30 jsing Exp $ */
+/* $OpenBSD: ripemd.c,v 1.18 2024/03/28 23:54:15 joshua Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
return 1;
}
+LCRYPTO_ALIAS(RIPEMD160_Init);
int
RIPEMD160_Update(RIPEMD160_CTX *c, const void *data_, size_t len)
}
return 1;
}
+LCRYPTO_ALIAS(RIPEMD160_Update);
void
RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *data)
{
ripemd160_block_data_order(c, data, 1);
}
+LCRYPTO_ALIAS(RIPEMD160_Transform);
int
RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c)
return 1;
}
+LCRYPTO_ALIAS(RIPEMD160_Final);
unsigned char *
RIPEMD160(const unsigned char *d, size_t n,
explicit_bzero(&c, sizeof(c));
return (md);
}
+LCRYPTO_ALIAS(RIPEMD160);