summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/aes_ige.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_ige.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_ige.c')
-rw-r--r--src/lib/libcrypto/aes/aes_ige.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/aes/aes_ige.c b/src/lib/libcrypto/aes/aes_ige.c
index a8dec0a361..16ef5612eb 100644
--- a/src/lib/libcrypto/aes/aes_ige.c
+++ b/src/lib/libcrypto/aes/aes_ige.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: aes_ige.c,v 1.6 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: aes_ige.c,v 1.7 2015/02/10 09:46:30 miod Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -81,10 +81,8 @@ AES_ige_encrypt(const unsigned char *in, unsigned char *out, size_t length,
81 const AES_KEY *key, unsigned char *ivec, const int enc) 81 const AES_KEY *key, unsigned char *ivec, const int enc)
82{ 82{
83 size_t n; 83 size_t n;
84 size_t len = length; 84 size_t len;
85 85
86 OPENSSL_assert(in && out && key && ivec);
87 OPENSSL_assert((AES_ENCRYPT == enc) || (AES_DECRYPT == enc));
88 OPENSSL_assert((length % AES_BLOCK_SIZE) == 0); 86 OPENSSL_assert((length % AES_BLOCK_SIZE) == 0);
89 87
90 len = length / AES_BLOCK_SIZE; 88 len = length / AES_BLOCK_SIZE;