summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/aes_core.c
diff options
context:
space:
mode:
authormiod <>2015-02-10 09:46:30 +0000
committermiod <>2015-02-10 09:46:30 +0000
commit03858c0228d8ccda7d170fe43e0be79cd0dc6e5b (patch)
tree8bb4657eb5417a2a0ea6710585ef13aa7b25433c /src/lib/libcrypto/aes/aes_core.c
parentce353b3f386d415a03ecda102110c5c3f9899966 (diff)
downloadopenbsd-03858c0228d8ccda7d170fe43e0be79cd0dc6e5b.tar.gz
openbsd-03858c0228d8ccda7d170fe43e0be79cd0dc6e5b.tar.bz2
openbsd-03858c0228d8ccda7d170fe43e0be79cd0dc6e5b.zip
Remove assert() or OPENSSL_assert() of pointers being non-NULL. The policy
for libraries in OpenBSD is to deliberately let NULL pointers cause a SIGSEGV. ok doug@ jsing@
Diffstat (limited to 'src/lib/libcrypto/aes/aes_core.c')
-rw-r--r--src/lib/libcrypto/aes/aes_core.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/aes/aes_core.c b/src/lib/libcrypto/aes/aes_core.c
index ee21057392..93c32b919b 100644
--- a/src/lib/libcrypto/aes/aes_core.c
+++ b/src/lib/libcrypto/aes/aes_core.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: aes_core.c,v 1.11 2014/07/09 09:10:07 miod Exp $ */ 1/* $OpenBSD: aes_core.c,v 1.12 2015/02/10 09:46:30 miod Exp $ */
2/** 2/**
3 * rijndael-alg-fst.c 3 * rijndael-alg-fst.c
4 * 4 *
@@ -33,7 +33,6 @@
33# define NDEBUG 33# define NDEBUG
34# endif 34# endif
35#endif 35#endif
36#include <assert.h>
37 36
38#include <stdlib.h> 37#include <stdlib.h>
39#include <openssl/aes.h> 38#include <openssl/aes.h>
@@ -795,7 +794,6 @@ AES_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key)
795 int r; 794 int r;
796#endif /* ?FULL_UNROLL */ 795#endif /* ?FULL_UNROLL */
797 796
798 assert(in && out && key);
799 rk = key->rd_key; 797 rk = key->rd_key;
800 798
801 /* 799 /*
@@ -986,7 +984,6 @@ AES_decrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key)
986 int r; 984 int r;
987#endif /* ?FULL_UNROLL */ 985#endif /* ?FULL_UNROLL */
988 986
989 assert(in && out && key);
990 rk = key->rd_key; 987 rk = key->rd_key;
991 988
992 /* 989 /*