_libre_FIPS_mode_set
_libre_OPENSSL_init
_libre_CRYPTO_memcmp
+_libre_RAND_cleanup
+_libre_RAND_bytes
+_libre_RAND_pseudo_bytes
+_libre_RAND_seed
+_libre_RAND_add
+_libre_RAND_load_file
+_libre_RAND_write_file
+_libre_RAND_file_name
+_libre_RAND_status
+_libre_RAND_poll
-/* $OpenBSD: rand.h,v 1.3 2023/07/28 09:53:55 tb Exp $ */
+/* $OpenBSD: rand.h,v 1.4 2024/04/10 14:53:01 beck Exp $ */
/*
* Copyright (c) 2023 Bob Beck <beck@openbsd.org>
*
LCRYPTO_USED(RAND_get_rand_method);
LCRYPTO_USED(RAND_SSLeay);
LCRYPTO_USED(ERR_load_RAND_strings);
+LCRYPTO_UNUSED(RAND_cleanup);
+LCRYPTO_UNUSED(RAND_bytes);
+LCRYPTO_UNUSED(RAND_pseudo_bytes);
+LCRYPTO_UNUSED(RAND_seed);
+LCRYPTO_UNUSED(RAND_add);
+LCRYPTO_UNUSED(RAND_load_file);
+LCRYPTO_UNUSED(RAND_write_file);
+LCRYPTO_UNUSED(RAND_file_name);
+LCRYPTO_UNUSED(RAND_status);
+LCRYPTO_UNUSED(RAND_poll);
#endif /* _LIBCRYPTO_RAND_H */
-/* $OpenBSD: rand.h,v 1.24 2023/11/19 15:46:10 tb Exp $ */
+/* $OpenBSD: rand.h,v 1.25 2024/04/10 14:53:01 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
const RAND_METHOD *RAND_get_rand_method(void);
RAND_METHOD *RAND_SSLeay(void);
-#ifndef LIBRESSL_INTERNAL
void RAND_cleanup(void );
int RAND_bytes(unsigned char *buf, int num);
int RAND_pseudo_bytes(unsigned char *buf, int num);
const char *RAND_file_name(char *file, size_t num);
int RAND_status(void);
int RAND_poll(void);
-#endif
void ERR_load_RAND_strings(void);
-/* $OpenBSD: rand_lib.c,v 1.23 2023/11/19 15:46:10 tb Exp $ */
+/* $OpenBSD: rand_lib.c,v 1.24 2024/04/10 14:53:01 beck Exp $ */
/*
* Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
*
{
}
+LCRYPTO_ALIAS(RAND_cleanup);
void
RAND_seed(const void *buf, int num)
{
}
+LCRYPTO_ALIAS(RAND_seed);
void
RAND_add(const void *buf, int num, double entropy)
{
}
+LCRYPTO_ALIAS(RAND_add);
int
RAND_status(void)
{
return 1;
}
+LCRYPTO_ALIAS(RAND_status);
int
RAND_poll(void)
{
return 1;
}
+LCRYPTO_ALIAS(RAND_poll);
/*
* Hurray. You've made it to the good parts.
arc4random_buf(buf, num);
return 1;
}
+LCRYPTO_ALIAS(RAND_bytes);
int
RAND_pseudo_bytes(unsigned char *buf, int num)
arc4random_buf(buf, num);
return 1;
}
+LCRYPTO_ALIAS(RAND_pseudo_bytes);
-/* $OpenBSD: randfile.c,v 1.44 2023/07/07 19:37:54 beck Exp $ */
+/* $OpenBSD: randfile.c,v 1.45 2024/04/10 14:53:01 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
else
return bytes;
}
+LCRYPTO_ALIAS(RAND_load_file);
int
RAND_write_file(const char *file)
explicit_bzero(buf, BUFSIZE);
return ret;
}
+LCRYPTO_ALIAS(RAND_write_file);
const char *
RAND_file_name(char * buf, size_t size)
return (NULL);
return buf;
}
+LCRYPTO_ALIAS(RAND_file_name);