diff options
author | miod <> | 2014-07-09 09:10:07 +0000 |
---|---|---|
committer | miod <> | 2014-07-09 09:10:07 +0000 |
commit | 962b62471b32ccf7900a7f2658ec172fc691e25a (patch) | |
tree | 93160e1da443377034efa6bdda3406010ef1779a /src/lib/libcrypto/aes/aes_misc.c | |
parent | 93c72cf9da4c9d69f62ff20c6d3581aae665cb45 (diff) | |
download | openbsd-962b62471b32ccf7900a7f2658ec172fc691e25a.tar.gz openbsd-962b62471b32ccf7900a7f2658ec172fc691e25a.tar.bz2 openbsd-962b62471b32ccf7900a7f2658ec172fc691e25a.zip |
Kill more FIPS tentacles by removing the private_AES_set_{enc,dec}rypt_key()
internal interfaces, and promoting them to being the public
AES_set_{enc,dec}rypt_key() interfaces. In non-FIPS mode, these public
interfaces were directly calling the private ones.
ok guenther@ jsing@
Diffstat (limited to 'src/lib/libcrypto/aes/aes_misc.c')
-rw-r--r-- | src/lib/libcrypto/aes/aes_misc.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/aes/aes_misc.c b/src/lib/libcrypto/aes/aes_misc.c index 213e87537f..343fc33c70 100644 --- a/src/lib/libcrypto/aes/aes_misc.c +++ b/src/lib/libcrypto/aes/aes_misc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: aes_misc.c,v 1.8 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: aes_misc.c,v 1.9 2014/07/09 09:10:07 miod Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -65,19 +65,3 @@ AES_options(void) | |||
65 | return "aes(partial)"; | 65 | return "aes(partial)"; |
66 | #endif | 66 | #endif |
67 | } | 67 | } |
68 | |||
69 | /* FIPS wrapper functions to block low level AES calls in FIPS mode */ | ||
70 | |||
71 | int | ||
72 | AES_set_encrypt_key(const unsigned char *userKey, const int bits, | ||
73 | AES_KEY *key) | ||
74 | { | ||
75 | return private_AES_set_encrypt_key(userKey, bits, key); | ||
76 | } | ||
77 | |||
78 | int | ||
79 | AES_set_decrypt_key(const unsigned char *userKey, const int bits, | ||
80 | AES_KEY *key) | ||
81 | { | ||
82 | return private_AES_set_decrypt_key(userKey, bits, key); | ||
83 | } | ||