diff options
| author | djm <> | 2013-01-26 06:10:22 +0000 |
|---|---|---|
| committer | djm <> | 2013-01-26 06:10:22 +0000 |
| commit | 4fd69672e5f9867343486cefcdfdd970465430d6 (patch) | |
| tree | 6305c1c4e36b099e146b0bf242578ba0877f0a81 /src/lib/libcrypto/evp | |
| parent | b5d213a0cd24f2632473a0ebaa6cc67485c1bf3d (diff) | |
| download | openbsd-4fd69672e5f9867343486cefcdfdd970465430d6.tar.gz openbsd-4fd69672e5f9867343486cefcdfdd970465430d6.tar.bz2 openbsd-4fd69672e5f9867343486cefcdfdd970465430d6.zip | |
remove ACSS, crank libcrypto major; ok markus@ deraadt@
Diffstat (limited to 'src/lib/libcrypto/evp')
| -rw-r--r-- | src/lib/libcrypto/evp/e_acss.c | 85 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 6 |
2 files changed, 0 insertions, 91 deletions
diff --git a/src/lib/libcrypto/evp/e_acss.c b/src/lib/libcrypto/evp/e_acss.c deleted file mode 100644 index 9084a63d51..0000000000 --- a/src/lib/libcrypto/evp/e_acss.c +++ /dev/null | |||
| @@ -1,85 +0,0 @@ | |||
| 1 | /* $Id: e_acss.c,v 1.3 2010/10/01 23:33:22 djm Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2004 The OpenBSD project | ||
| 4 | * | ||
| 5 | * Permission to use, copy, modify, and distribute this software for any | ||
| 6 | * purpose with or without fee is hereby granted, provided that the above | ||
| 7 | * copyright notice and this permission notice appear in all copies. | ||
| 8 | * | ||
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef OPENSSL_NO_ACSS | ||
| 19 | |||
| 20 | #include "cryptlib.h" | ||
| 21 | #include <openssl/evp.h> | ||
| 22 | #include <openssl/objects.h> | ||
| 23 | #include "evp_locl.h" | ||
| 24 | #include <openssl/acss.h> | ||
| 25 | |||
| 26 | typedef struct { | ||
| 27 | ACSS_KEY ks; | ||
| 28 | } EVP_ACSS_KEY; | ||
| 29 | |||
| 30 | #define data(ctx) EVP_C_DATA(EVP_ACSS_KEY,ctx) | ||
| 31 | |||
| 32 | static int acss_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | ||
| 33 | const unsigned char *iv, int enc); | ||
| 34 | static int acss_ciph(EVP_CIPHER_CTX *ctx, unsigned char *out, | ||
| 35 | const unsigned char *in, size_t inl); | ||
| 36 | static int acss_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr); | ||
| 37 | static const EVP_CIPHER acss_cipher = { | ||
| 38 | NID_undef, | ||
| 39 | 1,5,0, | ||
| 40 | 0, | ||
| 41 | acss_init_key, | ||
| 42 | acss_ciph, | ||
| 43 | NULL, | ||
| 44 | sizeof(EVP_ACSS_KEY), | ||
| 45 | NULL, | ||
| 46 | NULL, | ||
| 47 | acss_ctrl, | ||
| 48 | NULL | ||
| 49 | }; | ||
| 50 | |||
| 51 | const | ||
| 52 | EVP_CIPHER *EVP_acss(void) | ||
| 53 | { | ||
| 54 | return(&acss_cipher); | ||
| 55 | } | ||
| 56 | |||
| 57 | static int | ||
| 58 | acss_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | ||
| 59 | const unsigned char *iv, int enc) | ||
| 60 | { | ||
| 61 | acss_setkey(&data(ctx)->ks,key,enc,ACSS_MODE1); | ||
| 62 | return 1; | ||
| 63 | } | ||
| 64 | |||
| 65 | static int | ||
| 66 | acss_ciph(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, | ||
| 67 | size_t inl) | ||
| 68 | { | ||
| 69 | acss(&data(ctx)->ks,inl,in,out); | ||
| 70 | return 1; | ||
| 71 | } | ||
| 72 | |||
| 73 | static int | ||
| 74 | acss_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) | ||
| 75 | { | ||
| 76 | switch(type) { | ||
| 77 | case EVP_CTRL_SET_ACSS_MODE: | ||
| 78 | data(ctx)->ks.mode = arg; | ||
| 79 | return 1; | ||
| 80 | |||
| 81 | default: | ||
| 82 | return -1; | ||
| 83 | } | ||
| 84 | } | ||
| 85 | #endif | ||
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index aa9616e11b..3b1fa87576 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
| @@ -394,9 +394,6 @@ struct evp_cipher_st | |||
| 394 | /* Set the GCM invocation field, decrypt only */ | 394 | /* Set the GCM invocation field, decrypt only */ |
| 395 | #define EVP_CTRL_GCM_SET_IV_INV 0x18 | 395 | #define EVP_CTRL_GCM_SET_IV_INV 0x18 |
| 396 | 396 | ||
| 397 | /* OpenBSD extension */ | ||
| 398 | #define EVP_CTRL_SET_ACSS_MODE 0x80 | ||
| 399 | |||
| 400 | /* GCM TLS constants */ | 397 | /* GCM TLS constants */ |
| 401 | /* Length of fixed part of IV derived from PRF */ | 398 | /* Length of fixed part of IV derived from PRF */ |
| 402 | #define EVP_GCM_TLS_FIXED_IV_LEN 4 | 399 | #define EVP_GCM_TLS_FIXED_IV_LEN 4 |
| @@ -820,9 +817,6 @@ const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void); | |||
| 820 | const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1(void); | 817 | const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1(void); |
| 821 | #endif | 818 | #endif |
| 822 | #endif | 819 | #endif |
| 823 | #ifndef OPENSSL_NO_ACSS | ||
| 824 | const EVP_CIPHER *EVP_acss(void); | ||
| 825 | #endif | ||
| 826 | #ifndef OPENSSL_NO_CAMELLIA | 820 | #ifndef OPENSSL_NO_CAMELLIA |
| 827 | const EVP_CIPHER *EVP_camellia_128_ecb(void); | 821 | const EVP_CIPHER *EVP_camellia_128_ecb(void); |
| 828 | const EVP_CIPHER *EVP_camellia_128_cbc(void); | 822 | const EVP_CIPHER *EVP_camellia_128_cbc(void); |
