From f546c9cfa636bac1b9cea06636115c49dd9bbe6b Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 11 Jun 2014 22:35:20 +0200 Subject: setup the tree for the secure boot feature (RHEL only) The file "CryptoPkg/Library/OpensslLib/Patch-HOWTO.txt" explains how to download, embed and patch openssl-0.9.8zf in edk2. Performing this step is necessary for the secure boot feature. While it can be easily automated in (S)RPM build scripts, for the exploded git repo it's best to include openssl in advance -- this way setting up an interactive build session remains fast and lightweight. The patch follows the instructions of "CryptoPkg/Library/OpensslLib/Patch-HOWTO.txt" and captures the result in git. Notes wrt. the a618eaa -> 3facc08 rebase: - upstream updated from openssl-0.9.8w to openssl-0.9.8za in commit a6908c9, take it into account here. Notes wrt. the 3facc08 -> 9ece15a rebase: - upstream updated from openssl-0.9.8za to openssl-0.9.8zb in commit f61d69c, take it into account here. Notes wrt. the 9ece15a -> c9e5618 rebase: - upstream updated from openssl-0.9.8zb to openssl-0.9.8zf. --- CryptoPkg/Include/openssl/aes.h | 150 + CryptoPkg/Include/openssl/asn1.h | 1343 +++ CryptoPkg/Include/openssl/asn1_mac.h | 572 ++ CryptoPkg/Include/openssl/asn1t.h | 904 ++ CryptoPkg/Include/openssl/bio.h | 811 ++ CryptoPkg/Include/openssl/blowfish.h | 130 + CryptoPkg/Include/openssl/bn.h | 913 ++ CryptoPkg/Include/openssl/buffer.h | 117 + CryptoPkg/Include/openssl/cast.h | 107 + CryptoPkg/Include/openssl/comp.h | 79 + CryptoPkg/Include/openssl/conf.h | 257 + CryptoPkg/Include/openssl/conf_api.h | 89 + CryptoPkg/Include/openssl/crypto.h | 680 ++ CryptoPkg/Include/openssl/des.h | 253 + CryptoPkg/Include/openssl/des_old.h | 497 ++ CryptoPkg/Include/openssl/dh.h | 251 + CryptoPkg/Include/openssl/dsa.h | 326 + CryptoPkg/Include/openssl/dso.h | 410 + CryptoPkg/Include/openssl/dtls1.h | 236 + CryptoPkg/Include/openssl/e_os2.h | 286 + CryptoPkg/Include/openssl/ebcdic.h | 19 + CryptoPkg/Include/openssl/ec.h | 570 ++ CryptoPkg/Include/openssl/ecdh.h | 125 + CryptoPkg/Include/openssl/ecdsa.h | 271 + CryptoPkg/Include/openssl/engine.h | 918 ++ CryptoPkg/Include/openssl/err.h | 339 + CryptoPkg/Include/openssl/evp.h | 1072 +++ CryptoPkg/Include/openssl/hmac.h | 108 + CryptoPkg/Include/openssl/idea.h | 105 + CryptoPkg/Include/openssl/krb5_asn.h | 240 + CryptoPkg/Include/openssl/kssl.h | 183 + CryptoPkg/Include/openssl/lhash.h | 199 + CryptoPkg/Include/openssl/md2.h | 94 + CryptoPkg/Include/openssl/md4.h | 119 + CryptoPkg/Include/openssl/md5.h | 119 + CryptoPkg/Include/openssl/obj_mac.h | 3913 +++++++++ CryptoPkg/Include/openssl/objects.h | 1055 +++ CryptoPkg/Include/openssl/ocsp.h | 626 ++ CryptoPkg/Include/openssl/opensslconf.h | 260 + CryptoPkg/Include/openssl/opensslv.h | 89 + CryptoPkg/Include/openssl/ossl_typ.h | 183 + CryptoPkg/Include/openssl/pem.h | 742 ++ CryptoPkg/Include/openssl/pem2.h | 70 + CryptoPkg/Include/openssl/pkcs12.h | 348 + CryptoPkg/Include/openssl/pkcs7.h | 450 + CryptoPkg/Include/openssl/pq_compat.h | 152 + CryptoPkg/Include/openssl/pqueue.h | 95 + CryptoPkg/Include/openssl/rand.h | 168 + CryptoPkg/Include/openssl/rc2.h | 103 + CryptoPkg/Include/openssl/rc4.h | 88 + CryptoPkg/Include/openssl/ripemd.h | 104 + CryptoPkg/Include/openssl/rsa.h | 525 ++ CryptoPkg/Include/openssl/safestack.h | 1992 +++++ CryptoPkg/Include/openssl/sha.h | 203 + CryptoPkg/Include/openssl/ssl.h | 2243 +++++ CryptoPkg/Include/openssl/ssl2.h | 261 + CryptoPkg/Include/openssl/ssl23.h | 84 + CryptoPkg/Include/openssl/ssl3.h | 615 ++ CryptoPkg/Include/openssl/stack.h | 107 + CryptoPkg/Include/openssl/store.h | 651 ++ CryptoPkg/Include/openssl/symhacks.h | 438 + CryptoPkg/Include/openssl/tls1.h | 466 + CryptoPkg/Include/openssl/tmdiff.h | 91 + CryptoPkg/Include/openssl/txt_db.h | 108 + CryptoPkg/Include/openssl/ui.h | 406 + CryptoPkg/Include/openssl/ui_compat.h | 88 + CryptoPkg/Include/openssl/x509.h | 1362 +++ CryptoPkg/Include/openssl/x509_vfy.h | 556 ++ CryptoPkg/Include/openssl/x509v3.h | 941 ++ .../OpensslLib/openssl-0.9.8zf/ACKNOWLEDGMENTS | 30 + .../Library/OpensslLib/openssl-0.9.8zf/CHANGES | 9032 ++++++++++++++++++++ .../OpensslLib/openssl-0.9.8zf/CHANGES.SSLeay | 968 +++ .../Library/OpensslLib/openssl-0.9.8zf/Configure | 2098 +++++ CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/FAQ | 1039 +++ .../Library/OpensslLib/openssl-0.9.8zf/INSTALL | 350 + .../OpensslLib/openssl-0.9.8zf/INSTALL.DJGPP | 47 + .../OpensslLib/openssl-0.9.8zf/INSTALL.MacOS | 72 + .../Library/OpensslLib/openssl-0.9.8zf/INSTALL.NW | 454 + .../Library/OpensslLib/openssl-0.9.8zf/INSTALL.OS2 | 31 + .../Library/OpensslLib/openssl-0.9.8zf/INSTALL.VMS | 299 + .../Library/OpensslLib/openssl-0.9.8zf/INSTALL.W32 | 321 + .../Library/OpensslLib/openssl-0.9.8zf/INSTALL.W64 | 66 + .../Library/OpensslLib/openssl-0.9.8zf/INSTALL.WCE | 74 + .../Library/OpensslLib/openssl-0.9.8zf/LICENSE | 127 + .../OpensslLib/openssl-0.9.8zf/MacOS/GUSI_Init.cpp | 62 + .../MacOS/GetHTTPS.src/CPStringUtils.cpp | 2753 ++++++ .../MacOS/GetHTTPS.src/CPStringUtils.hpp | 104 + .../MacOS/GetHTTPS.src/ErrorHandling.cpp | 170 + .../MacOS/GetHTTPS.src/ErrorHandling.hpp | 147 + .../MacOS/GetHTTPS.src/GetHTTPS.cpp | 209 + .../MacOS/GetHTTPS.src/MacSocket.cpp | 1607 ++++ .../openssl-0.9.8zf/MacOS/GetHTTPS.src/MacSocket.h | 104 + .../openssl-0.9.8zf/MacOS/OpenSSL.mcp.hqx | 4940 +++++++++++ .../openssl-0.9.8zf/MacOS/Randomizer.cpp | 476 ++ .../OpensslLib/openssl-0.9.8zf/MacOS/Randomizer.h | 42 + .../Library/OpensslLib/openssl-0.9.8zf/MacOS/TODO | 18 + .../openssl-0.9.8zf/MacOS/_MWERKS_GUSI_prefix.h | 9 + .../openssl-0.9.8zf/MacOS/_MWERKS_prefix.h | 9 + .../OpensslLib/openssl-0.9.8zf/MacOS/buildinf.h | 5 + .../openssl-0.9.8zf/MacOS/mklinks.as.hqx | 820 ++ .../OpensslLib/openssl-0.9.8zf/MacOS/opensslconf.h | 126 + .../Library/OpensslLib/openssl-0.9.8zf/Makefile | 732 ++ .../OpensslLib/openssl-0.9.8zf/Makefile.bak | 732 ++ .../OpensslLib/openssl-0.9.8zf/Makefile.org | 730 ++ .../OpensslLib/openssl-0.9.8zf/Makefile.shared | 609 ++ CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/NEWS | 633 ++ .../OpensslLib/openssl-0.9.8zf/Netware/build.bat | 228 + .../openssl-0.9.8zf/Netware/cpy_tests.bat | 113 + .../OpensslLib/openssl-0.9.8zf/Netware/do_tests.pl | 624 ++ .../OpensslLib/openssl-0.9.8zf/Netware/globals.txt | 254 + .../OpensslLib/openssl-0.9.8zf/Netware/readme.txt | 19 + .../OpensslLib/openssl-0.9.8zf/Netware/set_env.bat | 112 + .../Library/OpensslLib/openssl-0.9.8zf/PROBLEMS | 199 + .../Library/OpensslLib/openssl-0.9.8zf/README | 218 + .../Library/OpensslLib/openssl-0.9.8zf/README.ASN1 | 187 + .../OpensslLib/openssl-0.9.8zf/README.ENGINE | 289 + .../Library/OpensslLib/openssl-0.9.8zf/VMS/TODO | 18 + .../OpensslLib/openssl-0.9.8zf/VMS/VMSify-conf.pl | 34 + .../OpensslLib/openssl-0.9.8zf/VMS/WISHLIST.TXT | 4 + .../OpensslLib/openssl-0.9.8zf/VMS/install.com | 79 + .../OpensslLib/openssl-0.9.8zf/VMS/mkshared.com | 371 + .../openssl-0.9.8zf/VMS/multinet_shr.opt | 1 + .../openssl-0.9.8zf/VMS/openssl_utils.com | 46 + .../openssl-0.9.8zf/VMS/socketshr_shr.opt | 1 + .../openssl-0.9.8zf/VMS/tcpip_shr_decc.opt | 1 + .../openssl-0.9.8zf/VMS/test-includes.com | 28 + .../openssl-0.9.8zf/VMS/ucx_shr_decc.opt | 1 + .../openssl-0.9.8zf/VMS/ucx_shr_decc_log.opt | 1 + .../openssl-0.9.8zf/VMS/ucx_shr_vaxc.opt | 1 + .../Library/OpensslLib/openssl-0.9.8zf/apps/CA.com | 220 + .../Library/OpensslLib/openssl-0.9.8zf/apps/CA.pl | 189 + .../OpensslLib/openssl-0.9.8zf/apps/CA.pl.in | 189 + .../Library/OpensslLib/openssl-0.9.8zf/apps/CA.sh | 198 + .../OpensslLib/openssl-0.9.8zf/apps/Makefile | 985 +++ .../OpensslLib/openssl-0.9.8zf/apps/app_rand.c | 220 + .../Library/OpensslLib/openssl-0.9.8zf/apps/apps.c | 2447 ++++++ .../Library/OpensslLib/openssl-0.9.8zf/apps/apps.h | 368 + .../OpensslLib/openssl-0.9.8zf/apps/asn1pars.c | 430 + .../OpensslLib/openssl-0.9.8zf/apps/ca-cert.srl | 1 + .../OpensslLib/openssl-0.9.8zf/apps/ca-key.pem | 15 + .../OpensslLib/openssl-0.9.8zf/apps/ca-req.pem | 11 + .../Library/OpensslLib/openssl-0.9.8zf/apps/ca.c | 2879 +++++++ .../OpensslLib/openssl-0.9.8zf/apps/cert.pem | 11 + .../OpensslLib/openssl-0.9.8zf/apps/ciphers.c | 201 + .../OpensslLib/openssl-0.9.8zf/apps/client.pem | 24 + .../Library/OpensslLib/openssl-0.9.8zf/apps/cms.c | 1183 +++ .../Library/OpensslLib/openssl-0.9.8zf/apps/crl.c | 418 + .../OpensslLib/openssl-0.9.8zf/apps/crl2p7.c | 341 + .../openssl-0.9.8zf/apps/demoCA/cacert.pem | 14 + .../openssl-0.9.8zf/apps/demoCA/index.txt | 39 + .../openssl-0.9.8zf/apps/demoCA/private/cakey.pem | 24 + .../OpensslLib/openssl-0.9.8zf/apps/demoCA/serial | 1 + .../Library/OpensslLib/openssl-0.9.8zf/apps/dgst.c | 522 ++ .../Library/OpensslLib/openssl-0.9.8zf/apps/dh.c | 331 + .../OpensslLib/openssl-0.9.8zf/apps/dh1024.pem | 10 + .../OpensslLib/openssl-0.9.8zf/apps/dh2048.pem | 12 + .../OpensslLib/openssl-0.9.8zf/apps/dh4096.pem | 18 + .../OpensslLib/openssl-0.9.8zf/apps/dh512.pem | 9 + .../OpensslLib/openssl-0.9.8zf/apps/dhparam.c | 537 ++ .../OpensslLib/openssl-0.9.8zf/apps/dsa-ca.pem | 40 + .../OpensslLib/openssl-0.9.8zf/apps/dsa-pca.pem | 46 + .../Library/OpensslLib/openssl-0.9.8zf/apps/dsa.c | 334 + .../OpensslLib/openssl-0.9.8zf/apps/dsa1024.pem | 9 + .../OpensslLib/openssl-0.9.8zf/apps/dsa512.pem | 6 + .../OpensslLib/openssl-0.9.8zf/apps/dsap.pem | 6 + .../OpensslLib/openssl-0.9.8zf/apps/dsaparam.c | 464 + .../Library/OpensslLib/openssl-0.9.8zf/apps/ec.c | 359 + .../OpensslLib/openssl-0.9.8zf/apps/ecparam.c | 653 ++ .../Library/OpensslLib/openssl-0.9.8zf/apps/enc.c | 656 ++ .../OpensslLib/openssl-0.9.8zf/apps/engine.c | 510 ++ .../OpensslLib/openssl-0.9.8zf/apps/errstr.c | 121 + .../OpensslLib/openssl-0.9.8zf/apps/gendh.c | 242 + .../OpensslLib/openssl-0.9.8zf/apps/gendsa.c | 287 + .../OpensslLib/openssl-0.9.8zf/apps/genrsa.c | 356 + .../OpensslLib/openssl-0.9.8zf/apps/install.com | 65 + .../OpensslLib/openssl-0.9.8zf/apps/makeapps.com | 997 +++ .../Library/OpensslLib/openssl-0.9.8zf/apps/md4.c | 1 + .../Library/OpensslLib/openssl-0.9.8zf/apps/nseq.c | 170 + .../Library/OpensslLib/openssl-0.9.8zf/apps/ocsp.c | 1250 +++ .../OpensslLib/openssl-0.9.8zf/apps/oid.cnf | 6 + .../openssl-0.9.8zf/apps/openssl-vms.cnf | 313 + .../OpensslLib/openssl-0.9.8zf/apps/openssl.c | 525 ++ .../OpensslLib/openssl-0.9.8zf/apps/openssl.cnf | 313 + .../OpensslLib/openssl-0.9.8zf/apps/passwd.c | 494 ++ .../OpensslLib/openssl-0.9.8zf/apps/pca-cert.srl | 1 + .../OpensslLib/openssl-0.9.8zf/apps/pca-key.pem | 15 + .../OpensslLib/openssl-0.9.8zf/apps/pca-req.pem | 11 + .../OpensslLib/openssl-0.9.8zf/apps/pkcs12.c | 1060 +++ .../OpensslLib/openssl-0.9.8zf/apps/pkcs7.c | 303 + .../OpensslLib/openssl-0.9.8zf/apps/pkcs8.c | 411 + .../OpensslLib/openssl-0.9.8zf/apps/prime.c | 125 + .../OpensslLib/openssl-0.9.8zf/apps/privkey.pem | 18 + .../OpensslLib/openssl-0.9.8zf/apps/progs.h | 343 + .../OpensslLib/openssl-0.9.8zf/apps/progs.pl | 95 + .../Library/OpensslLib/openssl-0.9.8zf/apps/rand.c | 229 + .../Library/OpensslLib/openssl-0.9.8zf/apps/req.c | 1633 ++++ .../OpensslLib/openssl-0.9.8zf/apps/req.pem | 11 + .../Library/OpensslLib/openssl-0.9.8zf/apps/rsa.c | 399 + .../OpensslLib/openssl-0.9.8zf/apps/rsa8192.pem | 101 + .../OpensslLib/openssl-0.9.8zf/apps/rsautl.c | 364 + .../OpensslLib/openssl-0.9.8zf/apps/s1024key.pem | 15 + .../OpensslLib/openssl-0.9.8zf/apps/s1024req.pem | 11 + .../OpensslLib/openssl-0.9.8zf/apps/s512-key.pem | 9 + .../OpensslLib/openssl-0.9.8zf/apps/s512-req.pem | 8 + .../OpensslLib/openssl-0.9.8zf/apps/s_apps.h | 184 + .../Library/OpensslLib/openssl-0.9.8zf/apps/s_cb.c | 733 ++ .../OpensslLib/openssl-0.9.8zf/apps/s_client.c | 1537 ++++ .../OpensslLib/openssl-0.9.8zf/apps/s_server.c | 2436 ++++++ .../OpensslLib/openssl-0.9.8zf/apps/s_socket.c | 609 ++ .../OpensslLib/openssl-0.9.8zf/apps/s_time.c | 742 ++ .../OpensslLib/openssl-0.9.8zf/apps/server.pem | 369 + .../OpensslLib/openssl-0.9.8zf/apps/server.srl | 1 + .../OpensslLib/openssl-0.9.8zf/apps/server2.pem | 376 + .../OpensslLib/openssl-0.9.8zf/apps/sess_id.c | 298 + .../openssl-0.9.8zf/apps/set/set-g-ca.pem | 21 + .../openssl-0.9.8zf/apps/set/set-m-ca.pem | 21 + .../openssl-0.9.8zf/apps/set/set_b_ca.pem | 23 + .../openssl-0.9.8zf/apps/set/set_c_ca.pem | 21 + .../openssl-0.9.8zf/apps/set/set_d_ct.pem | 21 + .../openssl-0.9.8zf/apps/set/set_root.pem | 21 + .../OpensslLib/openssl-0.9.8zf/apps/smime.c | 705 ++ .../OpensslLib/openssl-0.9.8zf/apps/speed.c | 2851 ++++++ .../OpensslLib/openssl-0.9.8zf/apps/spkac.c | 312 + .../OpensslLib/openssl-0.9.8zf/apps/testCA.pem | 8 + .../OpensslLib/openssl-0.9.8zf/apps/testdsa.h | 233 + .../OpensslLib/openssl-0.9.8zf/apps/testrsa.h | 518 ++ .../OpensslLib/openssl-0.9.8zf/apps/timeouts.h | 67 + .../OpensslLib/openssl-0.9.8zf/apps/verify.c | 376 + .../OpensslLib/openssl-0.9.8zf/apps/version.c | 214 + .../OpensslLib/openssl-0.9.8zf/apps/winrand.c | 146 + .../Library/OpensslLib/openssl-0.9.8zf/apps/x509.c | 1194 +++ .../Library/OpensslLib/openssl-0.9.8zf/bugs/MS | 7 + .../Library/OpensslLib/openssl-0.9.8zf/bugs/SSLv3 | 49 + .../OpensslLib/openssl-0.9.8zf/bugs/alpha.c | 92 + .../OpensslLib/openssl-0.9.8zf/bugs/dggccbug.c | 45 + .../OpensslLib/openssl-0.9.8zf/bugs/sgiccbug.c | 60 + .../OpensslLib/openssl-0.9.8zf/bugs/sslref.dif | 26 + .../OpensslLib/openssl-0.9.8zf/bugs/stream.c | 132 + .../OpensslLib/openssl-0.9.8zf/bugs/ultrixcc.c | 44 + .../openssl-0.9.8zf/certs/README.RootCerts | 4 + .../openssl-0.9.8zf/certs/demo/ca-cert.pem | 33 + .../openssl-0.9.8zf/certs/demo/dsa-ca.pem | 43 + .../openssl-0.9.8zf/certs/demo/dsa-pca.pem | 49 + .../openssl-0.9.8zf/certs/demo/pca-cert.pem | 33 + .../openssl-0.9.8zf/certs/expired/ICE.crl | 9 + .../Library/OpensslLib/openssl-0.9.8zf/config | 898 ++ .../OpensslLib/openssl-0.9.8zf/crypto/LPdir_nyi.c | 47 + .../OpensslLib/openssl-0.9.8zf/crypto/LPdir_unix.c | 126 + .../OpensslLib/openssl-0.9.8zf/crypto/LPdir_vms.c | 188 + .../OpensslLib/openssl-0.9.8zf/crypto/LPdir_win.c | 172 + .../openssl-0.9.8zf/crypto/LPdir_win32.c | 33 + .../openssl-0.9.8zf/crypto/LPdir_wince.c | 36 + .../OpensslLib/openssl-0.9.8zf/crypto/Makefile | 226 + .../OpensslLib/openssl-0.9.8zf/crypto/aes/Makefile | 131 + .../OpensslLib/openssl-0.9.8zf/crypto/aes/README | 3 + .../OpensslLib/openssl-0.9.8zf/crypto/aes/aes.h | 150 + .../openssl-0.9.8zf/crypto/aes/aes_cbc.c | 134 + .../openssl-0.9.8zf/crypto/aes/aes_cfb.c | 228 + .../openssl-0.9.8zf/crypto/aes/aes_core.c | 1169 +++ .../openssl-0.9.8zf/crypto/aes/aes_ctr.c | 145 + .../openssl-0.9.8zf/crypto/aes/aes_ecb.c | 73 + .../openssl-0.9.8zf/crypto/aes/aes_ige.c | 323 + .../openssl-0.9.8zf/crypto/aes/aes_locl.h | 89 + .../openssl-0.9.8zf/crypto/aes/aes_misc.c | 65 + .../openssl-0.9.8zf/crypto/aes/aes_ofb.c | 144 + .../openssl-0.9.8zf/crypto/aes/aes_wrap.c | 250 + .../openssl-0.9.8zf/crypto/aes/asm/aes-586.pl | 1533 ++++ .../openssl-0.9.8zf/crypto/aes/asm/aes-ia64.S | 1123 +++ .../openssl-0.9.8zf/crypto/aes/asm/aes-x86_64.pl | 1591 ++++ .../openssl-0.9.8zf/crypto/asn1/Makefile | 904 ++ .../openssl-0.9.8zf/crypto/asn1/a_bitstr.c | 236 + .../openssl-0.9.8zf/crypto/asn1/a_bool.c | 111 + .../openssl-0.9.8zf/crypto/asn1/a_bytes.c | 306 + .../openssl-0.9.8zf/crypto/asn1/a_d2i_fp.c | 268 + .../openssl-0.9.8zf/crypto/asn1/a_digest.c | 109 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/a_dup.c | 117 + .../openssl-0.9.8zf/crypto/asn1/a_enum.c | 181 + .../openssl-0.9.8zf/crypto/asn1/a_gentm.c | 255 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/a_hdr.c | 118 + .../openssl-0.9.8zf/crypto/asn1/a_i2d_fp.c | 157 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/a_int.c | 462 + .../openssl-0.9.8zf/crypto/asn1/a_mbstr.c | 423 + .../openssl-0.9.8zf/crypto/asn1/a_meth.c | 86 + .../openssl-0.9.8zf/crypto/asn1/a_object.c | 396 + .../openssl-0.9.8zf/crypto/asn1/a_octet.c | 77 + .../openssl-0.9.8zf/crypto/asn1/a_print.c | 129 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/a_set.c | 236 + .../openssl-0.9.8zf/crypto/asn1/a_sign.c | 305 + .../openssl-0.9.8zf/crypto/asn1/a_strex.c | 648 ++ .../openssl-0.9.8zf/crypto/asn1/a_strnid.c | 314 + .../openssl-0.9.8zf/crypto/asn1/a_time.c | 166 + .../openssl-0.9.8zf/crypto/asn1/a_type.c | 154 + .../openssl-0.9.8zf/crypto/asn1/a_utctm.c | 304 + .../openssl-0.9.8zf/crypto/asn1/a_utf8.c | 237 + .../openssl-0.9.8zf/crypto/asn1/a_verify.c | 195 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1.h | 1343 +++ .../openssl-0.9.8zf/crypto/asn1/asn1_err.c | 338 + .../openssl-0.9.8zf/crypto/asn1/asn1_gen.c | 802 ++ .../openssl-0.9.8zf/crypto/asn1/asn1_lib.c | 466 + .../openssl-0.9.8zf/crypto/asn1/asn1_mac.h | 572 ++ .../openssl-0.9.8zf/crypto/asn1/asn1_par.c | 411 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1t.h | 904 ++ .../openssl-0.9.8zf/crypto/asn1/asn_mime.c | 905 ++ .../openssl-0.9.8zf/crypto/asn1/asn_moid.c | 153 + .../openssl-0.9.8zf/crypto/asn1/asn_pack.c | 206 + .../openssl-0.9.8zf/crypto/asn1/charmap.h | 15 + .../openssl-0.9.8zf/crypto/asn1/charmap.pl | 80 + .../openssl-0.9.8zf/crypto/asn1/d2i_pr.c | 169 + .../openssl-0.9.8zf/crypto/asn1/d2i_pu.c | 133 + .../openssl-0.9.8zf/crypto/asn1/evp_asn1.c | 195 + .../openssl-0.9.8zf/crypto/asn1/f_enum.c | 203 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/f_int.c | 215 + .../openssl-0.9.8zf/crypto/asn1/f_string.c | 209 + .../openssl-0.9.8zf/crypto/asn1/i2d_pr.c | 94 + .../openssl-0.9.8zf/crypto/asn1/i2d_pu.c | 93 + .../openssl-0.9.8zf/crypto/asn1/n_pkey.c | 335 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/nsseq.c | 83 + .../openssl-0.9.8zf/crypto/asn1/p5_pbe.c | 136 + .../openssl-0.9.8zf/crypto/asn1/p5_pbev2.c | 222 + .../openssl-0.9.8zf/crypto/asn1/p8_key.c | 130 + .../openssl-0.9.8zf/crypto/asn1/p8_pkey.c | 86 + .../openssl-0.9.8zf/crypto/asn1/t_bitst.c | 105 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/t_crl.c | 134 + .../openssl-0.9.8zf/crypto/asn1/t_pkey.c | 798 ++ .../OpensslLib/openssl-0.9.8zf/crypto/asn1/t_req.c | 273 + .../openssl-0.9.8zf/crypto/asn1/t_spki.c | 128 + .../openssl-0.9.8zf/crypto/asn1/t_x509.c | 529 ++ .../openssl-0.9.8zf/crypto/asn1/t_x509a.c | 115 + .../openssl-0.9.8zf/crypto/asn1/tasn_dec.c | 1226 +++ .../openssl-0.9.8zf/crypto/asn1/tasn_enc.c | 660 ++ .../openssl-0.9.8zf/crypto/asn1/tasn_fre.c | 249 + .../openssl-0.9.8zf/crypto/asn1/tasn_new.c | 380 + .../openssl-0.9.8zf/crypto/asn1/tasn_prn.c | 218 + .../openssl-0.9.8zf/crypto/asn1/tasn_typ.c | 138 + .../openssl-0.9.8zf/crypto/asn1/tasn_utl.c | 275 + .../openssl-0.9.8zf/crypto/asn1/x_algor.c | 133 + .../openssl-0.9.8zf/crypto/asn1/x_attrib.c | 124 + .../openssl-0.9.8zf/crypto/asn1/x_bignum.c | 152 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/x_crl.c | 148 + .../openssl-0.9.8zf/crypto/asn1/x_exten.c | 77 + .../openssl-0.9.8zf/crypto/asn1/x_info.c | 117 + .../openssl-0.9.8zf/crypto/asn1/x_long.c | 187 + .../openssl-0.9.8zf/crypto/asn1/x_name.c | 310 + .../openssl-0.9.8zf/crypto/asn1/x_pkey.c | 153 + .../openssl-0.9.8zf/crypto/asn1/x_pubkey.c | 522 ++ .../OpensslLib/openssl-0.9.8zf/crypto/asn1/x_req.c | 115 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/x_sig.c | 69 + .../openssl-0.9.8zf/crypto/asn1/x_spki.c | 82 + .../OpensslLib/openssl-0.9.8zf/crypto/asn1/x_val.c | 69 + .../openssl-0.9.8zf/crypto/asn1/x_x509.c | 217 + .../openssl-0.9.8zf/crypto/asn1/x_x509a.c | 193 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/COPYRIGHT | 46 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/INSTALL | 14 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/Makefile | 111 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/README | 8 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/VERSION | 6 + .../openssl-0.9.8zf/crypto/bf/asm/bf-586.pl | 136 + .../openssl-0.9.8zf/crypto/bf/asm/bf-686.pl | 127 + .../openssl-0.9.8zf/crypto/bf/asm/readme | 10 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_cbc.c | 135 + .../openssl-0.9.8zf/crypto/bf/bf_cfb64.c | 123 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_ecb.c | 100 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_enc.c | 300 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_locl.h | 221 + .../openssl-0.9.8zf/crypto/bf/bf_ofb64.c | 110 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_opts.c | 324 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_pi.h | 579 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bf/bf_skey.c | 121 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bfs.cpp | 67 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bfspeed.c | 265 + .../OpensslLib/openssl-0.9.8zf/crypto/bf/bftest.c | 538 ++ .../openssl-0.9.8zf/crypto/bf/blowfish.h | 130 + .../OpensslLib/openssl-0.9.8zf/crypto/bio/Makefile | 221 + .../OpensslLib/openssl-0.9.8zf/crypto/bio/b_dump.c | 184 + .../openssl-0.9.8zf/crypto/bio/b_print.c | 816 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bio/b_sock.c | 758 ++ .../openssl-0.9.8zf/crypto/bio/bf_buff.c | 517 ++ .../openssl-0.9.8zf/crypto/bio/bf_lbuf.c | 391 + .../openssl-0.9.8zf/crypto/bio/bf_nbio.c | 251 + .../openssl-0.9.8zf/crypto/bio/bf_null.c | 189 + .../OpensslLib/openssl-0.9.8zf/crypto/bio/bio.h | 811 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bio/bio_cb.c | 138 + .../openssl-0.9.8zf/crypto/bio/bio_err.c | 155 + .../openssl-0.9.8zf/crypto/bio/bio_lcl.h | 28 + .../openssl-0.9.8zf/crypto/bio/bio_lib.c | 594 ++ .../openssl-0.9.8zf/crypto/bio/bss_acpt.c | 463 + .../openssl-0.9.8zf/crypto/bio/bss_bio.c | 886 ++ .../openssl-0.9.8zf/crypto/bio/bss_conn.c | 603 ++ .../openssl-0.9.8zf/crypto/bio/bss_dgram.c | 743 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bio/bss_fd.c | 287 + .../openssl-0.9.8zf/crypto/bio/bss_file.c | 440 + .../openssl-0.9.8zf/crypto/bio/bss_log.c | 452 + .../openssl-0.9.8zf/crypto/bio/bss_mem.c | 316 + .../openssl-0.9.8zf/crypto/bio/bss_null.c | 149 + .../openssl-0.9.8zf/crypto/bio/bss_rtcp.c | 319 + .../openssl-0.9.8zf/crypto/bio/bss_sock.c | 287 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/Makefile | 362 + .../openssl-0.9.8zf/crypto/bn/asm/README | 27 + .../openssl-0.9.8zf/crypto/bn/asm/bn-586.pl | 675 ++ .../openssl-0.9.8zf/crypto/bn/asm/co-586.pl | 286 + .../openssl-0.9.8zf/crypto/bn/asm/ia64.S | 1555 ++++ .../openssl-0.9.8zf/crypto/bn/asm/mips3.s | 2201 +++++ .../openssl-0.9.8zf/crypto/bn/asm/mo-586.pl | 605 ++ .../openssl-0.9.8zf/crypto/bn/asm/pa-risc2.s | 1618 ++++ .../openssl-0.9.8zf/crypto/bn/asm/pa-risc2W.s | 1605 ++++ .../openssl-0.9.8zf/crypto/bn/asm/ppc.pl | 2080 +++++ .../openssl-0.9.8zf/crypto/bn/asm/sparcv8.S | 1458 ++++ .../openssl-0.9.8zf/crypto/bn/asm/sparcv8plus.S | 1547 ++++ .../openssl-0.9.8zf/crypto/bn/asm/vms.mar | 6440 ++++++++++++++ .../openssl-0.9.8zf/crypto/bn/asm/x86.pl | 28 + .../openssl-0.9.8zf/crypto/bn/asm/x86/add.pl | 76 + .../openssl-0.9.8zf/crypto/bn/asm/x86/comba.pl | 277 + .../openssl-0.9.8zf/crypto/bn/asm/x86/div.pl | 15 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/f | 3 + .../openssl-0.9.8zf/crypto/bn/asm/x86/mul.pl | 77 + .../openssl-0.9.8zf/crypto/bn/asm/x86/mul_add.pl | 87 + .../openssl-0.9.8zf/crypto/bn/asm/x86/sqr.pl | 60 + .../openssl-0.9.8zf/crypto/bn/asm/x86/sub.pl | 76 + .../openssl-0.9.8zf/crypto/bn/asm/x86_64-gcc.c | 632 ++ .../openssl-0.9.8zf/crypto/bn/asm/x86_64-mont.pl | 214 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn.h | 913 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn.mul | 19 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_add.c | 313 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_asm.c | 920 ++ .../openssl-0.9.8zf/crypto/bn/bn_blind.c | 374 + .../openssl-0.9.8zf/crypto/bn/bn_const.c | 547 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_ctx.c | 448 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_depr.c | 115 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_div.c | 691 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_err.c | 150 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_exp.c | 1007 +++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_exp2.c | 303 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_gcd.c | 699 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_gf2m.c | 1369 +++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_kron.c | 186 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_lcl.h | 484 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_lib.c | 854 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mod.c | 316 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mont.c | 801 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mpi.c | 128 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mul.c | 1164 +++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_nist.c | 875 ++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_opt.c | 86 + .../openssl-0.9.8zf/crypto/bn/bn_prime.c | 515 ++ .../openssl-0.9.8zf/crypto/bn/bn_prime.h | 326 + .../openssl-0.9.8zf/crypto/bn/bn_prime.pl | 119 + .../openssl-0.9.8zf/crypto/bn/bn_print.c | 347 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_rand.c | 289 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_recp.c | 249 + .../openssl-0.9.8zf/crypto/bn/bn_shift.c | 209 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_sqr.c | 290 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_sqrt.c | 409 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bn_word.c | 227 + .../openssl-0.9.8zf/crypto/bn/bn_x931p.c | 274 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bnspeed.c | 232 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/bntest.c | 2015 +++++ .../OpensslLib/openssl-0.9.8zf/crypto/bn/divtest.c | 42 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/exp.c | 61 + .../openssl-0.9.8zf/crypto/bn/expspeed.c | 381 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/exptest.c | 254 + .../OpensslLib/openssl-0.9.8zf/crypto/bn/todo | 3 + .../openssl-0.9.8zf/crypto/bn/vms-helper.c | 68 + .../openssl-0.9.8zf/crypto/buffer/Makefile | 97 + .../openssl-0.9.8zf/crypto/buffer/buf_err.c | 97 + .../openssl-0.9.8zf/crypto/buffer/buf_str.c | 116 + .../openssl-0.9.8zf/crypto/buffer/buffer.c | 176 + .../openssl-0.9.8zf/crypto/buffer/buffer.h | 117 + .../openssl-0.9.8zf/crypto/camellia/Makefile | 106 + .../openssl-0.9.8zf/crypto/camellia/camellia.c | 1668 ++++ .../openssl-0.9.8zf/crypto/camellia/camellia.h | 139 + .../openssl-0.9.8zf/crypto/camellia/cmll_cbc.c | 256 + .../openssl-0.9.8zf/crypto/camellia/cmll_cfb.c | 233 + .../openssl-0.9.8zf/crypto/camellia/cmll_ctr.c | 145 + .../openssl-0.9.8zf/crypto/camellia/cmll_ecb.c | 73 + .../openssl-0.9.8zf/crypto/camellia/cmll_locl.h | 163 + .../openssl-0.9.8zf/crypto/camellia/cmll_misc.c | 141 + .../openssl-0.9.8zf/crypto/camellia/cmll_ofb.c | 144 + .../openssl-0.9.8zf/crypto/cast/Makefile | 109 + .../openssl-0.9.8zf/crypto/cast/asm/cast-586.pl | 176 + .../openssl-0.9.8zf/crypto/cast/asm/readme | 7 + .../openssl-0.9.8zf/crypto/cast/c_cfb64.c | 123 + .../OpensslLib/openssl-0.9.8zf/crypto/cast/c_ecb.c | 83 + .../OpensslLib/openssl-0.9.8zf/crypto/cast/c_enc.c | 200 + .../openssl-0.9.8zf/crypto/cast/c_ofb64.c | 110 + .../openssl-0.9.8zf/crypto/cast/c_skey.c | 172 + .../OpensslLib/openssl-0.9.8zf/crypto/cast/cast.h | 107 + .../openssl-0.9.8zf/crypto/cast/cast_lcl.h | 225 + .../openssl-0.9.8zf/crypto/cast/cast_s.h | 592 ++ .../openssl-0.9.8zf/crypto/cast/cast_spd.c | 262 + .../openssl-0.9.8zf/crypto/cast/castopts.c | 334 + .../openssl-0.9.8zf/crypto/cast/casts.cpp | 70 + .../openssl-0.9.8zf/crypto/cast/casttest.c | 241 + .../OpensslLib/openssl-0.9.8zf/crypto/cms/Makefile | 183 + .../OpensslLib/openssl-0.9.8zf/crypto/cms/cms.h | 476 ++ .../openssl-0.9.8zf/crypto/cms/cms_asn1.c | 342 + .../openssl-0.9.8zf/crypto/cms/cms_att.c | 197 + .../OpensslLib/openssl-0.9.8zf/crypto/cms/cms_cd.c | 134 + .../OpensslLib/openssl-0.9.8zf/crypto/cms/cms_dd.c | 145 + .../openssl-0.9.8zf/crypto/cms/cms_enc.c | 260 + .../openssl-0.9.8zf/crypto/cms/cms_env.c | 775 ++ .../openssl-0.9.8zf/crypto/cms/cms_err.c | 279 + .../openssl-0.9.8zf/crypto/cms/cms_ess.c | 395 + .../OpensslLib/openssl-0.9.8zf/crypto/cms/cms_io.c | 138 + .../openssl-0.9.8zf/crypto/cms/cms_lcl.h | 432 + .../openssl-0.9.8zf/crypto/cms/cms_lib.c | 596 ++ .../OpensslLib/openssl-0.9.8zf/crypto/cms/cms_sd.c | 934 ++ .../openssl-0.9.8zf/crypto/cms/cms_smime.c | 782 ++ .../openssl-0.9.8zf/crypto/comp/Makefile | 108 + .../OpensslLib/openssl-0.9.8zf/crypto/comp/c_rle.c | 62 + .../openssl-0.9.8zf/crypto/comp/c_zlib.c | 761 ++ .../OpensslLib/openssl-0.9.8zf/crypto/comp/comp.h | 79 + .../openssl-0.9.8zf/crypto/comp/comp_err.c | 98 + .../openssl-0.9.8zf/crypto/comp/comp_lib.c | 66 + .../openssl-0.9.8zf/crypto/conf/Makefile | 153 + .../OpensslLib/openssl-0.9.8zf/crypto/conf/README | 78 + .../openssl-0.9.8zf/crypto/conf/cnf_save.c | 104 + .../OpensslLib/openssl-0.9.8zf/crypto/conf/conf.h | 257 + .../openssl-0.9.8zf/crypto/conf/conf_api.c | 310 + .../openssl-0.9.8zf/crypto/conf/conf_api.h | 89 + .../openssl-0.9.8zf/crypto/conf/conf_def.c | 709 ++ .../openssl-0.9.8zf/crypto/conf/conf_def.h | 181 + .../openssl-0.9.8zf/crypto/conf/conf_err.c | 131 + .../openssl-0.9.8zf/crypto/conf/conf_lib.c | 385 + .../openssl-0.9.8zf/crypto/conf/conf_mall.c | 82 + .../openssl-0.9.8zf/crypto/conf/conf_mod.c | 592 ++ .../openssl-0.9.8zf/crypto/conf/conf_sap.c | 111 + .../openssl-0.9.8zf/crypto/conf/keysets.pl | 185 + .../openssl-0.9.8zf/crypto/conf/ssleay.cnf | 78 + .../OpensslLib/openssl-0.9.8zf/crypto/conf/test.c | 97 + .../openssl-0.9.8zf/crypto/constant_time_locl.h | 211 + .../openssl-0.9.8zf/crypto/constant_time_test.c | 304 + .../OpensslLib/openssl-0.9.8zf/crypto/cpt_err.c | 102 + .../OpensslLib/openssl-0.9.8zf/crypto/cryptlib.c | 607 ++ .../OpensslLib/openssl-0.9.8zf/crypto/cryptlib.h | 111 + .../openssl-0.9.8zf/crypto/crypto-lib.com | 1326 +++ .../OpensslLib/openssl-0.9.8zf/crypto/crypto.h | 680 ++ .../OpensslLib/openssl-0.9.8zf/crypto/cversion.c | 112 + .../openssl-0.9.8zf/crypto/des/COPYRIGHT | 50 + .../OpensslLib/openssl-0.9.8zf/crypto/des/DES.pm | 19 + .../OpensslLib/openssl-0.9.8zf/crypto/des/DES.xs | 268 + .../OpensslLib/openssl-0.9.8zf/crypto/des/FILES0 | 96 + .../OpensslLib/openssl-0.9.8zf/crypto/des/INSTALL | 69 + .../openssl-0.9.8zf/crypto/des/Imakefile | 35 + .../OpensslLib/openssl-0.9.8zf/crypto/des/KERBEROS | 41 + .../OpensslLib/openssl-0.9.8zf/crypto/des/Makefile | 297 + .../OpensslLib/openssl-0.9.8zf/crypto/des/README | 54 + .../OpensslLib/openssl-0.9.8zf/crypto/des/VERSION | 412 + .../openssl-0.9.8zf/crypto/des/asm/crypt586.pl | 208 + .../openssl-0.9.8zf/crypto/des/asm/des-586.pl | 251 + .../openssl-0.9.8zf/crypto/des/asm/des686.pl | 230 + .../openssl-0.9.8zf/crypto/des/asm/des_enc.m4 | 2097 +++++ .../openssl-0.9.8zf/crypto/des/asm/desboth.pl | 79 + .../openssl-0.9.8zf/crypto/des/asm/readme | 131 + .../openssl-0.9.8zf/crypto/des/cbc3_enc.c | 95 + .../openssl-0.9.8zf/crypto/des/cbc_cksm.c | 103 + .../openssl-0.9.8zf/crypto/des/cbc_enc.c | 61 + .../openssl-0.9.8zf/crypto/des/cfb64ede.c | 249 + .../openssl-0.9.8zf/crypto/des/cfb64enc.c | 122 + .../openssl-0.9.8zf/crypto/des/cfb_enc.c | 199 + .../openssl-0.9.8zf/crypto/des/des-lib.com | 1005 +++ .../OpensslLib/openssl-0.9.8zf/crypto/des/des.c | 866 ++ .../OpensslLib/openssl-0.9.8zf/crypto/des/des.h | 253 + .../OpensslLib/openssl-0.9.8zf/crypto/des/des.pod | 217 + .../openssl-0.9.8zf/crypto/des/des3s.cpp | 67 + .../openssl-0.9.8zf/crypto/des/des_enc.c | 400 + .../openssl-0.9.8zf/crypto/des/des_lib.c | 104 + .../openssl-0.9.8zf/crypto/des/des_locl.h | 437 + .../openssl-0.9.8zf/crypto/des/des_old.c | 345 + .../openssl-0.9.8zf/crypto/des/des_old.h | 497 ++ .../openssl-0.9.8zf/crypto/des/des_old2.c | 80 + .../openssl-0.9.8zf/crypto/des/des_opts.c | 641 ++ .../openssl-0.9.8zf/crypto/des/des_ver.h | 73 + .../OpensslLib/openssl-0.9.8zf/crypto/des/dess.cpp | 67 + .../openssl-0.9.8zf/crypto/des/destest.c | 929 ++ .../openssl-0.9.8zf/crypto/des/ecb3_enc.c | 82 + .../openssl-0.9.8zf/crypto/des/ecb_enc.c | 80 + .../openssl-0.9.8zf/crypto/des/ede_cbcm_enc.c | 189 + .../openssl-0.9.8zf/crypto/des/enc_read.c | 228 + .../openssl-0.9.8zf/crypto/des/enc_writ.c | 173 + .../OpensslLib/openssl-0.9.8zf/crypto/des/fcrypt.c | 167 + .../openssl-0.9.8zf/crypto/des/fcrypt_b.c | 142 + .../openssl-0.9.8zf/crypto/des/makefile.bc | 50 + .../openssl-0.9.8zf/crypto/des/ncbc_enc.c | 154 + .../openssl-0.9.8zf/crypto/des/ofb64ede.c | 123 + .../openssl-0.9.8zf/crypto/des/ofb64enc.c | 109 + .../openssl-0.9.8zf/crypto/des/ofb_enc.c | 131 + .../openssl-0.9.8zf/crypto/des/options.txt | 39 + .../openssl-0.9.8zf/crypto/des/pcbc_enc.c | 115 + .../openssl-0.9.8zf/crypto/des/qud_cksm.c | 143 + .../openssl-0.9.8zf/crypto/des/rand_key.c | 67 + .../openssl-0.9.8zf/crypto/des/read2pwd.c | 140 + .../openssl-0.9.8zf/crypto/des/read_pwd.c | 533 ++ .../openssl-0.9.8zf/crypto/des/rpc_des.h | 130 + .../openssl-0.9.8zf/crypto/des/rpc_enc.c | 100 + .../OpensslLib/openssl-0.9.8zf/crypto/des/rpw.c | 94 + .../openssl-0.9.8zf/crypto/des/set_key.c | 442 + .../OpensslLib/openssl-0.9.8zf/crypto/des/speed.c | 299 + .../OpensslLib/openssl-0.9.8zf/crypto/des/spr.h | 212 + .../openssl-0.9.8zf/crypto/des/str2key.c | 164 + .../OpensslLib/openssl-0.9.8zf/crypto/des/t/test | 27 + .../openssl-0.9.8zf/crypto/des/times/486-50.sol | 16 + .../openssl-0.9.8zf/crypto/des/times/586-100.lnx | 20 + .../openssl-0.9.8zf/crypto/des/times/686-200.fre | 18 + .../openssl-0.9.8zf/crypto/des/times/aix.cc | 26 + .../openssl-0.9.8zf/crypto/des/times/alpha.cc | 18 + .../openssl-0.9.8zf/crypto/des/times/hpux.cc | 17 + .../openssl-0.9.8zf/crypto/des/times/sparc.gcc | 17 + .../openssl-0.9.8zf/crypto/des/times/usparc.cc | 31 + .../OpensslLib/openssl-0.9.8zf/crypto/des/typemap | 34 + .../openssl-0.9.8zf/crypto/des/xcbc_enc.c | 216 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/Makefile | 139 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh.h | 251 + .../openssl-0.9.8zf/crypto/dh/dh1024.pem | 5 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh192.pem | 3 + .../openssl-0.9.8zf/crypto/dh/dh2048.pem | 16 + .../openssl-0.9.8zf/crypto/dh/dh4096.pem | 14 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh512.pem | 4 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh_asn1.c | 89 + .../openssl-0.9.8zf/crypto/dh/dh_check.c | 151 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh_depr.c | 82 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh_err.c | 106 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh_gen.c | 193 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh_key.c | 258 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dh_lib.c | 251 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/dhtest.c | 241 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/example | 50 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/generate | 65 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/p1024.c | 92 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/p192.c | 80 + .../OpensslLib/openssl-0.9.8zf/crypto/dh/p512.c | 85 + .../OpensslLib/openssl-0.9.8zf/crypto/dsa/Makefile | 188 + .../OpensslLib/openssl-0.9.8zf/crypto/dsa/README | 4 + .../OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa.h | 326 + .../openssl-0.9.8zf/crypto/dsa/dsa_asn1.c | 231 + .../openssl-0.9.8zf/crypto/dsa/dsa_depr.c | 113 + .../openssl-0.9.8zf/crypto/dsa/dsa_err.c | 119 + .../openssl-0.9.8zf/crypto/dsa/dsa_gen.c | 352 + .../openssl-0.9.8zf/crypto/dsa/dsa_key.c | 134 + .../openssl-0.9.8zf/crypto/dsa/dsa_lib.c | 316 + .../openssl-0.9.8zf/crypto/dsa/dsa_ossl.c | 412 + .../openssl-0.9.8zf/crypto/dsa/dsa_sign.c | 92 + .../openssl-0.9.8zf/crypto/dsa/dsa_utl.c | 93 + .../openssl-0.9.8zf/crypto/dsa/dsa_vrf.c | 83 + .../OpensslLib/openssl-0.9.8zf/crypto/dsa/dsagen.c | 115 + .../openssl-0.9.8zf/crypto/dsa/dsatest.c | 270 + .../openssl-0.9.8zf/crypto/dsa/fips186a.txt | 122 + .../OpensslLib/openssl-0.9.8zf/crypto/dso/Makefile | 142 + .../OpensslLib/openssl-0.9.8zf/crypto/dso/README | 22 + .../OpensslLib/openssl-0.9.8zf/crypto/dso/dso.h | 410 + .../OpensslLib/openssl-0.9.8zf/crypto/dso/dso_dl.c | 337 + .../openssl-0.9.8zf/crypto/dso/dso_dlfcn.c | 360 + .../openssl-0.9.8zf/crypto/dso/dso_err.c | 146 + .../openssl-0.9.8zf/crypto/dso/dso_lib.c | 429 + .../openssl-0.9.8zf/crypto/dso/dso_null.c | 90 + .../openssl-0.9.8zf/crypto/dso/dso_openssl.c | 81 + .../openssl-0.9.8zf/crypto/dso/dso_vms.c | 504 ++ .../openssl-0.9.8zf/crypto/dso/dso_win32.c | 609 ++ .../OpensslLib/openssl-0.9.8zf/crypto/dyn_lck.c | 422 + .../OpensslLib/openssl-0.9.8zf/crypto/ebcdic.c | 284 + .../OpensslLib/openssl-0.9.8zf/crypto/ebcdic.h | 19 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/Makefile | 193 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec.h | 570 ++ .../openssl-0.9.8zf/crypto/ec/ec2_mult.c | 463 + .../openssl-0.9.8zf/crypto/ec/ec2_smpl.c | 1035 +++ .../openssl-0.9.8zf/crypto/ec/ec2_smpt.c | 148 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_asn1.c | 1276 +++ .../openssl-0.9.8zf/crypto/ec/ec_check.c | 120 + .../openssl-0.9.8zf/crypto/ec/ec_curve.c | 1335 +++ .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_cvt.c | 141 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_err.c | 275 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_key.c | 460 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_lcl.h | 444 + .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_lib.c | 1111 +++ .../OpensslLib/openssl-0.9.8zf/crypto/ec/ec_mult.c | 911 ++ .../openssl-0.9.8zf/crypto/ec/ec_print.c | 179 + .../openssl-0.9.8zf/crypto/ec/ecp_mont.c | 300 + .../openssl-0.9.8zf/crypto/ec/ecp_nist.c | 235 + .../openssl-0.9.8zf/crypto/ec/ecp_smpl.c | 1769 ++++ .../OpensslLib/openssl-0.9.8zf/crypto/ec/ectest.c | 1621 ++++ .../openssl-0.9.8zf/crypto/ecdh/Makefile | 122 + .../OpensslLib/openssl-0.9.8zf/crypto/ecdh/ecdh.h | 125 + .../openssl-0.9.8zf/crypto/ecdh/ecdhtest.c | 402 + .../openssl-0.9.8zf/crypto/ecdh/ech_err.c | 96 + .../openssl-0.9.8zf/crypto/ecdh/ech_key.c | 84 + .../openssl-0.9.8zf/crypto/ecdh/ech_lib.c | 242 + .../openssl-0.9.8zf/crypto/ecdh/ech_locl.h | 95 + .../openssl-0.9.8zf/crypto/ecdh/ech_ossl.c | 205 + .../openssl-0.9.8zf/crypto/ecdsa/Makefile | 143 + .../openssl-0.9.8zf/crypto/ecdsa/ecdsa.h | 271 + .../openssl-0.9.8zf/crypto/ecdsa/ecdsatest.c | 555 ++ .../openssl-0.9.8zf/crypto/ecdsa/ecs_asn1.c | 67 + .../openssl-0.9.8zf/crypto/ecdsa/ecs_err.c | 104 + .../openssl-0.9.8zf/crypto/ecdsa/ecs_lib.c | 259 + .../openssl-0.9.8zf/crypto/ecdsa/ecs_locl.h | 107 + .../openssl-0.9.8zf/crypto/ecdsa/ecs_ossl.c | 437 + .../openssl-0.9.8zf/crypto/ecdsa/ecs_sign.c | 106 + .../openssl-0.9.8zf/crypto/ecdsa/ecs_vrf.c | 112 + .../openssl-0.9.8zf/crypto/engine/Makefile | 415 + .../openssl-0.9.8zf/crypto/engine/README | 211 + .../openssl-0.9.8zf/crypto/engine/eng_all.c | 129 + .../openssl-0.9.8zf/crypto/engine/eng_cnf.c | 242 + .../openssl-0.9.8zf/crypto/engine/eng_cryptodev.c | 1175 +++ .../openssl-0.9.8zf/crypto/engine/eng_ctrl.c | 385 + .../openssl-0.9.8zf/crypto/engine/eng_dyn.c | 572 ++ .../openssl-0.9.8zf/crypto/engine/eng_err.c | 176 + .../openssl-0.9.8zf/crypto/engine/eng_fat.c | 165 + .../openssl-0.9.8zf/crypto/engine/eng_init.c | 157 + .../openssl-0.9.8zf/crypto/engine/eng_int.h | 211 + .../openssl-0.9.8zf/crypto/engine/eng_lib.c | 344 + .../openssl-0.9.8zf/crypto/engine/eng_list.c | 402 + .../openssl-0.9.8zf/crypto/engine/eng_openssl.c | 402 + .../openssl-0.9.8zf/crypto/engine/eng_padlock.c | 1241 +++ .../openssl-0.9.8zf/crypto/engine/eng_pkey.c | 186 + .../openssl-0.9.8zf/crypto/engine/eng_table.c | 326 + .../openssl-0.9.8zf/crypto/engine/engine.h | 918 ++ .../openssl-0.9.8zf/crypto/engine/enginetest.c | 269 + .../openssl-0.9.8zf/crypto/engine/tb_cipher.c | 143 + .../openssl-0.9.8zf/crypto/engine/tb_dh.c | 124 + .../openssl-0.9.8zf/crypto/engine/tb_digest.c | 143 + .../openssl-0.9.8zf/crypto/engine/tb_dsa.c | 124 + .../openssl-0.9.8zf/crypto/engine/tb_ecdh.c | 139 + .../openssl-0.9.8zf/crypto/engine/tb_ecdsa.c | 124 + .../openssl-0.9.8zf/crypto/engine/tb_rand.c | 124 + .../openssl-0.9.8zf/crypto/engine/tb_rsa.c | 124 + .../openssl-0.9.8zf/crypto/engine/tb_store.c | 129 + .../OpensslLib/openssl-0.9.8zf/crypto/err/Makefile | 131 + .../OpensslLib/openssl-0.9.8zf/crypto/err/err.c | 427 + .../OpensslLib/openssl-0.9.8zf/crypto/err/err.h | 339 + .../openssl-0.9.8zf/crypto/err/err_all.c | 165 + .../openssl-0.9.8zf/crypto/err/err_bio.c | 74 + .../openssl-0.9.8zf/crypto/err/err_def.c | 665 ++ .../openssl-0.9.8zf/crypto/err/err_prn.c | 166 + .../openssl-0.9.8zf/crypto/err/err_str.c | 289 + .../openssl-0.9.8zf/crypto/err/openssl.ec | 95 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/Makefile | 727 ++ .../openssl-0.9.8zf/crypto/evp/bio_b64.c | 573 ++ .../openssl-0.9.8zf/crypto/evp/bio_enc.c | 426 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/bio_md.c | 261 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/bio_ok.c | 582 ++ .../OpensslLib/openssl-0.9.8zf/crypto/evp/c_all.c | 90 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/c_allc.c | 227 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/c_alld.c | 111 + .../openssl-0.9.8zf/crypto/evp/dig_eng.c | 176 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/digest.c | 460 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_aes.c | 109 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_bf.c | 87 + .../openssl-0.9.8zf/crypto/evp/e_camellia.c | 119 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_cast.c | 89 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_des.c | 182 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_des3.c | 271 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_dsa.c | 69 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_idea.c | 119 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_null.c | 100 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_old.c | 164 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_rc2.c | 230 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_rc4.c | 133 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_rc5.c | 122 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/e_seed.c | 82 + .../openssl-0.9.8zf/crypto/evp/e_xcbc_d.c | 120 + .../openssl-0.9.8zf/crypto/evp/enc_min.c | 410 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/encode.c | 452 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/evp.h | 1072 +++ .../openssl-0.9.8zf/crypto/evp/evp_acnf.c | 73 + .../openssl-0.9.8zf/crypto/evp/evp_cnf.c | 118 + .../openssl-0.9.8zf/crypto/evp/evp_enc.c | 420 + .../openssl-0.9.8zf/crypto/evp/evp_err.c | 196 + .../openssl-0.9.8zf/crypto/evp/evp_key.c | 178 + .../openssl-0.9.8zf/crypto/evp/evp_lib.c | 283 + .../openssl-0.9.8zf/crypto/evp/evp_locl.h | 251 + .../openssl-0.9.8zf/crypto/evp/evp_pbe.c | 169 + .../openssl-0.9.8zf/crypto/evp/evp_pkey.c | 782 ++ .../openssl-0.9.8zf/crypto/evp/evp_test.c | 424 + .../openssl-0.9.8zf/crypto/evp/evptests.txt | 321 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_dss.c | 104 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_dss1.c | 108 + .../openssl-0.9.8zf/crypto/evp/m_ecdsa.c | 153 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_md2.c | 107 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_md4.c | 107 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_md5.c | 107 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_mdc2.c | 105 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_null.c | 98 + .../openssl-0.9.8zf/crypto/evp/m_ripemd.c | 106 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_sha.c | 106 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/m_sha1.c | 240 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/names.c | 138 + .../openssl-0.9.8zf/crypto/evp/openbsd_hw.c | 431 + .../openssl-0.9.8zf/crypto/evp/p5_crpt.c | 165 + .../openssl-0.9.8zf/crypto/evp/p5_crpt2.c | 271 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/p_dec.c | 87 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/p_enc.c | 87 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/p_lib.c | 489 ++ .../OpensslLib/openssl-0.9.8zf/crypto/evp/p_open.c | 128 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/p_seal.c | 118 + .../OpensslLib/openssl-0.9.8zf/crypto/evp/p_sign.c | 118 + .../openssl-0.9.8zf/crypto/evp/p_verify.c | 106 + .../OpensslLib/openssl-0.9.8zf/crypto/ex_data.c | 641 ++ .../OpensslLib/openssl-0.9.8zf/crypto/fips_err.c | 7 + .../OpensslLib/openssl-0.9.8zf/crypto/fips_err.h | 140 + .../openssl-0.9.8zf/crypto/hmac/Makefile | 86 + .../OpensslLib/openssl-0.9.8zf/crypto/hmac/hmac.c | 172 + .../OpensslLib/openssl-0.9.8zf/crypto/hmac/hmac.h | 108 + .../openssl-0.9.8zf/crypto/hmac/hmactest.c | 167 + .../OpensslLib/openssl-0.9.8zf/crypto/ia64cpuid.S | 121 + .../openssl-0.9.8zf/crypto/idea/Makefile | 90 + .../OpensslLib/openssl-0.9.8zf/crypto/idea/i_cbc.c | 171 + .../openssl-0.9.8zf/crypto/idea/i_cfb64.c | 123 + .../OpensslLib/openssl-0.9.8zf/crypto/idea/i_ecb.c | 88 + .../openssl-0.9.8zf/crypto/idea/i_ofb64.c | 110 + .../openssl-0.9.8zf/crypto/idea/i_skey.c | 180 + .../OpensslLib/openssl-0.9.8zf/crypto/idea/idea.h | 105 + .../openssl-0.9.8zf/crypto/idea/idea_lcl.h | 216 + .../openssl-0.9.8zf/crypto/idea/idea_spd.c | 283 + .../openssl-0.9.8zf/crypto/idea/ideatest.c | 232 + .../OpensslLib/openssl-0.9.8zf/crypto/idea/version | 12 + .../OpensslLib/openssl-0.9.8zf/crypto/install.com | 145 + .../openssl-0.9.8zf/crypto/jpake/Makefile | 64 + .../openssl-0.9.8zf/crypto/jpake/jpake.c | 508 ++ .../openssl-0.9.8zf/crypto/jpake/jpake.h | 128 + .../openssl-0.9.8zf/crypto/jpake/jpake_err.c | 108 + .../openssl-0.9.8zf/crypto/jpake/jpaketest.c | 185 + .../openssl-0.9.8zf/crypto/krb5/Makefile | 84 + .../openssl-0.9.8zf/crypto/krb5/krb5_asn.c | 162 + .../openssl-0.9.8zf/crypto/krb5/krb5_asn.h | 240 + .../openssl-0.9.8zf/crypto/lhash/Makefile | 88 + .../openssl-0.9.8zf/crypto/lhash/lh_stats.c | 246 + .../openssl-0.9.8zf/crypto/lhash/lh_test.c | 88 + .../openssl-0.9.8zf/crypto/lhash/lhash.c | 457 + .../openssl-0.9.8zf/crypto/lhash/lhash.h | 199 + .../OpensslLib/openssl-0.9.8zf/crypto/lhash/num.pl | 17 + .../OpensslLib/openssl-0.9.8zf/crypto/md2/Makefile | 91 + .../OpensslLib/openssl-0.9.8zf/crypto/md2/md2.c | 119 + .../OpensslLib/openssl-0.9.8zf/crypto/md2/md2.h | 94 + .../openssl-0.9.8zf/crypto/md2/md2_dgst.c | 229 + .../openssl-0.9.8zf/crypto/md2/md2_one.c | 96 + .../openssl-0.9.8zf/crypto/md2/md2test.c | 142 + .../openssl-0.9.8zf/crypto/md32_common.h | 398 + .../OpensslLib/openssl-0.9.8zf/crypto/md4/Makefile | 90 + .../OpensslLib/openssl-0.9.8zf/crypto/md4/md4.c | 121 + .../OpensslLib/openssl-0.9.8zf/crypto/md4/md4.h | 119 + .../openssl-0.9.8zf/crypto/md4/md4_dgst.c | 204 + .../openssl-0.9.8zf/crypto/md4/md4_locl.h | 113 + .../openssl-0.9.8zf/crypto/md4/md4_one.c | 96 + .../OpensslLib/openssl-0.9.8zf/crypto/md4/md4s.cpp | 78 + .../openssl-0.9.8zf/crypto/md4/md4test.c | 133 + .../OpensslLib/openssl-0.9.8zf/crypto/md5/Makefile | 106 + .../openssl-0.9.8zf/crypto/md5/asm/md5-586.pl | 306 + .../openssl-0.9.8zf/crypto/md5/asm/md5-x86_64.pl | 249 + .../OpensslLib/openssl-0.9.8zf/crypto/md5/md5.c | 121 + .../OpensslLib/openssl-0.9.8zf/crypto/md5/md5.h | 119 + .../openssl-0.9.8zf/crypto/md5/md5_dgst.c | 221 + .../openssl-0.9.8zf/crypto/md5/md5_locl.h | 129 + .../openssl-0.9.8zf/crypto/md5/md5_one.c | 96 + .../OpensslLib/openssl-0.9.8zf/crypto/md5/md5s.cpp | 78 + .../openssl-0.9.8zf/crypto/md5/md5test.c | 138 + .../openssl-0.9.8zf/crypto/mdc2/Makefile | 93 + .../OpensslLib/openssl-0.9.8zf/crypto/mdc2/mdc2.h | 94 + .../openssl-0.9.8zf/crypto/mdc2/mdc2_one.c | 76 + .../openssl-0.9.8zf/crypto/mdc2/mdc2dgst.c | 199 + .../openssl-0.9.8zf/crypto/mdc2/mdc2test.c | 146 + .../OpensslLib/openssl-0.9.8zf/crypto/mem.c | 487 ++ .../OpensslLib/openssl-0.9.8zf/crypto/mem_clr.c | 77 + .../OpensslLib/openssl-0.9.8zf/crypto/mem_dbg.c | 769 ++ .../OpensslLib/openssl-0.9.8zf/crypto/o_dir.c | 86 + .../OpensslLib/openssl-0.9.8zf/crypto/o_dir.h | 55 + .../OpensslLib/openssl-0.9.8zf/crypto/o_dir_test.c | 68 + .../OpensslLib/openssl-0.9.8zf/crypto/o_init.c | 111 + .../OpensslLib/openssl-0.9.8zf/crypto/o_str.c | 116 + .../OpensslLib/openssl-0.9.8zf/crypto/o_str.h | 69 + .../OpensslLib/openssl-0.9.8zf/crypto/o_time.c | 227 + .../OpensslLib/openssl-0.9.8zf/crypto/o_time.h | 67 + .../openssl-0.9.8zf/crypto/objects/Makefile | 119 + .../openssl-0.9.8zf/crypto/objects/o_names.c | 359 + .../openssl-0.9.8zf/crypto/objects/obj_dat.c | 772 ++ .../openssl-0.9.8zf/crypto/objects/obj_dat.h | 4976 +++++++++++ .../openssl-0.9.8zf/crypto/objects/obj_dat.pl | 309 + .../openssl-0.9.8zf/crypto/objects/obj_err.c | 100 + .../openssl-0.9.8zf/crypto/objects/obj_lib.c | 131 + .../openssl-0.9.8zf/crypto/objects/obj_mac.h | 3913 +++++++++ .../openssl-0.9.8zf/crypto/objects/obj_mac.num | 892 ++ .../openssl-0.9.8zf/crypto/objects/objects.README | 44 + .../openssl-0.9.8zf/crypto/objects/objects.h | 1055 +++ .../openssl-0.9.8zf/crypto/objects/objects.pl | 237 + .../openssl-0.9.8zf/crypto/objects/objects.txt | 1259 +++ .../openssl-0.9.8zf/crypto/ocsp/Makefile | 218 + .../OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp.h | 626 ++ .../openssl-0.9.8zf/crypto/ocsp/ocsp_asn.c | 183 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_cl.c | 385 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_err.c | 148 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_ext.c | 605 ++ .../openssl-0.9.8zf/crypto/ocsp/ocsp_ht.c | 444 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_lib.c | 286 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_prn.c | 300 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_srv.c | 271 + .../openssl-0.9.8zf/crypto/ocsp/ocsp_vfy.c | 437 + .../openssl-0.9.8zf/crypto/opensslconf.h | 260 + .../openssl-0.9.8zf/crypto/opensslconf.h.in | 174 + .../OpensslLib/openssl-0.9.8zf/crypto/opensslv.h | 89 + .../OpensslLib/openssl-0.9.8zf/crypto/ossl_typ.h | 183 + .../OpensslLib/openssl-0.9.8zf/crypto/pem/Makefile | 245 + .../OpensslLib/openssl-0.9.8zf/crypto/pem/message | 16 + .../OpensslLib/openssl-0.9.8zf/crypto/pem/pem.h | 742 ++ .../OpensslLib/openssl-0.9.8zf/crypto/pem/pem2.h | 70 + .../openssl-0.9.8zf/crypto/pem/pem_all.c | 459 + .../openssl-0.9.8zf/crypto/pem/pem_err.c | 136 + .../openssl-0.9.8zf/crypto/pem/pem_info.c | 383 + .../openssl-0.9.8zf/crypto/pem/pem_lib.c | 790 ++ .../openssl-0.9.8zf/crypto/pem/pem_oth.c | 86 + .../openssl-0.9.8zf/crypto/pem/pem_pk8.c | 257 + .../openssl-0.9.8zf/crypto/pem/pem_pkey.c | 155 + .../openssl-0.9.8zf/crypto/pem/pem_seal.c | 189 + .../openssl-0.9.8zf/crypto/pem/pem_sign.c | 101 + .../openssl-0.9.8zf/crypto/pem/pem_x509.c | 69 + .../openssl-0.9.8zf/crypto/pem/pem_xaux.c | 71 + .../openssl-0.9.8zf/crypto/pem/pkcs7.lis | 22 + .../openssl-0.9.8zf/crypto/perlasm/cbc.pl | 349 + .../openssl-0.9.8zf/crypto/perlasm/readme | 124 + .../openssl-0.9.8zf/crypto/perlasm/x86_64-xlate.pl | 556 ++ .../openssl-0.9.8zf/crypto/perlasm/x86asm.pl | 130 + .../openssl-0.9.8zf/crypto/perlasm/x86ms.pl | 472 + .../openssl-0.9.8zf/crypto/perlasm/x86nasm.pl | 455 + .../openssl-0.9.8zf/crypto/perlasm/x86unix.pl | 725 ++ .../openssl-0.9.8zf/crypto/pkcs12/Makefile | 293 + .../openssl-0.9.8zf/crypto/pkcs12/p12_add.c | 229 + .../openssl-0.9.8zf/crypto/pkcs12/p12_asn.c | 125 + .../openssl-0.9.8zf/crypto/pkcs12/p12_attr.c | 153 + .../openssl-0.9.8zf/crypto/pkcs12/p12_crpt.c | 134 + .../openssl-0.9.8zf/crypto/pkcs12/p12_crt.c | 361 + .../openssl-0.9.8zf/crypto/pkcs12/p12_decr.c | 192 + .../openssl-0.9.8zf/crypto/pkcs12/p12_init.c | 92 + .../openssl-0.9.8zf/crypto/pkcs12/p12_key.c | 234 + .../openssl-0.9.8zf/crypto/pkcs12/p12_kiss.c | 312 + .../openssl-0.9.8zf/crypto/pkcs12/p12_mutl.c | 187 + .../openssl-0.9.8zf/crypto/pkcs12/p12_npas.c | 235 + .../openssl-0.9.8zf/crypto/pkcs12/p12_p8d.c | 70 + .../openssl-0.9.8zf/crypto/pkcs12/p12_p8e.c | 101 + .../openssl-0.9.8zf/crypto/pkcs12/p12_utl.c | 167 + .../openssl-0.9.8zf/crypto/pkcs12/pk12err.c | 149 + .../openssl-0.9.8zf/crypto/pkcs12/pkcs12.h | 348 + .../openssl-0.9.8zf/crypto/pkcs7/Makefile | 176 + .../openssl-0.9.8zf/crypto/pkcs7/pk7_asn1.c | 217 + .../openssl-0.9.8zf/crypto/pkcs7/pk7_attr.c | 143 + .../openssl-0.9.8zf/crypto/pkcs7/pk7_dgst.c | 65 + .../openssl-0.9.8zf/crypto/pkcs7/pk7_doit.c | 1168 +++ .../openssl-0.9.8zf/crypto/pkcs7/pk7_enc.c | 75 + .../openssl-0.9.8zf/crypto/pkcs7/pk7_lib.c | 580 ++ .../openssl-0.9.8zf/crypto/pkcs7/pk7_mime.c | 123 + .../openssl-0.9.8zf/crypto/pkcs7/pk7_smime.c | 536 ++ .../openssl-0.9.8zf/crypto/pkcs7/pkcs7.h | 450 + .../openssl-0.9.8zf/crypto/pkcs7/pkcs7err.c | 180 + .../openssl-0.9.8zf/crypto/pqueue/Makefile | 84 + .../openssl-0.9.8zf/crypto/pqueue/pq_compat.h | 152 + .../openssl-0.9.8zf/crypto/pqueue/pq_test.c | 94 + .../openssl-0.9.8zf/crypto/pqueue/pqueue.c | 224 + .../openssl-0.9.8zf/crypto/pqueue/pqueue.h | 95 + .../openssl-0.9.8zf/crypto/rand/Makefile | 187 + .../openssl-0.9.8zf/crypto/rand/md_rand.c | 575 ++ .../OpensslLib/openssl-0.9.8zf/crypto/rand/rand.h | 168 + .../openssl-0.9.8zf/crypto/rand/rand_egd.c | 291 + .../openssl-0.9.8zf/crypto/rand/rand_eng.c | 145 + .../openssl-0.9.8zf/crypto/rand/rand_err.c | 113 + .../openssl-0.9.8zf/crypto/rand/rand_lcl.h | 166 + .../openssl-0.9.8zf/crypto/rand/rand_lib.c | 236 + .../openssl-0.9.8zf/crypto/rand/rand_nw.c | 179 + .../openssl-0.9.8zf/crypto/rand/rand_os2.c | 161 + .../openssl-0.9.8zf/crypto/rand/rand_unix.c | 340 + .../openssl-0.9.8zf/crypto/rand/rand_vms.c | 147 + .../openssl-0.9.8zf/crypto/rand/rand_win.c | 751 ++ .../openssl-0.9.8zf/crypto/rand/randfile.c | 331 + .../openssl-0.9.8zf/crypto/rand/randtest.c | 209 + .../OpensslLib/openssl-0.9.8zf/crypto/rc2/Makefile | 90 + .../OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2.h | 103 + .../openssl-0.9.8zf/crypto/rc2/rc2_cbc.c | 228 + .../openssl-0.9.8zf/crypto/rc2/rc2_ecb.c | 92 + .../openssl-0.9.8zf/crypto/rc2/rc2_locl.h | 155 + .../openssl-0.9.8zf/crypto/rc2/rc2_skey.c | 165 + .../openssl-0.9.8zf/crypto/rc2/rc2cfb64.c | 123 + .../openssl-0.9.8zf/crypto/rc2/rc2ofb64.c | 110 + .../openssl-0.9.8zf/crypto/rc2/rc2speed.c | 262 + .../openssl-0.9.8zf/crypto/rc2/rc2test.c | 274 + .../OpensslLib/openssl-0.9.8zf/crypto/rc2/rrc2.doc | 219 + .../OpensslLib/openssl-0.9.8zf/crypto/rc2/tab.c | 84 + .../OpensslLib/openssl-0.9.8zf/crypto/rc2/version | 22 + .../OpensslLib/openssl-0.9.8zf/crypto/rc4/Makefile | 125 + .../openssl-0.9.8zf/crypto/rc4/asm/rc4-586.pl | 230 + .../openssl-0.9.8zf/crypto/rc4/asm/rc4-ia64.S | 159 + .../openssl-0.9.8zf/crypto/rc4/asm/rc4-x86_64.pl | 366 + .../OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4.c | 179 + .../OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4.h | 88 + .../openssl-0.9.8zf/crypto/rc4/rc4_enc.c | 334 + .../openssl-0.9.8zf/crypto/rc4/rc4_fblk.c | 75 + .../openssl-0.9.8zf/crypto/rc4/rc4_locl.h | 5 + .../openssl-0.9.8zf/crypto/rc4/rc4_skey.c | 166 + .../OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4s.cpp | 73 + .../openssl-0.9.8zf/crypto/rc4/rc4speed.c | 239 + .../openssl-0.9.8zf/crypto/rc4/rc4test.c | 229 + .../OpensslLib/openssl-0.9.8zf/crypto/rc4/rrc4.doc | 278 + .../OpensslLib/openssl-0.9.8zf/crypto/rc5/Makefile | 103 + .../openssl-0.9.8zf/crypto/rc5/asm/rc5-586.pl | 109 + .../OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5.h | 119 + .../openssl-0.9.8zf/crypto/rc5/rc5_ecb.c | 83 + .../openssl-0.9.8zf/crypto/rc5/rc5_enc.c | 209 + .../openssl-0.9.8zf/crypto/rc5/rc5_locl.h | 204 + .../openssl-0.9.8zf/crypto/rc5/rc5_skey.c | 128 + .../openssl-0.9.8zf/crypto/rc5/rc5cfb64.c | 123 + .../openssl-0.9.8zf/crypto/rc5/rc5ofb64.c | 110 + .../OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5s.cpp | 70 + .../openssl-0.9.8zf/crypto/rc5/rc5speed.c | 265 + .../openssl-0.9.8zf/crypto/rc5/rc5test.c | 381 + .../openssl-0.9.8zf/crypto/ripemd/Makefile | 104 + .../openssl-0.9.8zf/crypto/ripemd/README | 15 + .../openssl-0.9.8zf/crypto/ripemd/asm/rips.cpp | 82 + .../openssl-0.9.8zf/crypto/ripemd/asm/rmd-586.pl | 590 ++ .../openssl-0.9.8zf/crypto/ripemd/ripemd.h | 104 + .../openssl-0.9.8zf/crypto/ripemd/rmd160.c | 121 + .../openssl-0.9.8zf/crypto/ripemd/rmd_dgst.c | 339 + .../openssl-0.9.8zf/crypto/ripemd/rmd_locl.h | 149 + .../openssl-0.9.8zf/crypto/ripemd/rmd_one.c | 77 + .../openssl-0.9.8zf/crypto/ripemd/rmdconst.h | 398 + .../openssl-0.9.8zf/crypto/ripemd/rmdtest.c | 143 + .../OpensslLib/openssl-0.9.8zf/crypto/rsa/Makefile | 271 + .../OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa.h | 525 ++ .../openssl-0.9.8zf/crypto/rsa/rsa_asn1.c | 124 + .../openssl-0.9.8zf/crypto/rsa/rsa_chk.c | 209 + .../openssl-0.9.8zf/crypto/rsa/rsa_depr.c | 107 + .../openssl-0.9.8zf/crypto/rsa/rsa_eay.c | 902 ++ .../openssl-0.9.8zf/crypto/rsa/rsa_eng.c | 357 + .../openssl-0.9.8zf/crypto/rsa/rsa_err.c | 195 + .../openssl-0.9.8zf/crypto/rsa/rsa_gen.c | 238 + .../openssl-0.9.8zf/crypto/rsa/rsa_lib.c | 228 + .../openssl-0.9.8zf/crypto/rsa/rsa_none.c | 94 + .../openssl-0.9.8zf/crypto/rsa/rsa_null.c | 155 + .../openssl-0.9.8zf/crypto/rsa/rsa_oaep.c | 243 + .../openssl-0.9.8zf/crypto/rsa/rsa_pk1.c | 275 + .../openssl-0.9.8zf/crypto/rsa/rsa_pss.c | 256 + .../openssl-0.9.8zf/crypto/rsa/rsa_saos.c | 148 + .../openssl-0.9.8zf/crypto/rsa/rsa_sign.c | 280 + .../openssl-0.9.8zf/crypto/rsa/rsa_ssl.c | 149 + .../openssl-0.9.8zf/crypto/rsa/rsa_test.c | 331 + .../openssl-0.9.8zf/crypto/rsa/rsa_x931.c | 167 + .../openssl-0.9.8zf/crypto/rsa/rsa_x931g.c | 252 + .../openssl-0.9.8zf/crypto/seed/Makefile | 87 + .../OpensslLib/openssl-0.9.8zf/crypto/seed/seed.c | 848 ++ .../OpensslLib/openssl-0.9.8zf/crypto/seed/seed.h | 143 + .../openssl-0.9.8zf/crypto/seed/seed_cbc.c | 119 + .../openssl-0.9.8zf/crypto/seed/seed_cfb.c | 140 + .../openssl-0.9.8zf/crypto/seed/seed_ecb.c | 61 + .../openssl-0.9.8zf/crypto/seed/seed_locl.h | 115 + .../openssl-0.9.8zf/crypto/seed/seed_ofb.c | 127 + .../OpensslLib/openssl-0.9.8zf/crypto/sha/Makefile | 146 + .../openssl-0.9.8zf/crypto/sha/asm/README | 1 + .../openssl-0.9.8zf/crypto/sha/asm/sha1-586.pl | 219 + .../openssl-0.9.8zf/crypto/sha/asm/sha1-ia64.pl | 306 + .../openssl-0.9.8zf/crypto/sha/asm/sha1-x86_64.pl | 242 + .../openssl-0.9.8zf/crypto/sha/asm/sha512-ia64.pl | 672 ++ .../openssl-0.9.8zf/crypto/sha/asm/sha512-sse2.pl | 404 + .../crypto/sha/asm/sha512-x86_64.pl | 344 + .../OpensslLib/openssl-0.9.8zf/crypto/sha/sha.c | 118 + .../OpensslLib/openssl-0.9.8zf/crypto/sha/sha.h | 203 + .../OpensslLib/openssl-0.9.8zf/crypto/sha/sha1.c | 121 + .../openssl-0.9.8zf/crypto/sha/sha1_one.c | 79 + .../openssl-0.9.8zf/crypto/sha/sha1dgst.c | 76 + .../openssl-0.9.8zf/crypto/sha/sha1s.cpp | 82 + .../openssl-0.9.8zf/crypto/sha/sha1test.c | 174 + .../OpensslLib/openssl-0.9.8zf/crypto/sha/sha256.c | 401 + .../openssl-0.9.8zf/crypto/sha/sha256t.c | 158 + .../OpensslLib/openssl-0.9.8zf/crypto/sha/sha512.c | 621 ++ .../openssl-0.9.8zf/crypto/sha/sha512t.c | 196 + .../openssl-0.9.8zf/crypto/sha/sha_dgst.c | 79 + .../openssl-0.9.8zf/crypto/sha/sha_locl.h | 505 ++ .../openssl-0.9.8zf/crypto/sha/sha_one.c | 79 + .../openssl-0.9.8zf/crypto/sha/shatest.c | 174 + .../OpensslLib/openssl-0.9.8zf/crypto/sparccpuid.S | 239 + .../openssl-0.9.8zf/crypto/stack/Makefile | 84 + .../openssl-0.9.8zf/crypto/stack/safestack.h | 1992 +++++ .../openssl-0.9.8zf/crypto/stack/stack.c | 363 + .../openssl-0.9.8zf/crypto/stack/stack.h | 107 + .../openssl-0.9.8zf/crypto/store/Makefile | 112 + .../OpensslLib/openssl-0.9.8zf/crypto/store/README | 95 + .../openssl-0.9.8zf/crypto/store/store.h | 651 ++ .../openssl-0.9.8zf/crypto/store/str_err.c | 258 + .../openssl-0.9.8zf/crypto/store/str_lib.c | 1771 ++++ .../openssl-0.9.8zf/crypto/store/str_locl.h | 125 + .../openssl-0.9.8zf/crypto/store/str_mem.c | 377 + .../openssl-0.9.8zf/crypto/store/str_meth.c | 280 + .../OpensslLib/openssl-0.9.8zf/crypto/symhacks.h | 438 + .../openssl-0.9.8zf/crypto/threads/README | 14 + .../openssl-0.9.8zf/crypto/threads/mttest.c | 1115 +++ .../openssl-0.9.8zf/crypto/threads/netware.bat | 79 + .../openssl-0.9.8zf/crypto/threads/profile.sh | 4 + .../openssl-0.9.8zf/crypto/threads/ptest.bat | 4 + .../openssl-0.9.8zf/crypto/threads/pthread.sh | 9 + .../openssl-0.9.8zf/crypto/threads/pthread2.sh | 7 + .../crypto/threads/pthreads-vms.com | 14 + .../openssl-0.9.8zf/crypto/threads/purify.sh | 4 + .../openssl-0.9.8zf/crypto/threads/solaris.sh | 4 + .../openssl-0.9.8zf/crypto/threads/th-lock.c | 368 + .../openssl-0.9.8zf/crypto/threads/win32.bat | 4 + .../OpensslLib/openssl-0.9.8zf/crypto/tmdiff.c | 263 + .../OpensslLib/openssl-0.9.8zf/crypto/tmdiff.h | 91 + .../openssl-0.9.8zf/crypto/txt_db/Makefile | 84 + .../openssl-0.9.8zf/crypto/txt_db/txt_db.c | 381 + .../openssl-0.9.8zf/crypto/txt_db/txt_db.h | 108 + .../OpensslLib/openssl-0.9.8zf/crypto/ui/Makefile | 111 + .../OpensslLib/openssl-0.9.8zf/crypto/ui/ui.h | 406 + .../openssl-0.9.8zf/crypto/ui/ui_compat.c | 69 + .../openssl-0.9.8zf/crypto/ui/ui_compat.h | 88 + .../OpensslLib/openssl-0.9.8zf/crypto/ui/ui_err.c | 111 + .../OpensslLib/openssl-0.9.8zf/crypto/ui/ui_lib.c | 847 ++ .../OpensslLib/openssl-0.9.8zf/crypto/ui/ui_locl.h | 145 + .../openssl-0.9.8zf/crypto/ui/ui_openssl.c | 715 ++ .../OpensslLib/openssl-0.9.8zf/crypto/ui/ui_util.c | 93 + .../OpensslLib/openssl-0.9.8zf/crypto/uid.c | 88 + .../openssl-0.9.8zf/crypto/x509/Makefile | 417 + .../openssl-0.9.8zf/crypto/x509/by_dir.c | 368 + .../openssl-0.9.8zf/crypto/x509/by_file.c | 277 + .../OpensslLib/openssl-0.9.8zf/crypto/x509/x509.h | 1362 +++ .../openssl-0.9.8zf/crypto/x509/x509_att.c | 384 + .../openssl-0.9.8zf/crypto/x509/x509_cmp.c | 425 + .../openssl-0.9.8zf/crypto/x509/x509_d2.c | 109 + .../openssl-0.9.8zf/crypto/x509/x509_def.c | 92 + .../openssl-0.9.8zf/crypto/x509/x509_err.c | 175 + .../openssl-0.9.8zf/crypto/x509/x509_ext.c | 211 + .../openssl-0.9.8zf/crypto/x509/x509_lu.c | 563 ++ .../openssl-0.9.8zf/crypto/x509/x509_obj.c | 212 + .../openssl-0.9.8zf/crypto/x509/x509_r2x.c | 113 + .../openssl-0.9.8zf/crypto/x509/x509_req.c | 341 + .../openssl-0.9.8zf/crypto/x509/x509_set.c | 147 + .../openssl-0.9.8zf/crypto/x509/x509_trs.c | 308 + .../openssl-0.9.8zf/crypto/x509/x509_txt.c | 171 + .../openssl-0.9.8zf/crypto/x509/x509_v3.c | 284 + .../openssl-0.9.8zf/crypto/x509/x509_vfy.c | 1516 ++++ .../openssl-0.9.8zf/crypto/x509/x509_vfy.h | 556 ++ .../openssl-0.9.8zf/crypto/x509/x509_vpm.c | 426 + .../openssl-0.9.8zf/crypto/x509/x509cset.c | 167 + .../openssl-0.9.8zf/crypto/x509/x509name.c | 397 + .../openssl-0.9.8zf/crypto/x509/x509rset.c | 85 + .../openssl-0.9.8zf/crypto/x509/x509spki.c | 123 + .../openssl-0.9.8zf/crypto/x509/x509type.c | 121 + .../OpensslLib/openssl-0.9.8zf/crypto/x509/x_all.c | 528 ++ .../openssl-0.9.8zf/crypto/x509v3/Makefile | 610 ++ .../openssl-0.9.8zf/crypto/x509v3/ext_dat.h | 132 + .../openssl-0.9.8zf/crypto/x509v3/pcy_cache.c | 270 + .../openssl-0.9.8zf/crypto/x509v3/pcy_data.c | 127 + .../openssl-0.9.8zf/crypto/x509v3/pcy_int.h | 229 + .../openssl-0.9.8zf/crypto/x509v3/pcy_lib.c | 167 + .../openssl-0.9.8zf/crypto/x509v3/pcy_map.c | 185 + .../openssl-0.9.8zf/crypto/x509v3/pcy_node.c | 152 + .../openssl-0.9.8zf/crypto/x509v3/pcy_tree.c | 665 ++ .../openssl-0.9.8zf/crypto/x509v3/tabtest.c | 92 + .../openssl-0.9.8zf/crypto/x509v3/v3_addr.c | 1343 +++ .../openssl-0.9.8zf/crypto/x509v3/v3_akey.c | 205 + .../openssl-0.9.8zf/crypto/x509v3/v3_akeya.c | 73 + .../openssl-0.9.8zf/crypto/x509v3/v3_alt.c | 565 ++ .../openssl-0.9.8zf/crypto/x509v3/v3_asid.c | 894 ++ .../openssl-0.9.8zf/crypto/x509v3/v3_bcons.c | 132 + .../openssl-0.9.8zf/crypto/x509v3/v3_bitst.c | 142 + .../openssl-0.9.8zf/crypto/x509v3/v3_conf.c | 532 ++ .../openssl-0.9.8zf/crypto/x509v3/v3_cpols.c | 476 ++ .../openssl-0.9.8zf/crypto/x509v3/v3_crld.c | 177 + .../openssl-0.9.8zf/crypto/x509v3/v3_enum.c | 95 + .../openssl-0.9.8zf/crypto/x509v3/v3_extku.c | 151 + .../openssl-0.9.8zf/crypto/x509v3/v3_genn.c | 101 + .../openssl-0.9.8zf/crypto/x509v3/v3_ia5.c | 119 + .../openssl-0.9.8zf/crypto/x509v3/v3_info.c | 210 + .../openssl-0.9.8zf/crypto/x509v3/v3_int.c | 92 + .../openssl-0.9.8zf/crypto/x509v3/v3_lib.c | 339 + .../openssl-0.9.8zf/crypto/x509v3/v3_ncons.c | 203 + .../openssl-0.9.8zf/crypto/x509v3/v3_ocsp.c | 311 + .../openssl-0.9.8zf/crypto/x509v3/v3_pci.c | 317 + .../openssl-0.9.8zf/crypto/x509v3/v3_pcia.c | 56 + .../openssl-0.9.8zf/crypto/x509v3/v3_pcons.c | 141 + .../openssl-0.9.8zf/crypto/x509v3/v3_pku.c | 114 + .../openssl-0.9.8zf/crypto/x509v3/v3_pmaps.c | 157 + .../openssl-0.9.8zf/crypto/x509v3/v3_prn.c | 259 + .../openssl-0.9.8zf/crypto/x509v3/v3_purp.c | 736 ++ .../openssl-0.9.8zf/crypto/x509v3/v3_skey.c | 148 + .../openssl-0.9.8zf/crypto/x509v3/v3_sxnet.c | 273 + .../openssl-0.9.8zf/crypto/x509v3/v3_utl.c | 910 ++ .../openssl-0.9.8zf/crypto/x509v3/v3conf.c | 129 + .../openssl-0.9.8zf/crypto/x509v3/v3err.c | 239 + .../openssl-0.9.8zf/crypto/x509v3/v3prin.c | 99 + .../openssl-0.9.8zf/crypto/x509v3/x509v3.h | 941 ++ .../openssl-0.9.8zf/crypto/x86_64cpuid.pl | 159 + .../OpensslLib/openssl-0.9.8zf/crypto/x86cpuid.pl | 226 + .../OpensslLib/openssl-0.9.8zf/demos/README | 9 + .../openssl-0.9.8zf/demos/asn1/README.ASN1 | 7 + .../OpensslLib/openssl-0.9.8zf/demos/asn1/ocsp.c | 361 + .../Library/OpensslLib/openssl-0.9.8zf/demos/b64.c | 255 + .../OpensslLib/openssl-0.9.8zf/demos/b64.pl | 20 + .../OpensslLib/openssl-0.9.8zf/demos/bio/Makefile | 16 + .../OpensslLib/openssl-0.9.8zf/demos/bio/README | 3 + .../OpensslLib/openssl-0.9.8zf/demos/bio/saccept.c | 117 + .../openssl-0.9.8zf/demos/bio/sconnect.c | 113 + .../openssl-0.9.8zf/demos/bio/server.pem | 30 + .../openssl-0.9.8zf/demos/easy_tls/Makefile | 123 + .../openssl-0.9.8zf/demos/easy_tls/README | 65 + .../openssl-0.9.8zf/demos/easy_tls/cacerts.pem | 18 + .../openssl-0.9.8zf/demos/easy_tls/cert.pem | 31 + .../openssl-0.9.8zf/demos/easy_tls/easy-tls.c | 1310 +++ .../openssl-0.9.8zf/demos/easy_tls/easy-tls.h | 60 + .../openssl-0.9.8zf/demos/easy_tls/test.c | 248 + .../openssl-0.9.8zf/demos/easy_tls/test.h | 10 + .../demos/engines/cluster_labs/Makefile | 114 + .../demos/engines/cluster_labs/cluster_labs.h | 33 + .../demos/engines/cluster_labs/hw_cluster_labs.c | 692 ++ .../demos/engines/cluster_labs/hw_cluster_labs.ec | 8 + .../engines/cluster_labs/hw_cluster_labs_err.c | 152 + .../engines/cluster_labs/hw_cluster_labs_err.h | 100 + .../openssl-0.9.8zf/demos/engines/ibmca/Makefile | 114 + .../openssl-0.9.8zf/demos/engines/ibmca/hw_ibmca.c | 900 ++ .../demos/engines/ibmca/hw_ibmca.ec | 8 + .../demos/engines/ibmca/hw_ibmca_err.c | 149 + .../demos/engines/ibmca/hw_ibmca_err.h | 103 + .../demos/engines/ibmca/ica_openssl_api.h | 183 + .../openssl-0.9.8zf/demos/engines/rsaref/Makefile | 135 + .../openssl-0.9.8zf/demos/engines/rsaref/README | 22 + .../openssl-0.9.8zf/demos/engines/rsaref/build.com | 105 + .../openssl-0.9.8zf/demos/engines/rsaref/rsaref.c | 713 ++ .../openssl-0.9.8zf/demos/engines/rsaref/rsaref.ec | 8 + .../demos/engines/rsaref/rsaref_err.c | 158 + .../demos/engines/rsaref/rsaref_err.h | 110 + .../openssl-0.9.8zf/demos/engines/zencod/Makefile | 114 + .../demos/engines/zencod/hw_zencod.c | 1809 ++++ .../demos/engines/zencod/hw_zencod.ec | 8 + .../demos/engines/zencod/hw_zencod.h | 159 + .../demos/engines/zencod/hw_zencod_err.c | 147 + .../demos/engines/zencod/hw_zencod_err.h | 100 + .../openssl-0.9.8zf/demos/jpake/Makefile | 7 + .../openssl-0.9.8zf/demos/jpake/jpakedemo.c | 470 + .../OpensslLib/openssl-0.9.8zf/demos/pkcs12/README | 3 + .../openssl-0.9.8zf/demos/pkcs12/pkread.c | 61 + .../openssl-0.9.8zf/demos/pkcs12/pkwrite.c | 46 + .../openssl-0.9.8zf/demos/prime/Makefile | 20 + .../OpensslLib/openssl-0.9.8zf/demos/prime/prime.c | 102 + .../OpensslLib/openssl-0.9.8zf/demos/privkey.pem | 9 + .../OpensslLib/openssl-0.9.8zf/demos/selfsign.c | 176 + .../OpensslLib/openssl-0.9.8zf/demos/sign/Makefile | 15 + .../OpensslLib/openssl-0.9.8zf/demos/sign/cert.pem | 14 + .../OpensslLib/openssl-0.9.8zf/demos/sign/key.pem | 9 + .../OpensslLib/openssl-0.9.8zf/demos/sign/sig.txt | 158 + .../OpensslLib/openssl-0.9.8zf/demos/sign/sign.c | 160 + .../OpensslLib/openssl-0.9.8zf/demos/sign/sign.txt | 170 + .../OpensslLib/openssl-0.9.8zf/demos/spkigen.c | 172 + .../OpensslLib/openssl-0.9.8zf/demos/ssl/cli.cpp | 110 + .../openssl-0.9.8zf/demos/ssl/inetdsrv.cpp | 98 + .../OpensslLib/openssl-0.9.8zf/demos/ssl/serv.cpp | 152 + .../demos/ssltest-ecc/ECC-RSAcertgen.sh | 98 + .../demos/ssltest-ecc/ECCcertgen.sh | 164 + .../openssl-0.9.8zf/demos/ssltest-ecc/README | 15 + .../demos/ssltest-ecc/RSAcertgen.sh | 121 + .../openssl-0.9.8zf/demos/ssltest-ecc/ssltest.sh | 188 + .../openssl-0.9.8zf/demos/state_machine/Makefile | 9 + .../demos/state_machine/state_machine.c | 407 + .../openssl-0.9.8zf/demos/tunala/A-client.pem | 84 + .../openssl-0.9.8zf/demos/tunala/A-server.pem | 84 + .../OpensslLib/openssl-0.9.8zf/demos/tunala/CA.pem | 24 + .../openssl-0.9.8zf/demos/tunala/INSTALL | 107 + .../openssl-0.9.8zf/demos/tunala/Makefile | 41 + .../openssl-0.9.8zf/demos/tunala/Makefile.am | 7 + .../OpensslLib/openssl-0.9.8zf/demos/tunala/README | 233 + .../openssl-0.9.8zf/demos/tunala/autogunk.sh | 25 + .../openssl-0.9.8zf/demos/tunala/autoungunk.sh | 18 + .../openssl-0.9.8zf/demos/tunala/breakage.c | 68 + .../openssl-0.9.8zf/demos/tunala/buffer.c | 236 + .../OpensslLib/openssl-0.9.8zf/demos/tunala/cb.c | 154 + .../openssl-0.9.8zf/demos/tunala/configure.in | 29 + .../OpensslLib/openssl-0.9.8zf/demos/tunala/ip.c | 149 + .../OpensslLib/openssl-0.9.8zf/demos/tunala/sm.c | 164 + .../openssl-0.9.8zf/demos/tunala/test.sh | 107 + .../openssl-0.9.8zf/demos/tunala/tunala.c | 1180 +++ .../openssl-0.9.8zf/demos/tunala/tunala.h | 244 + .../OpensslLib/openssl-0.9.8zf/demos/x509/README | 3 + .../OpensslLib/openssl-0.9.8zf/demos/x509/mkcert.c | 169 + .../OpensslLib/openssl-0.9.8zf/demos/x509/mkreq.c | 168 + .../openssl-0.9.8zf/doc/HOWTO/certificates.txt | 105 + .../OpensslLib/openssl-0.9.8zf/doc/HOWTO/keys.txt | 73 + .../doc/HOWTO/proxy_certificates.txt | 322 + .../Library/OpensslLib/openssl-0.9.8zf/doc/README | 12 + .../OpensslLib/openssl-0.9.8zf/doc/apps/CA.pl.pod | 179 + .../openssl-0.9.8zf/doc/apps/asn1parse.pod | 181 + .../OpensslLib/openssl-0.9.8zf/doc/apps/ca.pod | 692 ++ .../openssl-0.9.8zf/doc/apps/ciphers.pod | 434 + .../OpensslLib/openssl-0.9.8zf/doc/apps/config.pod | 279 + .../OpensslLib/openssl-0.9.8zf/doc/apps/crl.pod | 123 + .../openssl-0.9.8zf/doc/apps/crl2pkcs7.pod | 91 + .../OpensslLib/openssl-0.9.8zf/doc/apps/dgst.pod | 115 + .../openssl-0.9.8zf/doc/apps/dhparam.pod | 146 + .../OpensslLib/openssl-0.9.8zf/doc/apps/dsa.pod | 164 + .../openssl-0.9.8zf/doc/apps/dsaparam.pod | 110 + .../OpensslLib/openssl-0.9.8zf/doc/apps/ec.pod | 190 + .../openssl-0.9.8zf/doc/apps/ecparam.pod | 179 + .../OpensslLib/openssl-0.9.8zf/doc/apps/enc.pod | 277 + .../OpensslLib/openssl-0.9.8zf/doc/apps/errstr.pod | 39 + .../OpensslLib/openssl-0.9.8zf/doc/apps/gendsa.pod | 72 + .../OpensslLib/openssl-0.9.8zf/doc/apps/genrsa.pod | 108 + .../OpensslLib/openssl-0.9.8zf/doc/apps/nseq.pod | 70 + .../OpensslLib/openssl-0.9.8zf/doc/apps/ocsp.pod | 365 + .../openssl-0.9.8zf/doc/apps/openssl.pod | 361 + .../OpensslLib/openssl-0.9.8zf/doc/apps/passwd.pod | 82 + .../OpensslLib/openssl-0.9.8zf/doc/apps/pkcs12.pod | 330 + .../OpensslLib/openssl-0.9.8zf/doc/apps/pkcs7.pod | 105 + .../OpensslLib/openssl-0.9.8zf/doc/apps/pkcs8.pod | 243 + .../OpensslLib/openssl-0.9.8zf/doc/apps/rand.pod | 55 + .../OpensslLib/openssl-0.9.8zf/doc/apps/req.pod | 611 ++ .../OpensslLib/openssl-0.9.8zf/doc/apps/rsa.pod | 195 + .../OpensslLib/openssl-0.9.8zf/doc/apps/rsautl.pod | 183 + .../openssl-0.9.8zf/doc/apps/s_client.pod | 336 + .../openssl-0.9.8zf/doc/apps/s_server.pod | 356 + .../OpensslLib/openssl-0.9.8zf/doc/apps/s_time.pod | 173 + .../openssl-0.9.8zf/doc/apps/sess_id.pod | 151 + .../OpensslLib/openssl-0.9.8zf/doc/apps/smime.pod | 385 + .../OpensslLib/openssl-0.9.8zf/doc/apps/speed.pod | 59 + .../OpensslLib/openssl-0.9.8zf/doc/apps/spkac.pod | 133 + .../OpensslLib/openssl-0.9.8zf/doc/apps/verify.pod | 413 + .../openssl-0.9.8zf/doc/apps/version.pod | 64 + .../OpensslLib/openssl-0.9.8zf/doc/apps/x509.pod | 850 ++ .../openssl-0.9.8zf/doc/apps/x509v3_config.pod | 529 ++ .../openssl-0.9.8zf/doc/c-indentation.el | 45 + .../openssl-0.9.8zf/doc/crypto/ASN1_OBJECT_new.pod | 45 + .../doc/crypto/ASN1_STRING_length.pod | 83 + .../openssl-0.9.8zf/doc/crypto/ASN1_STRING_new.pod | 46 + .../doc/crypto/ASN1_STRING_print_ex.pod | 96 + .../doc/crypto/ASN1_generate_nconf.pod | 265 + .../openssl-0.9.8zf/doc/crypto/BIO_ctrl.pod | 128 + .../openssl-0.9.8zf/doc/crypto/BIO_f_base64.pod | 82 + .../openssl-0.9.8zf/doc/crypto/BIO_f_buffer.pod | 74 + .../openssl-0.9.8zf/doc/crypto/BIO_f_cipher.pod | 76 + .../openssl-0.9.8zf/doc/crypto/BIO_f_md.pod | 138 + .../openssl-0.9.8zf/doc/crypto/BIO_f_null.pod | 32 + .../openssl-0.9.8zf/doc/crypto/BIO_f_ssl.pod | 313 + .../openssl-0.9.8zf/doc/crypto/BIO_find_type.pod | 98 + .../openssl-0.9.8zf/doc/crypto/BIO_new.pod | 65 + .../openssl-0.9.8zf/doc/crypto/BIO_push.pod | 69 + .../openssl-0.9.8zf/doc/crypto/BIO_read.pod | 66 + .../openssl-0.9.8zf/doc/crypto/BIO_s_accept.pod | 195 + .../openssl-0.9.8zf/doc/crypto/BIO_s_bio.pod | 182 + .../openssl-0.9.8zf/doc/crypto/BIO_s_connect.pod | 192 + .../openssl-0.9.8zf/doc/crypto/BIO_s_fd.pod | 89 + .../openssl-0.9.8zf/doc/crypto/BIO_s_file.pod | 144 + .../openssl-0.9.8zf/doc/crypto/BIO_s_mem.pod | 115 + .../openssl-0.9.8zf/doc/crypto/BIO_s_null.pod | 37 + .../openssl-0.9.8zf/doc/crypto/BIO_s_socket.pod | 63 + .../doc/crypto/BIO_set_callback.pod | 108 + .../doc/crypto/BIO_should_retry.pod | 114 + .../openssl-0.9.8zf/doc/crypto/BN_BLINDING_new.pod | 109 + .../openssl-0.9.8zf/doc/crypto/BN_CTX_new.pod | 53 + .../openssl-0.9.8zf/doc/crypto/BN_CTX_start.pod | 52 + .../openssl-0.9.8zf/doc/crypto/BN_add.pod | 126 + .../openssl-0.9.8zf/doc/crypto/BN_add_word.pod | 61 + .../openssl-0.9.8zf/doc/crypto/BN_bn2bin.pod | 95 + .../openssl-0.9.8zf/doc/crypto/BN_cmp.pod | 48 + .../openssl-0.9.8zf/doc/crypto/BN_copy.pod | 34 + .../doc/crypto/BN_generate_prime.pod | 102 + .../openssl-0.9.8zf/doc/crypto/BN_mod_inverse.pod | 36 + .../doc/crypto/BN_mod_mul_montgomery.pod | 101 + .../doc/crypto/BN_mod_mul_reciprocal.pod | 81 + .../openssl-0.9.8zf/doc/crypto/BN_new.pod | 53 + .../openssl-0.9.8zf/doc/crypto/BN_num_bytes.pod | 57 + .../openssl-0.9.8zf/doc/crypto/BN_rand.pod | 58 + .../openssl-0.9.8zf/doc/crypto/BN_set_bit.pod | 66 + .../openssl-0.9.8zf/doc/crypto/BN_swap.pod | 23 + .../openssl-0.9.8zf/doc/crypto/BN_zero.pod | 59 + .../doc/crypto/CONF_modules_free.pod | 47 + .../doc/crypto/CONF_modules_load_file.pod | 60 + .../doc/crypto/CRYPTO_set_ex_data.pod | 53 + .../openssl-0.9.8zf/doc/crypto/DH_generate_key.pod | 50 + .../doc/crypto/DH_generate_parameters.pod | 73 + .../doc/crypto/DH_get_ex_new_index.pod | 36 + .../openssl-0.9.8zf/doc/crypto/DH_new.pod | 40 + .../openssl-0.9.8zf/doc/crypto/DH_set_method.pod | 129 + .../openssl-0.9.8zf/doc/crypto/DH_size.pod | 33 + .../openssl-0.9.8zf/doc/crypto/DSA_SIG_new.pod | 40 + .../openssl-0.9.8zf/doc/crypto/DSA_do_sign.pod | 47 + .../openssl-0.9.8zf/doc/crypto/DSA_dup_DH.pod | 36 + .../doc/crypto/DSA_generate_key.pod | 34 + .../doc/crypto/DSA_generate_parameters.pod | 105 + .../doc/crypto/DSA_get_ex_new_index.pod | 36 + .../openssl-0.9.8zf/doc/crypto/DSA_new.pod | 42 + .../openssl-0.9.8zf/doc/crypto/DSA_set_method.pod | 143 + .../openssl-0.9.8zf/doc/crypto/DSA_sign.pod | 66 + .../openssl-0.9.8zf/doc/crypto/DSA_size.pod | 33 + .../openssl-0.9.8zf/doc/crypto/ERR_GET_LIB.pod | 51 + .../openssl-0.9.8zf/doc/crypto/ERR_clear_error.pod | 29 + .../doc/crypto/ERR_error_string.pod | 73 + .../openssl-0.9.8zf/doc/crypto/ERR_get_error.pod | 79 + .../doc/crypto/ERR_load_crypto_strings.pod | 46 + .../doc/crypto/ERR_load_strings.pod | 54 + .../doc/crypto/ERR_print_errors.pod | 51 + .../openssl-0.9.8zf/doc/crypto/ERR_put_error.pod | 44 + .../doc/crypto/ERR_remove_state.pod | 34 + .../openssl-0.9.8zf/doc/crypto/ERR_set_mark.pod | 38 + .../openssl-0.9.8zf/doc/crypto/EVP_BytesToKey.pod | 67 + .../openssl-0.9.8zf/doc/crypto/EVP_DigestInit.pod | 256 + .../openssl-0.9.8zf/doc/crypto/EVP_EncryptInit.pod | 511 ++ .../openssl-0.9.8zf/doc/crypto/EVP_OpenInit.pod | 63 + .../openssl-0.9.8zf/doc/crypto/EVP_PKEY_new.pod | 47 + .../doc/crypto/EVP_PKEY_set1_RSA.pod | 80 + .../openssl-0.9.8zf/doc/crypto/EVP_SealInit.pod | 85 + .../openssl-0.9.8zf/doc/crypto/EVP_SignInit.pod | 95 + .../openssl-0.9.8zf/doc/crypto/EVP_VerifyInit.pod | 86 + .../openssl-0.9.8zf/doc/crypto/OBJ_nid2obj.pod | 151 + .../openssl-0.9.8zf/doc/crypto/OPENSSL_Applink.pod | 21 + .../doc/crypto/OPENSSL_VERSION_NUMBER.pod | 101 + .../openssl-0.9.8zf/doc/crypto/OPENSSL_config.pod | 82 + .../openssl-0.9.8zf/doc/crypto/OPENSSL_ia32cap.pod | 43 + .../doc/crypto/OPENSSL_load_builtin_modules.pod | 51 + .../doc/crypto/OpenSSL_add_all_algorithms.pod | 66 + .../openssl-0.9.8zf/doc/crypto/PKCS12_create.pod | 75 + .../openssl-0.9.8zf/doc/crypto/PKCS12_parse.pod | 57 + .../openssl-0.9.8zf/doc/crypto/PKCS7_decrypt.pod | 55 + .../openssl-0.9.8zf/doc/crypto/PKCS7_encrypt.pod | 67 + .../openssl-0.9.8zf/doc/crypto/PKCS7_sign.pod | 103 + .../openssl-0.9.8zf/doc/crypto/PKCS7_verify.pod | 118 + .../openssl-0.9.8zf/doc/crypto/RAND_add.pod | 77 + .../openssl-0.9.8zf/doc/crypto/RAND_bytes.pod | 50 + .../openssl-0.9.8zf/doc/crypto/RAND_cleanup.pod | 29 + .../openssl-0.9.8zf/doc/crypto/RAND_egd.pod | 88 + .../openssl-0.9.8zf/doc/crypto/RAND_load_file.pod | 53 + .../doc/crypto/RAND_set_rand_method.pod | 83 + .../openssl-0.9.8zf/doc/crypto/RSA_blinding_on.pod | 43 + .../openssl-0.9.8zf/doc/crypto/RSA_check_key.pod | 67 + .../doc/crypto/RSA_generate_key.pod | 69 + .../doc/crypto/RSA_get_ex_new_index.pod | 120 + .../openssl-0.9.8zf/doc/crypto/RSA_new.pod | 41 + .../doc/crypto/RSA_padding_add_PKCS1_type_1.pod | 124 + .../openssl-0.9.8zf/doc/crypto/RSA_print.pod | 49 + .../doc/crypto/RSA_private_encrypt.pod | 70 + .../doc/crypto/RSA_public_encrypt.pod | 84 + .../openssl-0.9.8zf/doc/crypto/RSA_set_method.pod | 206 + .../openssl-0.9.8zf/doc/crypto/RSA_sign.pod | 66 + .../doc/crypto/RSA_sign_ASN1_OCTET_STRING.pod | 59 + .../openssl-0.9.8zf/doc/crypto/RSA_size.pod | 33 + .../doc/crypto/SMIME_read_PKCS7.pod | 73 + .../doc/crypto/SMIME_write_PKCS7.pod | 63 + .../doc/crypto/X509_NAME_ENTRY_get_object.pod | 74 + .../doc/crypto/X509_NAME_add_entry_by_txt.pod | 116 + .../doc/crypto/X509_NAME_get_index_by_NID.pod | 108 + .../doc/crypto/X509_NAME_print_ex.pod | 105 + .../openssl-0.9.8zf/doc/crypto/X509_new.pod | 39 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/bio.pod | 54 + .../openssl-0.9.8zf/doc/crypto/blowfish.pod | 112 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/bn.pod | 181 + .../openssl-0.9.8zf/doc/crypto/bn_internal.pod | 238 + .../openssl-0.9.8zf/doc/crypto/buffer.pod | 73 + .../openssl-0.9.8zf/doc/crypto/crypto.pod | 85 + .../openssl-0.9.8zf/doc/crypto/d2i_ASN1_OBJECT.pod | 29 + .../openssl-0.9.8zf/doc/crypto/d2i_DHparams.pod | 30 + .../doc/crypto/d2i_DSAPublicKey.pod | 83 + .../doc/crypto/d2i_PKCS8PrivateKey.pod | 56 + .../doc/crypto/d2i_RSAPublicKey.pod | 67 + .../openssl-0.9.8zf/doc/crypto/d2i_X509.pod | 231 + .../openssl-0.9.8zf/doc/crypto/d2i_X509_ALGOR.pod | 30 + .../openssl-0.9.8zf/doc/crypto/d2i_X509_CRL.pod | 37 + .../openssl-0.9.8zf/doc/crypto/d2i_X509_NAME.pod | 31 + .../openssl-0.9.8zf/doc/crypto/d2i_X509_REQ.pod | 36 + .../openssl-0.9.8zf/doc/crypto/d2i_X509_SIG.pod | 30 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/des.pod | 357 + .../openssl-0.9.8zf/doc/crypto/des_modes.pod | 255 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/dh.pod | 78 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/dsa.pod | 114 + .../openssl-0.9.8zf/doc/crypto/ecdsa.pod | 206 + .../openssl-0.9.8zf/doc/crypto/engine.pod | 599 ++ .../OpensslLib/openssl-0.9.8zf/doc/crypto/err.pod | 186 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/evp.pod | 45 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/hmac.pod | 100 + .../openssl-0.9.8zf/doc/crypto/lh_stats.pod | 60 + .../openssl-0.9.8zf/doc/crypto/lhash.pod | 294 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/md5.pod | 101 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/mdc2.pod | 64 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/pem.pod | 480 ++ .../OpensslLib/openssl-0.9.8zf/doc/crypto/rand.pod | 175 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/rc4.pod | 62 + .../openssl-0.9.8zf/doc/crypto/ripemd.pod | 66 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/rsa.pod | 123 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/sha.pod | 70 + .../openssl-0.9.8zf/doc/crypto/threads.pod | 175 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/ui.pod | 194 + .../openssl-0.9.8zf/doc/crypto/ui_compat.pod | 57 + .../OpensslLib/openssl-0.9.8zf/doc/crypto/x509.pod | 64 + .../openssl-0.9.8zf/doc/fingerprints.txt | 63 + .../openssl-0.9.8zf/doc/openssl-shared.txt | 32 + .../OpensslLib/openssl-0.9.8zf/doc/openssl.txt | 1254 +++ .../openssl-0.9.8zf/doc/openssl_button.gif | Bin 0 -> 2063 bytes .../openssl-0.9.8zf/doc/openssl_button.html | 7 + .../doc/ssl/SSL_CIPHER_get_name.pod | 121 + .../doc/ssl/SSL_COMP_add_compression_method.pod | 70 + .../doc/ssl/SSL_CTX_add_extra_chain_cert.pod | 49 + .../doc/ssl/SSL_CTX_add_session.pod | 73 + .../openssl-0.9.8zf/doc/ssl/SSL_CTX_ctrl.pod | 34 + .../doc/ssl/SSL_CTX_flush_sessions.pod | 49 + .../openssl-0.9.8zf/doc/ssl/SSL_CTX_free.pod | 41 + .../doc/ssl/SSL_CTX_get_ex_new_index.pod | 53 + .../doc/ssl/SSL_CTX_get_verify_mode.pod | 50 + .../doc/ssl/SSL_CTX_load_verify_locations.pod | 124 + .../openssl-0.9.8zf/doc/ssl/SSL_CTX_new.pod | 94 + .../doc/ssl/SSL_CTX_sess_number.pod | 76 + .../doc/ssl/SSL_CTX_sess_set_cache_size.pod | 51 + .../doc/ssl/SSL_CTX_sess_set_get_cb.pod | 87 + .../openssl-0.9.8zf/doc/ssl/SSL_CTX_sessions.pod | 34 + .../doc/ssl/SSL_CTX_set_cert_store.pod | 57 + .../doc/ssl/SSL_CTX_set_cert_verify_callback.pod | 75 + .../doc/ssl/SSL_CTX_set_cipher_list.pod | 70 + .../doc/ssl/SSL_CTX_set_client_CA_list.pod | 94 + .../doc/ssl/SSL_CTX_set_client_cert_cb.pod | 94 + .../doc/ssl/SSL_CTX_set_default_passwd_cb.pod | 76 + .../doc/ssl/SSL_CTX_set_generate_session_id.pod | 150 + .../doc/ssl/SSL_CTX_set_info_callback.pod | 153 + .../doc/ssl/SSL_CTX_set_max_cert_list.pod | 77 + .../openssl-0.9.8zf/doc/ssl/SSL_CTX_set_mode.pod | 91 + .../doc/ssl/SSL_CTX_set_msg_callback.pod | 99 + .../doc/ssl/SSL_CTX_set_options.pod | 340 + .../doc/ssl/SSL_CTX_set_quiet_shutdown.pod | 63 + .../doc/ssl/SSL_CTX_set_session_cache_mode.pod | 137 + .../doc/ssl/SSL_CTX_set_session_id_context.pod | 83 + .../doc/ssl/SSL_CTX_set_ssl_version.pod | 61 + .../doc/ssl/SSL_CTX_set_timeout.pod | 59 + .../doc/ssl/SSL_CTX_set_tlsext_ticket_key_cb.pod | 195 + .../doc/ssl/SSL_CTX_set_tmp_dh_callback.pod | 168 + .../doc/ssl/SSL_CTX_set_tmp_rsa_callback.pod | 159 + .../openssl-0.9.8zf/doc/ssl/SSL_CTX_set_verify.pod | 294 + .../doc/ssl/SSL_CTX_use_certificate.pod | 169 + .../openssl-0.9.8zf/doc/ssl/SSL_SESSION_free.pod | 55 + .../doc/ssl/SSL_SESSION_get_ex_new_index.pod | 61 + .../doc/ssl/SSL_SESSION_get_time.pod | 64 + .../openssl-0.9.8zf/doc/ssl/SSL_accept.pod | 76 + .../doc/ssl/SSL_alert_type_string.pod | 228 + .../openssl-0.9.8zf/doc/ssl/SSL_clear.pod | 75 + .../openssl-0.9.8zf/doc/ssl/SSL_connect.pod | 73 + .../openssl-0.9.8zf/doc/ssl/SSL_do_handshake.pod | 75 + .../openssl-0.9.8zf/doc/ssl/SSL_free.pod | 44 + .../openssl-0.9.8zf/doc/ssl/SSL_get_SSL_CTX.pod | 26 + .../openssl-0.9.8zf/doc/ssl/SSL_get_ciphers.pod | 42 + .../doc/ssl/SSL_get_client_CA_list.pod | 53 + .../doc/ssl/SSL_get_current_cipher.pod | 43 + .../doc/ssl/SSL_get_default_timeout.pod | 41 + .../openssl-0.9.8zf/doc/ssl/SSL_get_error.pod | 114 + .../doc/ssl/SSL_get_ex_data_X509_STORE_CTX_idx.pod | 61 + .../doc/ssl/SSL_get_ex_new_index.pod | 59 + .../openssl-0.9.8zf/doc/ssl/SSL_get_fd.pod | 44 + .../doc/ssl/SSL_get_peer_cert_chain.pod | 52 + .../doc/ssl/SSL_get_peer_certificate.pod | 55 + .../openssl-0.9.8zf/doc/ssl/SSL_get_rbio.pod | 40 + .../openssl-0.9.8zf/doc/ssl/SSL_get_session.pod | 73 + .../doc/ssl/SSL_get_verify_result.pod | 57 + .../openssl-0.9.8zf/doc/ssl/SSL_get_version.pod | 54 + .../openssl-0.9.8zf/doc/ssl/SSL_library_init.pod | 56 + .../doc/ssl/SSL_load_client_CA_file.pod | 62 + .../OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_new.pod | 44 + .../openssl-0.9.8zf/doc/ssl/SSL_pending.pod | 43 + .../openssl-0.9.8zf/doc/ssl/SSL_read.pod | 124 + .../openssl-0.9.8zf/doc/ssl/SSL_rstate_string.pod | 59 + .../openssl-0.9.8zf/doc/ssl/SSL_session_reused.pod | 45 + .../openssl-0.9.8zf/doc/ssl/SSL_set_bio.pod | 34 + .../doc/ssl/SSL_set_connect_state.pod | 55 + .../openssl-0.9.8zf/doc/ssl/SSL_set_fd.pod | 54 + .../openssl-0.9.8zf/doc/ssl/SSL_set_session.pod | 57 + .../openssl-0.9.8zf/doc/ssl/SSL_set_shutdown.pod | 72 + .../doc/ssl/SSL_set_verify_result.pod | 38 + .../openssl-0.9.8zf/doc/ssl/SSL_shutdown.pod | 125 + .../openssl-0.9.8zf/doc/ssl/SSL_state_string.pod | 45 + .../openssl-0.9.8zf/doc/ssl/SSL_want.pod | 77 + .../openssl-0.9.8zf/doc/ssl/SSL_write.pod | 109 + .../openssl-0.9.8zf/doc/ssl/d2i_SSL_SESSION.pod | 76 + .../OpensslLib/openssl-0.9.8zf/doc/ssl/ssl.pod | 736 ++ .../OpensslLib/openssl-0.9.8zf/doc/ssleay.txt | 7030 +++++++++++++++ .../OpensslLib/openssl-0.9.8zf/doc/standards.txt | 281 + .../Library/OpensslLib/openssl-0.9.8zf/e_os.h | 754 ++ .../Library/OpensslLib/openssl-0.9.8zf/e_os2.h | 286 + .../OpensslLib/openssl-0.9.8zf/engines/Makefile | 302 + .../OpensslLib/openssl-0.9.8zf/engines/alpha.opt | 1 + .../OpensslLib/openssl-0.9.8zf/engines/e_4758cca.c | 960 +++ .../openssl-0.9.8zf/engines/e_4758cca.ec | 1 + .../openssl-0.9.8zf/engines/e_4758cca_err.c | 153 + .../openssl-0.9.8zf/engines/e_4758cca_err.h | 98 + .../OpensslLib/openssl-0.9.8zf/engines/e_aep.c | 1171 +++ .../OpensslLib/openssl-0.9.8zf/engines/e_aep.ec | 1 + .../OpensslLib/openssl-0.9.8zf/engines/e_aep_err.c | 159 + .../OpensslLib/openssl-0.9.8zf/engines/e_aep_err.h | 106 + .../OpensslLib/openssl-0.9.8zf/engines/e_atalla.c | 626 ++ .../OpensslLib/openssl-0.9.8zf/engines/e_atalla.ec | 1 + .../openssl-0.9.8zf/engines/e_atalla_err.c | 145 + .../openssl-0.9.8zf/engines/e_atalla_err.h | 94 + .../OpensslLib/openssl-0.9.8zf/engines/e_capi.c | 1742 ++++ .../OpensslLib/openssl-0.9.8zf/engines/e_capi.ec | 1 + .../openssl-0.9.8zf/engines/e_capi_err.c | 187 + .../openssl-0.9.8zf/engines/e_capi_err.h | 129 + .../OpensslLib/openssl-0.9.8zf/engines/e_chil.c | 1342 +++ .../OpensslLib/openssl-0.9.8zf/engines/e_chil.ec | 1 + .../openssl-0.9.8zf/engines/e_chil_err.c | 157 + .../openssl-0.9.8zf/engines/e_chil_err.h | 105 + .../OpensslLib/openssl-0.9.8zf/engines/e_cswift.c | 1103 +++ .../OpensslLib/openssl-0.9.8zf/engines/e_cswift.ec | 1 + .../openssl-0.9.8zf/engines/e_cswift_err.c | 150 + .../openssl-0.9.8zf/engines/e_cswift_err.h | 99 + .../OpensslLib/openssl-0.9.8zf/engines/e_gmp.c | 488 ++ .../OpensslLib/openssl-0.9.8zf/engines/e_gmp.ec | 1 + .../OpensslLib/openssl-0.9.8zf/engines/e_gmp_err.c | 137 + .../OpensslLib/openssl-0.9.8zf/engines/e_gmp_err.h | 86 + .../OpensslLib/openssl-0.9.8zf/engines/e_nuron.c | 436 + .../OpensslLib/openssl-0.9.8zf/engines/e_nuron.ec | 1 + .../openssl-0.9.8zf/engines/e_nuron_err.c | 142 + .../openssl-0.9.8zf/engines/e_nuron_err.h | 91 + .../openssl-0.9.8zf/engines/e_sureware.c | 1098 +++ .../openssl-0.9.8zf/engines/e_sureware.ec | 1 + .../openssl-0.9.8zf/engines/e_sureware_err.c | 154 + .../openssl-0.9.8zf/engines/e_sureware_err.h | 104 + .../OpensslLib/openssl-0.9.8zf/engines/e_ubsec.c | 1085 +++ .../OpensslLib/openssl-0.9.8zf/engines/e_ubsec.ec | 1 + .../openssl-0.9.8zf/engines/e_ubsec_err.c | 154 + .../openssl-0.9.8zf/engines/e_ubsec_err.h | 102 + .../openssl-0.9.8zf/engines/engine_vector.mar | 24 + .../OpensslLib/openssl-0.9.8zf/engines/ia64.opt | 1 + .../openssl-0.9.8zf/engines/makeengines.com | 931 ++ .../OpensslLib/openssl-0.9.8zf/engines/vax.opt | 9 + .../openssl-0.9.8zf/engines/vendor_defns/aep.h | 235 + .../openssl-0.9.8zf/engines/vendor_defns/atalla.h | 44 + .../openssl-0.9.8zf/engines/vendor_defns/cswift.h | 235 + .../engines/vendor_defns/hw_4758_cca.h | 150 + .../engines/vendor_defns/hw_ubsec.h | 124 + .../engines/vendor_defns/hwcryptohook.h | 502 ++ .../engines/vendor_defns/sureware.h | 250 + .../OpensslLib/openssl-0.9.8zf/fips/Makefile | 230 + .../OpensslLib/openssl-0.9.8zf/fips/aes/Makefile | 111 + .../openssl-0.9.8zf/fips/aes/fips_aes_selftest.c | 101 + .../openssl-0.9.8zf/fips/aes/fips_aesavs.c | 808 ++ .../OpensslLib/openssl-0.9.8zf/fips/des/Makefile | 111 + .../openssl-0.9.8zf/fips/des/fips_des_selftest.c | 147 + .../openssl-0.9.8zf/fips/des/fips_desmovs.c | 625 ++ .../OpensslLib/openssl-0.9.8zf/fips/dh/Makefile | 115 + .../OpensslLib/openssl-0.9.8zf/fips/dh/dh_gen.c | 193 + .../openssl-0.9.8zf/fips/dh/fips_dh_check.c | 152 + .../openssl-0.9.8zf/fips/dh/fips_dh_gen.c | 204 + .../openssl-0.9.8zf/fips/dh/fips_dh_key.c | 267 + .../openssl-0.9.8zf/fips/dh/fips_dh_lib.c | 105 + .../OpensslLib/openssl-0.9.8zf/fips/dsa/Makefile | 191 + .../openssl-0.9.8zf/fips/dsa/fips_dsa_gen.c | 364 + .../openssl-0.9.8zf/fips/dsa/fips_dsa_key.c | 169 + .../openssl-0.9.8zf/fips/dsa/fips_dsa_lib.c | 103 + .../openssl-0.9.8zf/fips/dsa/fips_dsa_ossl.c | 452 + .../openssl-0.9.8zf/fips/dsa/fips_dsa_selftest.c | 180 + .../openssl-0.9.8zf/fips/dsa/fips_dsa_sign.c | 267 + .../openssl-0.9.8zf/fips/dsa/fips_dsatest.c | 273 + .../openssl-0.9.8zf/fips/dsa/fips_dssvs.c | 492 ++ .../OpensslLib/openssl-0.9.8zf/fips/fips-lib.com | 1198 +++ .../openssl-0.9.8zf/fips/fips-nodiff.txt | 7 + .../Library/OpensslLib/openssl-0.9.8zf/fips/fips.c | 523 ++ .../Library/OpensslLib/openssl-0.9.8zf/fips/fips.h | 163 + .../openssl-0.9.8zf/fips/fips_canister.c | 199 + .../OpensslLib/openssl-0.9.8zf/fips/fips_locl.h | 74 + .../OpensslLib/openssl-0.9.8zf/fips/fips_premain.c | 190 + .../openssl-0.9.8zf/fips/fips_premain.c.sha1 | 1 + .../openssl-0.9.8zf/fips/fips_test_suite.c | 659 ++ .../OpensslLib/openssl-0.9.8zf/fips/fips_utl.h | 354 + .../OpensslLib/openssl-0.9.8zf/fips/fipsalgtest.pl | 887 ++ .../Library/OpensslLib/openssl-0.9.8zf/fips/fipsld | 178 + .../OpensslLib/openssl-0.9.8zf/fips/fipstests.bat | 229 + .../OpensslLib/openssl-0.9.8zf/fips/fipstests.sh | 400 + .../OpensslLib/openssl-0.9.8zf/fips/hmac/Makefile | 123 + .../openssl-0.9.8zf/fips/hmac/fips_hmac.c | 182 + .../openssl-0.9.8zf/fips/hmac/fips_hmac_selftest.c | 134 + .../openssl-0.9.8zf/fips/hmac/fips_hmactest.c | 314 + .../OpensslLib/openssl-0.9.8zf/fips/install.com | 65 + .../OpensslLib/openssl-0.9.8zf/fips/mkfipsscr.pl | 657 ++ .../openssl-0.9.8zf/fips/openssl_fips_fingerprint | 31 + .../OpensslLib/openssl-0.9.8zf/fips/rand/Makefile | 149 + .../openssl-0.9.8zf/fips/rand/fips_rand.c | 390 + .../openssl-0.9.8zf/fips/rand/fips_rand.h | 77 + .../openssl-0.9.8zf/fips/rand/fips_rand_selftest.c | 366 + .../openssl-0.9.8zf/fips/rand/fips_randtest.c | 245 + .../openssl-0.9.8zf/fips/rand/fips_rngvs.c | 204 + .../OpensslLib/openssl-0.9.8zf/fips/rsa/Makefile | 215 + .../openssl-0.9.8zf/fips/rsa/fips_rsa_eay.c | 913 ++ .../openssl-0.9.8zf/fips/rsa/fips_rsa_gen.c | 326 + .../openssl-0.9.8zf/fips/rsa/fips_rsa_lib.c | 113 + .../openssl-0.9.8zf/fips/rsa/fips_rsa_selftest.c | 432 + .../openssl-0.9.8zf/fips/rsa/fips_rsa_sign.c | 561 ++ .../openssl-0.9.8zf/fips/rsa/fips_rsa_x931g.c | 273 + .../openssl-0.9.8zf/fips/rsa/fips_rsagtest.c | 368 + .../openssl-0.9.8zf/fips/rsa/fips_rsastest.c | 349 + .../openssl-0.9.8zf/fips/rsa/fips_rsavtest.c | 351 + .../OpensslLib/openssl-0.9.8zf/fips/sha/Makefile | 162 + .../openssl-0.9.8zf/fips/sha/fips_sha1_selftest.c | 93 + .../openssl-0.9.8zf/fips/sha/fips_shatest.c | 375 + .../fips/sha/fips_standalone_sha1.c | 168 + .../openssl-0.9.8zf/include/openssl/aes.h | 1 + .../openssl-0.9.8zf/include/openssl/asn1.h | 1 + .../openssl-0.9.8zf/include/openssl/asn1_mac.h | 1 + .../openssl-0.9.8zf/include/openssl/asn1t.h | 1 + .../openssl-0.9.8zf/include/openssl/bio.h | 1 + .../openssl-0.9.8zf/include/openssl/blowfish.h | 1 + .../openssl-0.9.8zf/include/openssl/bn.h | 1 + .../openssl-0.9.8zf/include/openssl/buffer.h | 1 + .../openssl-0.9.8zf/include/openssl/cast.h | 1 + .../openssl-0.9.8zf/include/openssl/comp.h | 1 + .../openssl-0.9.8zf/include/openssl/conf.h | 1 + .../openssl-0.9.8zf/include/openssl/conf_api.h | 1 + .../openssl-0.9.8zf/include/openssl/crypto.h | 1 + .../openssl-0.9.8zf/include/openssl/des.h | 1 + .../openssl-0.9.8zf/include/openssl/des_old.h | 1 + .../openssl-0.9.8zf/include/openssl/dh.h | 1 + .../openssl-0.9.8zf/include/openssl/dsa.h | 1 + .../openssl-0.9.8zf/include/openssl/dso.h | 1 + .../openssl-0.9.8zf/include/openssl/dtls1.h | 1 + .../openssl-0.9.8zf/include/openssl/e_os2.h | 1 + .../openssl-0.9.8zf/include/openssl/ebcdic.h | 1 + .../openssl-0.9.8zf/include/openssl/ec.h | 1 + .../openssl-0.9.8zf/include/openssl/ecdh.h | 1 + .../openssl-0.9.8zf/include/openssl/ecdsa.h | 1 + .../openssl-0.9.8zf/include/openssl/engine.h | 1 + .../openssl-0.9.8zf/include/openssl/err.h | 1 + .../openssl-0.9.8zf/include/openssl/evp.h | 1 + .../openssl-0.9.8zf/include/openssl/fips.h | 1 + .../openssl-0.9.8zf/include/openssl/fips_rand.h | 1 + .../openssl-0.9.8zf/include/openssl/hmac.h | 1 + .../openssl-0.9.8zf/include/openssl/idea.h | 1 + .../openssl-0.9.8zf/include/openssl/krb5_asn.h | 1 + .../openssl-0.9.8zf/include/openssl/kssl.h | 1 + .../openssl-0.9.8zf/include/openssl/lhash.h | 1 + .../openssl-0.9.8zf/include/openssl/md2.h | 1 + .../openssl-0.9.8zf/include/openssl/md4.h | 1 + .../openssl-0.9.8zf/include/openssl/md5.h | 1 + .../openssl-0.9.8zf/include/openssl/obj_mac.h | 1 + .../openssl-0.9.8zf/include/openssl/objects.h | 1 + .../openssl-0.9.8zf/include/openssl/ocsp.h | 1 + .../openssl-0.9.8zf/include/openssl/opensslconf.h | 1 + .../openssl-0.9.8zf/include/openssl/opensslv.h | 1 + .../openssl-0.9.8zf/include/openssl/ossl_typ.h | 1 + .../openssl-0.9.8zf/include/openssl/pem.h | 1 + .../openssl-0.9.8zf/include/openssl/pem2.h | 1 + .../openssl-0.9.8zf/include/openssl/pkcs12.h | 1 + .../openssl-0.9.8zf/include/openssl/pkcs7.h | 1 + .../openssl-0.9.8zf/include/openssl/pq_compat.h | 1 + .../openssl-0.9.8zf/include/openssl/pqueue.h | 1 + .../openssl-0.9.8zf/include/openssl/rand.h | 1 + .../openssl-0.9.8zf/include/openssl/rc2.h | 1 + .../openssl-0.9.8zf/include/openssl/rc4.h | 1 + .../openssl-0.9.8zf/include/openssl/ripemd.h | 1 + .../openssl-0.9.8zf/include/openssl/rsa.h | 1 + .../openssl-0.9.8zf/include/openssl/safestack.h | 1 + .../openssl-0.9.8zf/include/openssl/sha.h | 1 + .../openssl-0.9.8zf/include/openssl/ssl.h | 1 + .../openssl-0.9.8zf/include/openssl/ssl2.h | 1 + .../openssl-0.9.8zf/include/openssl/ssl23.h | 1 + .../openssl-0.9.8zf/include/openssl/ssl3.h | 1 + .../openssl-0.9.8zf/include/openssl/stack.h | 1 + .../openssl-0.9.8zf/include/openssl/store.h | 1 + .../openssl-0.9.8zf/include/openssl/symhacks.h | 1 + .../openssl-0.9.8zf/include/openssl/tls1.h | 1 + .../openssl-0.9.8zf/include/openssl/tmdiff.h | 1 + .../openssl-0.9.8zf/include/openssl/txt_db.h | 1 + .../openssl-0.9.8zf/include/openssl/ui.h | 1 + .../openssl-0.9.8zf/include/openssl/ui_compat.h | 1 + .../openssl-0.9.8zf/include/openssl/x509.h | 1 + .../openssl-0.9.8zf/include/openssl/x509_vfy.h | 1 + .../openssl-0.9.8zf/include/openssl/x509v3.h | 1 + .../Library/OpensslLib/openssl-0.9.8zf/install.com | 101 + .../Library/OpensslLib/openssl-0.9.8zf/makevms.com | 1152 +++ .../Library/OpensslLib/openssl-0.9.8zf/ms/.rnd | Bin 0 -> 1024 bytes .../OpensslLib/openssl-0.9.8zf/ms/32all.bat | 20 + .../Library/OpensslLib/openssl-0.9.8zf/ms/README | 13 + .../OpensslLib/openssl-0.9.8zf/ms/applink.c | 129 + .../Library/OpensslLib/openssl-0.9.8zf/ms/bcb4.bat | 6 + .../OpensslLib/openssl-0.9.8zf/ms/certCA.srl | 1 + .../OpensslLib/openssl-0.9.8zf/ms/certCA.ss | 10 + .../Library/OpensslLib/openssl-0.9.8zf/ms/certU.ss | 10 + .../Library/OpensslLib/openssl-0.9.8zf/ms/cmp.pl | 47 + .../OpensslLib/openssl-0.9.8zf/ms/do_fips.bat | 204 + .../OpensslLib/openssl-0.9.8zf/ms/do_masm.bat | 74 + .../OpensslLib/openssl-0.9.8zf/ms/do_ms.bat | 11 + .../OpensslLib/openssl-0.9.8zf/ms/do_nasm.bat | 80 + .../OpensslLib/openssl-0.9.8zf/ms/do_nt.bat | 7 + .../OpensslLib/openssl-0.9.8zf/ms/do_win64a.bat | 9 + .../OpensslLib/openssl-0.9.8zf/ms/do_win64i.bat | 9 + .../Library/OpensslLib/openssl-0.9.8zf/ms/keyCA.ss | 9 + .../Library/OpensslLib/openssl-0.9.8zf/ms/keyU.ss | 9 + .../OpensslLib/openssl-0.9.8zf/ms/mingw32.bat | 94 + .../Library/OpensslLib/openssl-0.9.8zf/ms/mw.bat | 26 + .../OpensslLib/openssl-0.9.8zf/ms/req2CA.ss | 29 + .../Library/OpensslLib/openssl-0.9.8zf/ms/reqCA.ss | 8 + .../Library/OpensslLib/openssl-0.9.8zf/ms/reqU.ss | 8 + .../OpensslLib/openssl-0.9.8zf/ms/segrenam.pl | 65 + .../OpensslLib/openssl-0.9.8zf/ms/speed32.bat | 37 + .../Library/OpensslLib/openssl-0.9.8zf/ms/tenc.bat | 14 + .../OpensslLib/openssl-0.9.8zf/ms/tencce.bat | 19 + .../Library/OpensslLib/openssl-0.9.8zf/ms/test.bat | 190 + .../OpensslLib/openssl-0.9.8zf/ms/testce.bat | 234 + .../OpensslLib/openssl-0.9.8zf/ms/testce2.bat | 2 + .../OpensslLib/openssl-0.9.8zf/ms/testenc.bat | 94 + .../OpensslLib/openssl-0.9.8zf/ms/testencce.bat | 97 + .../OpensslLib/openssl-0.9.8zf/ms/testpem.bat | 32 + .../OpensslLib/openssl-0.9.8zf/ms/testpemce.bat | 42 + .../OpensslLib/openssl-0.9.8zf/ms/testss.bat | 98 + .../OpensslLib/openssl-0.9.8zf/ms/testssce.bat | 104 + .../OpensslLib/openssl-0.9.8zf/ms/tlhelp32.h | 136 + .../Library/OpensslLib/openssl-0.9.8zf/ms/tpem.bat | 6 + .../OpensslLib/openssl-0.9.8zf/ms/tpemce.bat | 8 + .../Library/OpensslLib/openssl-0.9.8zf/ms/uplink.c | 126 + .../Library/OpensslLib/openssl-0.9.8zf/ms/uplink.h | 29 + .../OpensslLib/openssl-0.9.8zf/ms/uplink.pl | 204 + .../OpensslLib/openssl-0.9.8zf/ms/x86asm.bat | 63 + .../OpensslLib/openssl-0.9.8zf/openssl.doxy | 7 + .../OpensslLib/openssl-0.9.8zf/openssl.spec | 209 + .../OpensslLib/openssl-0.9.8zf/os2/OS2-EMX.cmd | 102 + .../OpensslLib/openssl-0.9.8zf/os2/backwardify.pl | 32 + .../openssl-0.9.8zf/shlib/Makefile.hpux10-cc | 34 + .../OpensslLib/openssl-0.9.8zf/shlib/README | 1 + .../OpensslLib/openssl-0.9.8zf/shlib/hpux10-cc.sh | 92 + .../OpensslLib/openssl-0.9.8zf/shlib/irix.sh | 7 + .../openssl-0.9.8zf/shlib/sco5-shared-gcc.sh | 48 + .../openssl-0.9.8zf/shlib/sco5-shared-installed | 28 + .../openssl-0.9.8zf/shlib/sco5-shared.sh | 48 + .../openssl-0.9.8zf/shlib/solaris-sc4.sh | 42 + .../OpensslLib/openssl-0.9.8zf/shlib/solaris.sh | 36 + .../OpensslLib/openssl-0.9.8zf/shlib/sun.sh | 8 + .../openssl-0.9.8zf/shlib/svr5-shared-gcc.sh | 48 + .../openssl-0.9.8zf/shlib/svr5-shared-installed | 27 + .../openssl-0.9.8zf/shlib/svr5-shared.sh | 48 + .../OpensslLib/openssl-0.9.8zf/shlib/win32.bat | 18 + .../OpensslLib/openssl-0.9.8zf/shlib/win32dll.bat | 13 + .../OpensslLib/openssl-0.9.8zf/ssl/Makefile | 1060 +++ .../OpensslLib/openssl-0.9.8zf/ssl/bio_ssl.c | 583 ++ .../OpensslLib/openssl-0.9.8zf/ssl/d1_both.c | 1443 ++++ .../OpensslLib/openssl-0.9.8zf/ssl/d1_clnt.c | 1228 +++ .../OpensslLib/openssl-0.9.8zf/ssl/d1_enc.c | 250 + .../OpensslLib/openssl-0.9.8zf/ssl/d1_lib.c | 508 ++ .../OpensslLib/openssl-0.9.8zf/ssl/d1_meth.c | 74 + .../OpensslLib/openssl-0.9.8zf/ssl/d1_pkt.c | 1805 ++++ .../OpensslLib/openssl-0.9.8zf/ssl/d1_srvr.c | 1330 +++ .../Library/OpensslLib/openssl-0.9.8zf/ssl/dtls1.h | 236 + .../OpensslLib/openssl-0.9.8zf/ssl/install.com | 90 + .../Library/OpensslLib/openssl-0.9.8zf/ssl/kssl.c | 2232 +++++ .../Library/OpensslLib/openssl-0.9.8zf/ssl/kssl.h | 183 + .../OpensslLib/openssl-0.9.8zf/ssl/kssl_lcl.h | 88 + .../OpensslLib/openssl-0.9.8zf/ssl/s23_clnt.c | 619 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s23_lib.c | 186 + .../OpensslLib/openssl-0.9.8zf/ssl/s23_meth.c | 85 + .../OpensslLib/openssl-0.9.8zf/ssl/s23_pkt.c | 113 + .../OpensslLib/openssl-0.9.8zf/ssl/s23_srvr.c | 598 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s2_clnt.c | 1087 +++ .../OpensslLib/openssl-0.9.8zf/ssl/s2_enc.c | 194 + .../OpensslLib/openssl-0.9.8zf/ssl/s2_lib.c | 488 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s2_meth.c | 81 + .../OpensslLib/openssl-0.9.8zf/ssl/s2_pkt.c | 700 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s2_srvr.c | 1151 +++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_both.c | 635 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_cbc.c | 783 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_clnt.c | 2728 ++++++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_enc.c | 787 ++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_lib.c | 2621 ++++++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_meth.c | 73 + .../OpensslLib/openssl-0.9.8zf/ssl/s3_pkt.c | 1418 +++ .../OpensslLib/openssl-0.9.8zf/ssl/s3_srvr.c | 2800 ++++++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl-lib.com | 1057 +++ .../Library/OpensslLib/openssl-0.9.8zf/ssl/ssl.h | 2243 +++++ .../Library/OpensslLib/openssl-0.9.8zf/ssl/ssl2.h | 261 + .../Library/OpensslLib/openssl-0.9.8zf/ssl/ssl23.h | 84 + .../Library/OpensslLib/openssl-0.9.8zf/ssl/ssl3.h | 615 ++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_algs.c | 137 + .../OpensslLib/openssl-0.9.8zf/ssl/ssl_asn1.c | 502 ++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_cert.c | 806 ++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_ciph.c | 1402 +++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_err.c | 686 ++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_err2.c | 69 + .../OpensslLib/openssl-0.9.8zf/ssl/ssl_lib.c | 2772 ++++++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_locl.h | 1078 +++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_rsa.c | 729 ++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_sess.c | 910 ++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_stat.c | 1046 +++ .../OpensslLib/openssl-0.9.8zf/ssl/ssl_task.c | 397 + .../OpensslLib/openssl-0.9.8zf/ssl/ssl_txt.c | 212 + .../OpensslLib/openssl-0.9.8zf/ssl/ssltest.c | 2208 +++++ .../OpensslLib/openssl-0.9.8zf/ssl/t1_clnt.c | 77 + .../OpensslLib/openssl-0.9.8zf/ssl/t1_enc.c | 935 ++ .../OpensslLib/openssl-0.9.8zf/ssl/t1_lib.c | 1098 +++ .../OpensslLib/openssl-0.9.8zf/ssl/t1_meth.c | 73 + .../OpensslLib/openssl-0.9.8zf/ssl/t1_reneg.c | 292 + .../OpensslLib/openssl-0.9.8zf/ssl/t1_srvr.c | 78 + .../Library/OpensslLib/openssl-0.9.8zf/ssl/tls1.h | 466 + .../OpensslLib/openssl-0.9.8zf/test/CAss.cnf | 76 + .../OpensslLib/openssl-0.9.8zf/test/CAssdh.cnf | 24 + .../OpensslLib/openssl-0.9.8zf/test/CAssdsa.cnf | 23 + .../OpensslLib/openssl-0.9.8zf/test/CAssrsa.cnf | 24 + .../OpensslLib/openssl-0.9.8zf/test/Makefile | 954 +++ .../OpensslLib/openssl-0.9.8zf/test/P1ss.cnf | 37 + .../OpensslLib/openssl-0.9.8zf/test/P2ss.cnf | 45 + .../OpensslLib/openssl-0.9.8zf/test/SHAmix.r | 99 + .../OpensslLib/openssl-0.9.8zf/test/SHAmix.x | 129 + .../OpensslLib/openssl-0.9.8zf/test/Sssdsa.cnf | 27 + .../OpensslLib/openssl-0.9.8zf/test/Sssrsa.cnf | 26 + .../OpensslLib/openssl-0.9.8zf/test/Uss.cnf | 36 + .../openssl-0.9.8zf/test/VMSca-response.1 | 1 + .../openssl-0.9.8zf/test/VMSca-response.2 | 2 + .../Library/OpensslLib/openssl-0.9.8zf/test/bctest | 111 + .../OpensslLib/openssl-0.9.8zf/test/bftest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/bntest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/casttest.c | 1 + .../openssl-0.9.8zf/test/cms-examples.pl | 409 + .../OpensslLib/openssl-0.9.8zf/test/cms-test.pl | 455 + .../openssl-0.9.8zf/test/constant_time_test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/destest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/dhtest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/dsatest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/dummytest.c | 57 + .../OpensslLib/openssl-0.9.8zf/test/ecdhtest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/ecdsatest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/ectest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/enginetest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/evp_test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/evptests.txt | 321 + .../OpensslLib/openssl-0.9.8zf/test/exptest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/fips_aesavs.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/fips_desmovs.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/fips_dsatest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/fips_dssvs.c | 1 + .../openssl-0.9.8zf/test/fips_hmactest.c | 1 + .../openssl-0.9.8zf/test/fips_randtest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/fips_rngvs.c | 1 + .../openssl-0.9.8zf/test/fips_rsagtest.c | 1 + .../openssl-0.9.8zf/test/fips_rsastest.c | 1 + .../openssl-0.9.8zf/test/fips_rsavtest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/fips_shatest.c | 1 + .../openssl-0.9.8zf/test/fips_test_suite.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/hmactest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/ideatest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/igetest.c | 484 ++ .../OpensslLib/openssl-0.9.8zf/test/jpaketest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/maketests.com | 925 ++ .../OpensslLib/openssl-0.9.8zf/test/md2test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/md4test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/md5test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/mdc2test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/methtest.c | 107 + .../OpensslLib/openssl-0.9.8zf/test/pkcs7-1.pem | 15 + .../OpensslLib/openssl-0.9.8zf/test/pkcs7.pem | 54 + .../OpensslLib/openssl-0.9.8zf/test/r160test.c | 57 + .../OpensslLib/openssl-0.9.8zf/test/randtest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/rc2test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/rc4test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/rc5test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/rmdtest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/rsa_test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/sha1test.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/sha256t.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/sha512t.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/shatest.c | 1 + .../OpensslLib/openssl-0.9.8zf/test/smcont.txt | 1 + .../openssl-0.9.8zf/test/smime-certs/smdsa1.pem | 34 + .../openssl-0.9.8zf/test/smime-certs/smdsa2.pem | 34 + .../openssl-0.9.8zf/test/smime-certs/smdsa3.pem | 34 + .../openssl-0.9.8zf/test/smime-certs/smdsap.pem | 9 + .../openssl-0.9.8zf/test/smime-certs/smroot.pem | 30 + .../openssl-0.9.8zf/test/smime-certs/smrsa1.pem | 31 + .../openssl-0.9.8zf/test/smime-certs/smrsa2.pem | 31 + .../openssl-0.9.8zf/test/smime-certs/smrsa3.pem | 31 + .../OpensslLib/openssl-0.9.8zf/test/ssltest.c | 1 + .../Library/OpensslLib/openssl-0.9.8zf/test/tcrl | 78 + .../OpensslLib/openssl-0.9.8zf/test/tcrl.com | 85 + .../OpensslLib/openssl-0.9.8zf/test/test.cnf | 88 + .../Library/OpensslLib/openssl-0.9.8zf/test/testca | 51 + .../OpensslLib/openssl-0.9.8zf/test/testca.com | 79 + .../OpensslLib/openssl-0.9.8zf/test/testcrl.pem | 16 + .../OpensslLib/openssl-0.9.8zf/test/testenc | 54 + .../OpensslLib/openssl-0.9.8zf/test/testenc.com | 63 + .../OpensslLib/openssl-0.9.8zf/test/testfipsssl | 113 + .../OpensslLib/openssl-0.9.8zf/test/testgen | 44 + .../OpensslLib/openssl-0.9.8zf/test/testgen.com | 54 + .../OpensslLib/openssl-0.9.8zf/test/testp7.pem | 46 + .../OpensslLib/openssl-0.9.8zf/test/testreq2.pem | 7 + .../OpensslLib/openssl-0.9.8zf/test/testrsa.pem | 9 + .../OpensslLib/openssl-0.9.8zf/test/tests.com | 277 + .../OpensslLib/openssl-0.9.8zf/test/testsid.pem | 12 + .../Library/OpensslLib/openssl-0.9.8zf/test/testss | 163 + .../OpensslLib/openssl-0.9.8zf/test/testss.com | 120 + .../OpensslLib/openssl-0.9.8zf/test/testssl | 162 + .../OpensslLib/openssl-0.9.8zf/test/testssl.com | 206 + .../OpensslLib/openssl-0.9.8zf/test/testsslproxy | 10 + .../OpensslLib/openssl-0.9.8zf/test/testx509.pem | 10 + .../Library/OpensslLib/openssl-0.9.8zf/test/times | 113 + .../Library/OpensslLib/openssl-0.9.8zf/test/tpkcs7 | 48 + .../OpensslLib/openssl-0.9.8zf/test/tpkcs7.com | 56 + .../OpensslLib/openssl-0.9.8zf/test/tpkcs7d | 41 + .../OpensslLib/openssl-0.9.8zf/test/tpkcs7d.com | 49 + .../Library/OpensslLib/openssl-0.9.8zf/test/treq | 83 + .../OpensslLib/openssl-0.9.8zf/test/treq.com | 85 + .../Library/OpensslLib/openssl-0.9.8zf/test/trsa | 83 + .../OpensslLib/openssl-0.9.8zf/test/trsa.com | 96 + .../Library/OpensslLib/openssl-0.9.8zf/test/tsid | 78 + .../OpensslLib/openssl-0.9.8zf/test/tsid.com | 85 + .../OpensslLib/openssl-0.9.8zf/test/tverify.com | 63 + .../Library/OpensslLib/openssl-0.9.8zf/test/tx509 | 78 + .../OpensslLib/openssl-0.9.8zf/test/tx509.com | 85 + .../OpensslLib/openssl-0.9.8zf/test/v3-cert1.pem | 16 + .../OpensslLib/openssl-0.9.8zf/test/v3-cert2.pem | 16 + .../openssl-0.9.8zf/times/090/586-100.nt | 32 + .../OpensslLib/openssl-0.9.8zf/times/091/486-50.nt | 30 + .../openssl-0.9.8zf/times/091/586-100.lnx | 32 + .../OpensslLib/openssl-0.9.8zf/times/091/68000.bsd | 32 + .../openssl-0.9.8zf/times/091/686-200.lnx | 32 + .../openssl-0.9.8zf/times/091/alpha064.osf | 32 + .../openssl-0.9.8zf/times/091/alpha164.lnx | 32 + .../openssl-0.9.8zf/times/091/alpha164.osf | 31 + .../openssl-0.9.8zf/times/091/mips-rel.pl | 21 + .../openssl-0.9.8zf/times/091/r10000.irx | 37 + .../OpensslLib/openssl-0.9.8zf/times/091/r3000.ult | 32 + .../OpensslLib/openssl-0.9.8zf/times/091/r4400.irx | 32 + .../OpensslLib/openssl-0.9.8zf/times/100.lnx | 32 + .../OpensslLib/openssl-0.9.8zf/times/100.nt | 29 + .../OpensslLib/openssl-0.9.8zf/times/200.lnx | 30 + .../OpensslLib/openssl-0.9.8zf/times/486-66.dos | 22 + .../OpensslLib/openssl-0.9.8zf/times/486-66.nt | 22 + .../OpensslLib/openssl-0.9.8zf/times/486-66.w31 | 23 + .../Library/OpensslLib/openssl-0.9.8zf/times/5.lnx | 29 + .../OpensslLib/openssl-0.9.8zf/times/586-085i.nt | 29 + .../OpensslLib/openssl-0.9.8zf/times/586-100.LN3 | 26 + .../OpensslLib/openssl-0.9.8zf/times/586-100.NT2 | 26 + .../OpensslLib/openssl-0.9.8zf/times/586-100.dos | 24 + .../OpensslLib/openssl-0.9.8zf/times/586-100.ln4 | 26 + .../OpensslLib/openssl-0.9.8zf/times/586-100.lnx | 23 + .../OpensslLib/openssl-0.9.8zf/times/586-100.nt | 23 + .../OpensslLib/openssl-0.9.8zf/times/586-100.ntx | 30 + .../OpensslLib/openssl-0.9.8zf/times/586-100.w31 | 27 + .../OpensslLib/openssl-0.9.8zf/times/586-1002.lnx | 26 + .../OpensslLib/openssl-0.9.8zf/times/586p-100.lnx | 26 + .../OpensslLib/openssl-0.9.8zf/times/686-200.bsd | 25 + .../OpensslLib/openssl-0.9.8zf/times/686-200.lnx | 26 + .../OpensslLib/openssl-0.9.8zf/times/686-200.nt | 24 + .../Library/OpensslLib/openssl-0.9.8zf/times/L1 | 27 + .../OpensslLib/openssl-0.9.8zf/times/R10000.t | 24 + .../OpensslLib/openssl-0.9.8zf/times/R4400.t | 26 + .../Library/OpensslLib/openssl-0.9.8zf/times/aix.t | 34 + .../OpensslLib/openssl-0.9.8zf/times/aixold.t | 23 + .../OpensslLib/openssl-0.9.8zf/times/alpha.t | 81 + .../OpensslLib/openssl-0.9.8zf/times/alpha400.t | 25 + .../OpensslLib/openssl-0.9.8zf/times/cyrix100.lnx | 22 + .../OpensslLib/openssl-0.9.8zf/times/dgux-x86.t | 23 + .../OpensslLib/openssl-0.9.8zf/times/dgux.t | 17 + .../OpensslLib/openssl-0.9.8zf/times/hpux-acc.t | 25 + .../OpensslLib/openssl-0.9.8zf/times/hpux-kr.t | 23 + .../OpensslLib/openssl-0.9.8zf/times/hpux.t | 86 + .../OpensslLib/openssl-0.9.8zf/times/p2.w95 | 22 + .../OpensslLib/openssl-0.9.8zf/times/pent2.t | 24 + .../OpensslLib/openssl-0.9.8zf/times/readme | 11 + .../OpensslLib/openssl-0.9.8zf/times/s586-100.lnx | 25 + .../OpensslLib/openssl-0.9.8zf/times/s586-100.nt | 23 + .../Library/OpensslLib/openssl-0.9.8zf/times/sgi.t | 29 + .../OpensslLib/openssl-0.9.8zf/times/sparc.t | 26 + .../OpensslLib/openssl-0.9.8zf/times/sparc2 | 21 + .../OpensslLib/openssl-0.9.8zf/times/sparcLX.t | 22 + .../OpensslLib/openssl-0.9.8zf/times/usparc.t | 25 + .../OpensslLib/openssl-0.9.8zf/times/x86/bfs.cpp | 67 + .../OpensslLib/openssl-0.9.8zf/times/x86/casts.cpp | 67 + .../OpensslLib/openssl-0.9.8zf/times/x86/des3s.cpp | 67 + .../OpensslLib/openssl-0.9.8zf/times/x86/dess.cpp | 67 + .../OpensslLib/openssl-0.9.8zf/times/x86/md4s.cpp | 78 + .../OpensslLib/openssl-0.9.8zf/times/x86/md5s.cpp | 78 + .../OpensslLib/openssl-0.9.8zf/times/x86/rc4s.cpp | 73 + .../OpensslLib/openssl-0.9.8zf/times/x86/sha1s.cpp | 79 + .../OpensslLib/openssl-0.9.8zf/tools/Makefile | 58 + .../OpensslLib/openssl-0.9.8zf/tools/c89.sh | 15 + .../OpensslLib/openssl-0.9.8zf/tools/c_hash | 9 + .../OpensslLib/openssl-0.9.8zf/tools/c_info | 12 + .../OpensslLib/openssl-0.9.8zf/tools/c_issuer | 10 + .../OpensslLib/openssl-0.9.8zf/tools/c_name | 10 + .../OpensslLib/openssl-0.9.8zf/tools/c_rehash | 161 + .../OpensslLib/openssl-0.9.8zf/tools/c_rehash.in | 161 + .../OpensslLib/openssl-0.9.8zf/util/FreeBSD.sh | 6 + .../OpensslLib/openssl-0.9.8zf/util/add_cr.pl | 123 + .../Library/OpensslLib/openssl-0.9.8zf/util/arx.pl | 15 + .../Library/OpensslLib/openssl-0.9.8zf/util/bat.sh | 134 + .../OpensslLib/openssl-0.9.8zf/util/ck_errf.pl | 50 + .../openssl-0.9.8zf/util/clean-depend.pl | 57 + .../OpensslLib/openssl-0.9.8zf/util/copy.pl | 70 + .../OpensslLib/openssl-0.9.8zf/util/cygwin.sh | 146 + .../OpensslLib/openssl-0.9.8zf/util/deleof.pl | 7 + .../OpensslLib/openssl-0.9.8zf/util/dirname.pl | 18 + .../OpensslLib/openssl-0.9.8zf/util/do_ms.sh | 19 + .../Library/OpensslLib/openssl-0.9.8zf/util/domd | 34 + .../OpensslLib/openssl-0.9.8zf/util/err-ins.pl | 33 + .../openssl-0.9.8zf/util/extract-names.pl | 26 + .../openssl-0.9.8zf/util/extract-section.pl | 12 + .../OpensslLib/openssl-0.9.8zf/util/files.pl | 61 + .../OpensslLib/openssl-0.9.8zf/util/fipslink.pl | 83 + .../OpensslLib/openssl-0.9.8zf/util/fixNT.sh | 14 + .../OpensslLib/openssl-0.9.8zf/util/indent.pro | 751 ++ .../OpensslLib/openssl-0.9.8zf/util/install.sh | 108 + .../OpensslLib/openssl-0.9.8zf/util/libeay.num | 3734 ++++++++ .../OpensslLib/openssl-0.9.8zf/util/mk1mf.pl | 1422 +++ .../OpensslLib/openssl-0.9.8zf/util/mkcerts.sh | 220 + .../OpensslLib/openssl-0.9.8zf/util/mkdef.pl | 1497 ++++ .../OpensslLib/openssl-0.9.8zf/util/mkdir-p.pl | 34 + .../OpensslLib/openssl-0.9.8zf/util/mkerr.pl | 715 ++ .../OpensslLib/openssl-0.9.8zf/util/mkfiles.pl | 135 + .../OpensslLib/openssl-0.9.8zf/util/mklink.pl | 80 + .../OpensslLib/openssl-0.9.8zf/util/mksdef.pl | 87 + .../OpensslLib/openssl-0.9.8zf/util/mkstack.pl | 126 + .../openssl-0.9.8zf/util/openssl-format-source | 148 + .../OpensslLib/openssl-0.9.8zf/util/opensslwrap.sh | 26 + .../OpensslLib/openssl-0.9.8zf/util/perlpath.pl | 35 + .../OpensslLib/openssl-0.9.8zf/util/pl/BC-32.pl | 139 + .../OpensslLib/openssl-0.9.8zf/util/pl/Mingw32.pl | 106 + .../OpensslLib/openssl-0.9.8zf/util/pl/OS2-EMX.pl | 120 + .../OpensslLib/openssl-0.9.8zf/util/pl/VC-32.pl | 477 ++ .../OpensslLib/openssl-0.9.8zf/util/pl/linux.pl | 104 + .../OpensslLib/openssl-0.9.8zf/util/pl/netware.pl | 526 ++ .../OpensslLib/openssl-0.9.8zf/util/pl/ultrix.pl | 38 + .../OpensslLib/openssl-0.9.8zf/util/pl/unix.pl | 96 + .../OpensslLib/openssl-0.9.8zf/util/pod2man.pl | 1184 +++ .../OpensslLib/openssl-0.9.8zf/util/pod2mantest | 58 + .../openssl-0.9.8zf/util/pod2mantest.pod | 15 + .../OpensslLib/openssl-0.9.8zf/util/point.sh | 10 + .../OpensslLib/openssl-0.9.8zf/util/selftest.pl | 201 + .../OpensslLib/openssl-0.9.8zf/util/shlib_wrap.sh | 91 + .../OpensslLib/openssl-0.9.8zf/util/sp-diff.pl | 80 + .../OpensslLib/openssl-0.9.8zf/util/speed.sh | 39 + .../OpensslLib/openssl-0.9.8zf/util/src-dep.pl | 147 + .../OpensslLib/openssl-0.9.8zf/util/ssleay.num | 244 + .../OpensslLib/openssl-0.9.8zf/util/su-filter.pl | 260 + .../OpensslLib/openssl-0.9.8zf/util/tab_num.pl | 17 + .../OpensslLib/openssl-0.9.8zf/util/x86asm.sh | 42 + 2119 files changed, 553768 insertions(+) create mode 100644 CryptoPkg/Include/openssl/aes.h create mode 100644 CryptoPkg/Include/openssl/asn1.h create mode 100644 CryptoPkg/Include/openssl/asn1_mac.h create mode 100644 CryptoPkg/Include/openssl/asn1t.h create mode 100644 CryptoPkg/Include/openssl/bio.h create mode 100644 CryptoPkg/Include/openssl/blowfish.h create mode 100644 CryptoPkg/Include/openssl/bn.h create mode 100644 CryptoPkg/Include/openssl/buffer.h create mode 100644 CryptoPkg/Include/openssl/cast.h create mode 100644 CryptoPkg/Include/openssl/comp.h create mode 100644 CryptoPkg/Include/openssl/conf.h create mode 100644 CryptoPkg/Include/openssl/conf_api.h create mode 100644 CryptoPkg/Include/openssl/crypto.h create mode 100644 CryptoPkg/Include/openssl/des.h create mode 100644 CryptoPkg/Include/openssl/des_old.h create mode 100644 CryptoPkg/Include/openssl/dh.h create mode 100644 CryptoPkg/Include/openssl/dsa.h create mode 100644 CryptoPkg/Include/openssl/dso.h create mode 100644 CryptoPkg/Include/openssl/dtls1.h create mode 100644 CryptoPkg/Include/openssl/e_os2.h create mode 100644 CryptoPkg/Include/openssl/ebcdic.h create mode 100644 CryptoPkg/Include/openssl/ec.h create mode 100644 CryptoPkg/Include/openssl/ecdh.h create mode 100644 CryptoPkg/Include/openssl/ecdsa.h create mode 100644 CryptoPkg/Include/openssl/engine.h create mode 100644 CryptoPkg/Include/openssl/err.h create mode 100644 CryptoPkg/Include/openssl/evp.h create mode 100644 CryptoPkg/Include/openssl/hmac.h create mode 100644 CryptoPkg/Include/openssl/idea.h create mode 100644 CryptoPkg/Include/openssl/krb5_asn.h create mode 100644 CryptoPkg/Include/openssl/kssl.h create mode 100644 CryptoPkg/Include/openssl/lhash.h create mode 100644 CryptoPkg/Include/openssl/md2.h create mode 100644 CryptoPkg/Include/openssl/md4.h create mode 100644 CryptoPkg/Include/openssl/md5.h create mode 100644 CryptoPkg/Include/openssl/obj_mac.h create mode 100644 CryptoPkg/Include/openssl/objects.h create mode 100644 CryptoPkg/Include/openssl/ocsp.h create mode 100644 CryptoPkg/Include/openssl/opensslconf.h create mode 100644 CryptoPkg/Include/openssl/opensslv.h create mode 100644 CryptoPkg/Include/openssl/ossl_typ.h create mode 100644 CryptoPkg/Include/openssl/pem.h create mode 100644 CryptoPkg/Include/openssl/pem2.h create mode 100644 CryptoPkg/Include/openssl/pkcs12.h create mode 100644 CryptoPkg/Include/openssl/pkcs7.h create mode 100644 CryptoPkg/Include/openssl/pq_compat.h create mode 100644 CryptoPkg/Include/openssl/pqueue.h create mode 100644 CryptoPkg/Include/openssl/rand.h create mode 100644 CryptoPkg/Include/openssl/rc2.h create mode 100644 CryptoPkg/Include/openssl/rc4.h create mode 100644 CryptoPkg/Include/openssl/ripemd.h create mode 100644 CryptoPkg/Include/openssl/rsa.h create mode 100644 CryptoPkg/Include/openssl/safestack.h create mode 100644 CryptoPkg/Include/openssl/sha.h create mode 100644 CryptoPkg/Include/openssl/ssl.h create mode 100644 CryptoPkg/Include/openssl/ssl2.h create mode 100644 CryptoPkg/Include/openssl/ssl23.h create mode 100644 CryptoPkg/Include/openssl/ssl3.h create mode 100644 CryptoPkg/Include/openssl/stack.h create mode 100644 CryptoPkg/Include/openssl/store.h create mode 100644 CryptoPkg/Include/openssl/symhacks.h create mode 100644 CryptoPkg/Include/openssl/tls1.h create mode 100644 CryptoPkg/Include/openssl/tmdiff.h create mode 100644 CryptoPkg/Include/openssl/txt_db.h create mode 100644 CryptoPkg/Include/openssl/ui.h create mode 100644 CryptoPkg/Include/openssl/ui_compat.h create mode 100644 CryptoPkg/Include/openssl/x509.h create mode 100644 CryptoPkg/Include/openssl/x509_vfy.h create mode 100644 CryptoPkg/Include/openssl/x509v3.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ACKNOWLEDGMENTS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/CHANGES create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/CHANGES.SSLeay create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Configure create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/FAQ create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.DJGPP create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.MacOS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.NW create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.OS2 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.VMS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.W32 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.W64 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/INSTALL.WCE create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/LICENSE create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GUSI_Init.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/CPStringUtils.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/CPStringUtils.hpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/ErrorHandling.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/ErrorHandling.hpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/GetHTTPS.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/MacSocket.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/GetHTTPS.src/MacSocket.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/OpenSSL.mcp.hqx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/Randomizer.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/Randomizer.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/TODO create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/_MWERKS_GUSI_prefix.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/_MWERKS_prefix.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/buildinf.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/mklinks.as.hqx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/MacOS/opensslconf.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Makefile.bak create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Makefile.org create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Makefile.shared create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/NEWS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Netware/build.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Netware/cpy_tests.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Netware/do_tests.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Netware/globals.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Netware/readme.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/Netware/set_env.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/PROBLEMS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/README.ASN1 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/README.ENGINE create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/TODO create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/VMSify-conf.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/WISHLIST.TXT create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/install.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/mkshared.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/multinet_shr.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/openssl_utils.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/socketshr_shr.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/tcpip_shr_decc.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/test-includes.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/ucx_shr_decc.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/ucx_shr_decc_log.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/VMS/ucx_shr_vaxc.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/CA.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/CA.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/CA.pl.in create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/CA.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/app_rand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/apps.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/apps.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/asn1pars.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ca-cert.srl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ca-key.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ca-req.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ca.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/cert.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ciphers.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/client.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/cms.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/crl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/crl2p7.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/demoCA/cacert.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/demoCA/index.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/demoCA/private/cakey.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/demoCA/serial create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dh.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dh1024.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dh2048.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dh4096.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dh512.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dhparam.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsa-ca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsa-pca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsa1024.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsa512.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsap.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/dsaparam.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ec.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ecparam.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/engine.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/errstr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/gendh.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/gendsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/genrsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/install.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/makeapps.com create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/md4.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/nseq.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/ocsp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/oid.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/openssl-vms.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/openssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/openssl.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/passwd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/pca-cert.srl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/pca-key.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/pca-req.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/pkcs12.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/pkcs7.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/pkcs8.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/prime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/privkey.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/progs.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/progs.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/rand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/req.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/req.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/rsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/rsa8192.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/rsautl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s1024key.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s1024req.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s512-key.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s512-req.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s_apps.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s_cb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s_client.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s_server.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s_socket.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/s_time.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/server.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/server.srl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/server2.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/sess_id.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/set/set-g-ca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/set/set-m-ca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/set/set_b_ca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/set/set_c_ca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/set/set_d_ct.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/set/set_root.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/smime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/speed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/spkac.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/testCA.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/testdsa.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/testrsa.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/timeouts.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/verify.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/version.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/winrand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/apps/x509.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/MS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/SSLv3 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/alpha.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/dggccbug.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/sgiccbug.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/sslref.dif create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/stream.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/bugs/ultrixcc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/certs/README.RootCerts create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/certs/demo/ca-cert.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/certs/demo/dsa-ca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/certs/demo/dsa-pca.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/certs/demo/pca-cert.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/certs/expired/ICE.crl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/config create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/LPdir_nyi.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/LPdir_unix.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/LPdir_vms.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/LPdir_win.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/LPdir_win32.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/LPdir_wince.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_cfb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_core.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_ctr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_ige.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_misc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_ofb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/aes_wrap.c create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/asm/aes-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/asm/aes-ia64.S create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/aes/asm/aes-x86_64.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_bitstr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_bool.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_bytes.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_d2i_fp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_digest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_dup.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_enum.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_gentm.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_hdr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_i2d_fp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_int.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_mbstr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_object.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_octet.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_print.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_set.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_strex.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_strnid.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_time.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_type.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_utctm.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_utf8.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/a_verify.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1_mac.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1_par.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn1t.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn_mime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn_moid.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/asn_pack.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/charmap.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/charmap.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/d2i_pr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/d2i_pu.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/evp_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/f_enum.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/f_int.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/f_string.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/i2d_pr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/i2d_pu.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/n_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/nsseq.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/p5_pbe.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/p5_pbev2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/p8_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/p8_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_bitst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_crl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_req.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_spki.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_x509.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/t_x509a.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_dec.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_fre.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_new.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_prn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_typ.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/tasn_utl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_algor.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_attrib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_bignum.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_crl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_exten.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_info.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_long.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_name.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_pubkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_req.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_sig.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_spki.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_val.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_x509.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/asn1/x_x509a.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/COPYRIGHT create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/INSTALL create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/VERSION create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/asm/bf-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/asm/bf-686.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/asm/readme create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_cfb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_ofb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_opts.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_pi.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bf_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bfs.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bfspeed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/bftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bf/blowfish.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/b_dump.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/b_print.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/b_sock.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bf_buff.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bf_lbuf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bf_nbio.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bf_null.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bio.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bio_cb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bio_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bio_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bio_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_acpt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_bio.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_conn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_dgram.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_fd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_file.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_log.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_mem.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_null.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_rtcp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bio/bss_sock.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/bn-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/co-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/ia64.S create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/mips3.s create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/mo-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/pa-risc2.s create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/pa-risc2W.s create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/ppc.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/sparcv8.S create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/sparcv8plus.S create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/vms.mar create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/add.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/comba.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/div.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/f create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/mul.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/mul_add.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/sqr.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86/sub.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86_64-gcc.c create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/asm/x86_64-mont.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn.mul create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_add.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_asm.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_blind.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_const.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_ctx.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_depr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_div.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_exp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_exp2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_gcd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_gf2m.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_kron.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mod.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mont.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mpi.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_mul.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_nist.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_opt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_prime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_prime.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_prime.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_print.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_rand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_recp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_shift.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_sqr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_sqrt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_word.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bn_x931p.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bnspeed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/bntest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/divtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/exp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/expspeed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/exptest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/todo create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/bn/vms-helper.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/buffer/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/buffer/buf_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/buffer/buf_str.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/buffer/buffer.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/buffer/buffer.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/camellia.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/camellia.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_cfb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_ctr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_misc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/camellia/cmll_ofb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/asm/cast-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/asm/readme create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/c_cfb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/c_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/c_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/c_ofb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/c_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/cast.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/cast_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/cast_s.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/cast_spd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/castopts.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/casts.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cast/casttest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_att.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_cd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_dd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_env.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_ess.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_io.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_sd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cms/cms_smime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/comp/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/comp/c_rle.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/comp/c_zlib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/comp/comp.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/comp/comp_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/comp/comp_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/cnf_save.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_api.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_api.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_def.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_def.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_mall.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_mod.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/conf_sap.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/keysets.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/ssleay.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/conf/test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/constant_time_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/constant_time_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cpt_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cryptlib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cryptlib.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/crypto-lib.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/crypto.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/cversion.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/COPYRIGHT create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/DES.pm create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/DES.xs create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/FILES0 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/INSTALL create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/Imakefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/KERBEROS create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/VERSION create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/asm/crypt586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/asm/des-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/asm/des686.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/asm/des_enc.m4 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/asm/desboth.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/asm/readme create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/cbc3_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/cbc_cksm.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/cbc_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/cfb64ede.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/cfb64enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/cfb_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des-lib.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des3s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_old.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_old.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_old2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_opts.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/des_ver.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/dess.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/destest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ecb3_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ecb_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ede_cbcm_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/enc_read.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/enc_writ.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/fcrypt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/fcrypt_b.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/makefile.bc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ncbc_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ofb64ede.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ofb64enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/ofb_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/options.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/pcbc_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/qud_cksm.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/rand_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/read2pwd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/read_pwd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/rpc_des.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/rpc_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/rpw.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/set_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/speed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/spr.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/str2key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/t/test create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/486-50.sol create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/586-100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/686-200.fre create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/aix.cc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/alpha.cc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/hpux.cc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/sparc.gcc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/times/usparc.cc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/typemap create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/des/xcbc_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh1024.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh192.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh2048.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh4096.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh512.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_check.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_depr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dh_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/dhtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/example create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/generate create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/p1024.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/p192.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dh/p512.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_depr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_ossl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_utl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsa_vrf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsagen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/dsatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dsa/fips186a.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_dl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_dlfcn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_null.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_openssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_vms.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dso/dso_win32.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/dyn_lck.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ebcdic.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ebcdic.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec2_mult.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec2_smpl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec2_smpt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_check.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_curve.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_cvt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_mult.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ec_print.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ecp_mont.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ecp_nist.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ecp_smpl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ec/ectest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ecdh.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ecdhtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ech_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ech_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ech_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ech_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdh/ech_ossl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecdsa.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecdsatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_ossl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ecdsa/ecs_vrf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_all.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_cnf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_cryptodev.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_ctrl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_dyn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_fat.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_init.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_int.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_list.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_openssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_padlock.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/eng_table.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/engine.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/enginetest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_cipher.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_dh.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_digest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_dsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_ecdh.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_ecdsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_rand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_rsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/engine/tb_store.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err_all.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err_bio.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err_def.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err_prn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/err_str.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/err/openssl.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/bio_b64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/bio_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/bio_md.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/bio_ok.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/c_all.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/c_allc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/c_alld.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/dig_eng.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/digest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_aes.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_bf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_camellia.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_cast.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_des.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_des3.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_dsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_idea.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_null.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_old.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_rc2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_rc4.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_rc5.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_seed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/e_xcbc_d.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/enc_min.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/encode.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_acnf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_cnf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_pbe.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evp_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/evptests.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_dss.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_dss1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_ecdsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_md2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_md4.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_md5.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_mdc2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_null.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_ripemd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_sha.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/m_sha1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/names.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/openbsd_hw.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p5_crpt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p5_crpt2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_dec.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_open.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_seal.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/evp/p_verify.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ex_data.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/fips_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/fips_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/hmac/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/hmac/hmac.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/hmac/hmac.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/hmac/hmactest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ia64cpuid.S create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/i_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/i_cfb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/i_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/i_ofb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/i_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/idea.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/idea_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/idea_spd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/ideatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/idea/version create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/install.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/jpake/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/jpake/jpake.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/jpake/jpake.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/jpake/jpake_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/jpake/jpaketest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/krb5/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/krb5/krb5_asn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/krb5/krb5_asn.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/lhash/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/lhash/lh_stats.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/lhash/lh_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/lhash/lhash.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/lhash/lhash.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/lhash/num.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md2/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md2/md2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md2/md2.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md2/md2_dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md2/md2_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md2/md2test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md32_common.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4_dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md4/md4test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/asm/md5-586.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/asm/md5-x86_64.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5_dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/md5/md5test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mdc2/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mdc2/mdc2.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mdc2/mdc2_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mdc2/mdc2dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mdc2/mdc2test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mem.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mem_clr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/mem_dbg.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_dir.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_dir.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_dir_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_init.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_str.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_str.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_time.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/o_time.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/o_names.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_dat.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_dat.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_dat.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_mac.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/obj_mac.num create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/objects.README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/objects.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/objects.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/objects/objects.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_asn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_cl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_ext.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_ht.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_prn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_srv.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ocsp/ocsp_vfy.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/opensslconf.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/opensslconf.h.in create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/opensslv.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ossl_typ.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/message create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem2.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_all.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_info.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_oth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_pk8.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_pkey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_seal.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_x509.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pem_xaux.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pem/pkcs7.lis create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/cbc.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/readme create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/x86_64-xlate.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/x86asm.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/x86ms.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/x86nasm.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/perlasm/x86unix.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_add.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_asn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_attr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_crpt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_crt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_decr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_init.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_kiss.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_mutl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_npas.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_p8d.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_p8e.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/p12_utl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/pk12err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs12/pkcs12.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_attr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_doit.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_mime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pk7_smime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pkcs7.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pkcs7/pkcs7err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pqueue/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pqueue/pq_compat.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pqueue/pq_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pqueue/pqueue.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/pqueue/pqueue.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/md_rand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_egd.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_eng.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_nw.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_os2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_unix.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_vms.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/rand_win.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/randfile.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rand/randtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2cfb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2ofb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2speed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rc2test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/rrc2.doc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/tab.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc2/version create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/asm/rc4-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/asm/rc4-ia64.S create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/asm/rc4-x86_64.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4_fblk.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4speed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rc4test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc4/rrc4.doc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/asm/rc5-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5cfb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5ofb64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5speed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rc5/rc5test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/asm/rips.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/asm/rmd-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/ripemd.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/rmd160.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/rmd_dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/rmd_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/rmd_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/rmdconst.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ripemd/rmdtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_chk.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_depr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_eay.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_eng.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_none.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_null.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_oaep.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_pk1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_pss.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_saos.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_ssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_x931.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/rsa/rsa_x931g.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed_cfb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed_ecb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/seed/seed_ofb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/sha1-586.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/sha1-ia64.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/sha1-x86_64.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/sha512-ia64.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/sha512-sse2.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/asm/sha512-x86_64.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha1_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha1dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha1s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha1test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha256.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha256t.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha512.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha512t.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha_dgst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/sha_one.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sha/shatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/sparccpuid.S create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/stack/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/stack/safestack.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/stack/stack.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/stack/stack.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/store.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/str_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/str_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/str_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/str_mem.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/store/str_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/symhacks.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/mttest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/netware.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/profile.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/ptest.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/pthread.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/pthread2.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/pthreads-vms.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/purify.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/solaris.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/th-lock.c create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/threads/win32.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/tmdiff.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/tmdiff.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/txt_db/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/txt_db/txt_db.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/txt_db/txt_db.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_compat.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_compat.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_openssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/ui/ui_util.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/uid.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/by_dir.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/by_file.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_att.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_cmp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_d2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_def.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_ext.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_lu.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_obj.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_r2x.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_req.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_set.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_trs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_txt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_v3.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_vfy.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_vfy.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509_vpm.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509cset.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509name.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509rset.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509spki.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x509type.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509/x_all.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/ext_dat.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_cache.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_data.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_int.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_map.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_node.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/pcy_tree.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/tabtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_addr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_akey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_akeya.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_alt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_asid.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_bcons.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_bitst.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_conf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_cpols.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_crld.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_enum.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_extku.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_genn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_ia5.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_info.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_int.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_ncons.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_ocsp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_pci.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_pcia.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_pcons.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_pku.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_pmaps.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_prn.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_purp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_skey.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_sxnet.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3_utl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3conf.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/v3prin.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x509v3/x509v3.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x86_64cpuid.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/crypto/x86cpuid.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/asn1/README.ASN1 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/asn1/ocsp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/b64.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/b64.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/bio/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/bio/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/bio/saccept.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/bio/sconnect.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/bio/server.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/cacerts.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/cert.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/easy-tls.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/easy-tls.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/easy_tls/test.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/cluster_labs/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/cluster_labs/cluster_labs.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/cluster_labs/hw_cluster_labs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/cluster_labs/hw_cluster_labs.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/cluster_labs/hw_cluster_labs_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/cluster_labs/hw_cluster_labs_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/ibmca/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/ibmca/hw_ibmca.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/ibmca/hw_ibmca.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/ibmca/hw_ibmca_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/ibmca/hw_ibmca_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/ibmca/ica_openssl_api.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/build.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/rsaref.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/rsaref.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/rsaref_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/rsaref/rsaref_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/zencod/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/zencod/hw_zencod.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/zencod/hw_zencod.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/zencod/hw_zencod.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/zencod/hw_zencod_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/engines/zencod/hw_zencod_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/jpake/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/jpake/jpakedemo.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/pkcs12/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/pkcs12/pkread.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/pkcs12/pkwrite.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/prime/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/prime/prime.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/privkey.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/selfsign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/sign/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/sign/cert.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/sign/key.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/sign/sig.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/sign/sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/sign/sign.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/spkigen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssl/cli.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssl/inetdsrv.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssl/serv.cpp create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssltest-ecc/ECC-RSAcertgen.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssltest-ecc/ECCcertgen.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssltest-ecc/README create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssltest-ecc/RSAcertgen.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/ssltest-ecc/ssltest.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/state_machine/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/state_machine/state_machine.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/A-client.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/A-server.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/CA.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/INSTALL create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/Makefile.am create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/README create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/autogunk.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/autoungunk.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/breakage.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/buffer.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/cb.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/configure.in create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/ip.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/sm.c create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/test.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/tunala.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/tunala/tunala.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/x509/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/x509/mkcert.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/demos/x509/mkreq.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/HOWTO/certificates.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/HOWTO/keys.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/HOWTO/proxy_certificates.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/CA.pl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/asn1parse.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/ca.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/ciphers.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/config.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/crl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/crl2pkcs7.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/dgst.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/dhparam.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/dsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/dsaparam.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/ec.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/ecparam.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/enc.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/errstr.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/gendsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/genrsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/nseq.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/ocsp.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/openssl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/passwd.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/pkcs12.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/pkcs7.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/pkcs8.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/rand.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/req.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/rsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/rsautl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/s_client.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/s_server.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/s_time.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/sess_id.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/smime.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/speed.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/spkac.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/verify.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/version.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/x509.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/apps/x509v3_config.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/c-indentation.el create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ASN1_OBJECT_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ASN1_STRING_length.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ASN1_STRING_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ASN1_STRING_print_ex.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ASN1_generate_nconf.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_ctrl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_f_base64.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_f_buffer.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_f_cipher.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_f_md.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_f_null.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_f_ssl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_find_type.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_push.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_read.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_accept.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_bio.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_connect.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_fd.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_file.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_mem.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_null.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_s_socket.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_set_callback.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BIO_should_retry.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_BLINDING_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_CTX_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_CTX_start.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_add.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_add_word.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_bn2bin.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_cmp.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_copy.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_generate_prime.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_mod_inverse.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_mod_mul_montgomery.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_mod_mul_reciprocal.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_num_bytes.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_rand.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_set_bit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_swap.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/BN_zero.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/CONF_modules_free.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/CONF_modules_load_file.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/CRYPTO_set_ex_data.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DH_generate_key.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DH_generate_parameters.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DH_get_ex_new_index.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DH_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DH_set_method.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DH_size.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_SIG_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_do_sign.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_dup_DH.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_generate_key.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_generate_parameters.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_get_ex_new_index.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_set_method.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_sign.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/DSA_size.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_GET_LIB.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_clear_error.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_error_string.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_get_error.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_load_crypto_strings.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_load_strings.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_print_errors.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_put_error.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_remove_state.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ERR_set_mark.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_BytesToKey.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_DigestInit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_EncryptInit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_OpenInit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_PKEY_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_PKEY_set1_RSA.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_SealInit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_SignInit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/EVP_VerifyInit.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OBJ_nid2obj.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OPENSSL_Applink.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OPENSSL_VERSION_NUMBER.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OPENSSL_config.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OPENSSL_ia32cap.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OPENSSL_load_builtin_modules.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/OpenSSL_add_all_algorithms.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/PKCS12_create.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/PKCS12_parse.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/PKCS7_decrypt.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/PKCS7_encrypt.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/PKCS7_sign.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/PKCS7_verify.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RAND_add.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RAND_bytes.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RAND_cleanup.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RAND_egd.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RAND_load_file.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RAND_set_rand_method.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_blinding_on.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_check_key.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_generate_key.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_get_ex_new_index.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_padding_add_PKCS1_type_1.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_print.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_private_encrypt.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_public_encrypt.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_set_method.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_sign.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_sign_ASN1_OCTET_STRING.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/RSA_size.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/SMIME_read_PKCS7.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/SMIME_write_PKCS7.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/X509_NAME_ENTRY_get_object.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/X509_NAME_add_entry_by_txt.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/X509_NAME_get_index_by_NID.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/X509_NAME_print_ex.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/X509_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/bio.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/blowfish.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/bn.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/bn_internal.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/buffer.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/crypto.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_ASN1_OBJECT.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_DHparams.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_DSAPublicKey.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_PKCS8PrivateKey.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_RSAPublicKey.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_X509.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_X509_ALGOR.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_X509_CRL.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_X509_NAME.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_X509_REQ.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/d2i_X509_SIG.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/des.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/des_modes.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/dh.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/dsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ecdsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/engine.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/err.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/evp.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/hmac.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/lh_stats.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/lhash.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/md5.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/mdc2.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/pem.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/rand.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/rc4.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ripemd.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/rsa.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/sha.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/threads.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ui.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/ui_compat.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/crypto/x509.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/fingerprints.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/openssl-shared.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/openssl.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/openssl_button.gif create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/openssl_button.html create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CIPHER_get_name.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_COMP_add_compression_method.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_add_extra_chain_cert.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_add_session.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_ctrl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_flush_sessions.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_free.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_get_ex_new_index.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_get_verify_mode.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_load_verify_locations.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_sess_number.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_sess_set_cache_size.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_sess_set_get_cb.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_sessions.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_cert_store.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_cert_verify_callback.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_cipher_list.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_client_CA_list.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_client_cert_cb.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_default_passwd_cb.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_generate_session_id.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_info_callback.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_max_cert_list.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_mode.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_msg_callback.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_options.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_quiet_shutdown.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_session_cache_mode.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_session_id_context.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_ssl_version.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_timeout.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_tlsext_ticket_key_cb.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_tmp_dh_callback.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_tmp_rsa_callback.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_set_verify.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_CTX_use_certificate.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_SESSION_free.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_SESSION_get_ex_new_index.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_SESSION_get_time.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_accept.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_alert_type_string.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_clear.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_connect.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_do_handshake.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_free.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_SSL_CTX.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_ciphers.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_client_CA_list.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_current_cipher.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_default_timeout.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_error.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_ex_data_X509_STORE_CTX_idx.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_ex_new_index.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_fd.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_peer_cert_chain.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_peer_certificate.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_rbio.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_session.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_verify_result.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_get_version.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_library_init.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_load_client_CA_file.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_new.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_pending.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_read.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_rstate_string.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_session_reused.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_set_bio.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_set_connect_state.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_set_fd.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_set_session.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_set_shutdown.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_set_verify_result.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_shutdown.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_state_string.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_want.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/SSL_write.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/d2i_SSL_SESSION.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssl/ssl.pod create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/ssleay.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/doc/standards.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/e_os.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/e_os2.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/alpha.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_4758cca.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_4758cca.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_4758cca_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_4758cca_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_aep.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_aep.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_aep_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_aep_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_atalla.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_atalla.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_atalla_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_atalla_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_capi.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_capi.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_capi_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_capi_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_chil.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_chil.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_chil_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_chil_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_cswift.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_cswift.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_cswift_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_cswift_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_gmp.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_gmp.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_gmp_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_gmp_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_nuron.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_nuron.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_nuron_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_nuron_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_sureware.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_sureware.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_sureware_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_sureware_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_ubsec.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_ubsec.ec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_ubsec_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/e_ubsec_err.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/engine_vector.mar create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/ia64.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/makeengines.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vax.opt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/aep.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/atalla.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/cswift.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/hw_4758_cca.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/hw_ubsec.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/hwcryptohook.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/engines/vendor_defns/sureware.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/aes/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/aes/fips_aes_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/aes/fips_aesavs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/des/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/des/fips_des_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/des/fips_desmovs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dh/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dh/dh_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dh/fips_dh_check.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dh/fips_dh_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dh/fips_dh_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dh/fips_dh_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsa_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsa_key.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsa_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsa_ossl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsa_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsa_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dsatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/dsa/fips_dssvs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips-lib.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips-nodiff.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips_canister.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips_premain.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips_premain.c.sha1 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips_test_suite.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fips_utl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fipsalgtest.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fipsld create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fipstests.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/fipstests.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/hmac/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/hmac/fips_hmac.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/hmac/fips_hmac_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/hmac/fips_hmactest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/install.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/mkfipsscr.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/openssl_fips_fingerprint create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rand/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rand/fips_rand.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rand/fips_rand.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rand/fips_rand_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rand/fips_randtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rand/fips_rngvs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsa_eay.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsa_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsa_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsa_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsa_sign.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsa_x931g.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsagtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsastest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/rsa/fips_rsavtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/sha/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/sha/fips_sha1_selftest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/sha/fips_shatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/fips/sha/fips_standalone_sha1.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/aes.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/asn1.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/asn1_mac.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/asn1t.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/bio.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/blowfish.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/bn.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/buffer.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/cast.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/comp.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/conf.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/conf_api.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/crypto.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/des.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/des_old.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/dh.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/dsa.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/dso.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/dtls1.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/e_os2.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ebcdic.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ec.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ecdh.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ecdsa.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/engine.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/err.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/evp.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/fips.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/fips_rand.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/hmac.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/idea.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/krb5_asn.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/kssl.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/lhash.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/md2.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/md4.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/md5.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/obj_mac.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/objects.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ocsp.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/opensslconf.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/opensslv.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ossl_typ.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/pem.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/pem2.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/pkcs12.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/pkcs7.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/pq_compat.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/pqueue.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/rand.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/rc2.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/rc4.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ripemd.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/rsa.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/safestack.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/sha.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ssl.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ssl2.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ssl23.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ssl3.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/stack.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/store.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/symhacks.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/tls1.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/tmdiff.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/txt_db.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ui.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/ui_compat.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/x509.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/x509_vfy.h create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/include/openssl/x509v3.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/install.com create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/makevms.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/.rnd create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/32all.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/applink.c create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/bcb4.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/certCA.srl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/certCA.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/certU.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/cmp.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_fips.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_masm.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_ms.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_nasm.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_nt.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_win64a.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/do_win64i.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/keyCA.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/keyU.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/mingw32.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/mw.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/req2CA.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/reqCA.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/reqU.ss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/segrenam.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/speed32.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/tenc.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/tencce.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/test.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testce.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testce2.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testenc.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testencce.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testpem.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testpemce.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testss.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/testssce.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/tlhelp32.h create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/tpem.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/tpemce.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/uplink.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/uplink.h create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/uplink.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ms/x86asm.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/openssl.doxy create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/openssl.spec create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/os2/OS2-EMX.cmd create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/os2/backwardify.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/Makefile.hpux10-cc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/README create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/hpux10-cc.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/irix.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/sco5-shared-gcc.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/sco5-shared-installed create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/sco5-shared.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/solaris-sc4.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/solaris.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/sun.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/svr5-shared-gcc.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/svr5-shared-installed create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/svr5-shared.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/win32.bat create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/shlib/win32dll.bat create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/bio_ssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_both.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_clnt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_pkt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/d1_srvr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/dtls1.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/install.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/kssl.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/kssl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/kssl_lcl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s23_clnt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s23_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s23_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s23_pkt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s23_srvr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s2_clnt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s2_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s2_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s2_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s2_pkt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s2_srvr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_both.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_cbc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_clnt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_pkt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/s3_srvr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl-lib.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl2.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl23.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl3.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_algs.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_asn1.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_cert.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_ciph.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_err.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_err2.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_locl.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_rsa.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_sess.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_stat.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_task.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssl_txt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/ssltest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/t1_clnt.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/t1_enc.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/t1_lib.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/t1_meth.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/t1_reneg.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/t1_srvr.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/ssl/tls1.h create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/CAss.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/CAssdh.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/CAssdsa.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/CAssrsa.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/Makefile create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/P1ss.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/P2ss.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/SHAmix.r create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/SHAmix.x create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/Sssdsa.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/Sssrsa.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/Uss.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/VMSca-response.1 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/VMSca-response.2 create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/bctest create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/bftest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/bntest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/casttest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/cms-examples.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/cms-test.pl create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/constant_time_test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/destest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/dhtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/dsatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/dummytest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/ecdhtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/ecdsatest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/ectest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/enginetest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/evp_test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/evptests.txt create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/exptest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_aesavs.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_desmovs.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_dsatest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_dssvs.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_hmactest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_randtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_rngvs.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_rsagtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_rsastest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_rsavtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_shatest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/fips_test_suite.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/hmactest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/ideatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/igetest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/jpaketest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/maketests.com create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/md2test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/md4test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/md5test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/mdc2test.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/methtest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/pkcs7-1.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/pkcs7.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/r160test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/randtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/rc2test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/rc4test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/rc5test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/rmdtest.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/rsa_test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/sha1test.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/sha256t.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/sha512t.c create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/shatest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smcont.txt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smdsa1.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smdsa2.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smdsa3.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smdsap.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smroot.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smrsa1.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smrsa2.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/smime-certs/smrsa3.pem create mode 120000 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/ssltest.c create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tcrl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tcrl.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/test.cnf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testca create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testca.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testcrl.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testenc create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testenc.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testfipsssl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testgen create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testgen.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testp7.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testreq2.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testrsa.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tests.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testsid.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testss create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testss.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testssl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testssl.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testsslproxy create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/testx509.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/times create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tpkcs7 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tpkcs7.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tpkcs7d create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tpkcs7d.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/treq create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/treq.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/trsa create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/trsa.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tsid create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tsid.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tverify.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tx509 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/tx509.com create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/v3-cert1.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/test/v3-cert2.pem create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/090/586-100.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/486-50.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/586-100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/68000.bsd create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/686-200.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/alpha064.osf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/alpha164.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/alpha164.osf create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/mips-rel.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/r10000.irx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/r3000.ult create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/091/r4400.irx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/100.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/200.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/486-66.dos create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/486-66.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/486-66.w31 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/5.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-085i.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.LN3 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.NT2 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.dos create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.ln4 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.ntx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-100.w31 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586-1002.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/586p-100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/686-200.bsd create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/686-200.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/686-200.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/L1 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/R10000.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/R4400.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/aix.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/aixold.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/alpha.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/alpha400.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/cyrix100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/dgux-x86.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/dgux.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/hpux-acc.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/hpux-kr.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/hpux.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/p2.w95 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/pent2.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/readme create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/s586-100.lnx create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/s586-100.nt create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/sgi.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/sparc.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/sparc2 create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/sparcLX.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/usparc.t create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/bfs.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/casts.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/des3s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/dess.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/md4s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/md5s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/rc4s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/times/x86/sha1s.cpp create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/Makefile create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c89.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c_hash create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c_info create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c_issuer create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c_name create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c_rehash create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/tools/c_rehash.in create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/FreeBSD.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/add_cr.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/arx.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/bat.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/ck_errf.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/clean-depend.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/copy.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/cygwin.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/deleof.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/dirname.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/do_ms.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/domd create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/err-ins.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/extract-names.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/extract-section.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/files.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/fipslink.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/fixNT.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/indent.pro create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/install.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/libeay.num create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mk1mf.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mkcerts.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mkdef.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mkdir-p.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mkerr.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mkfiles.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mklink.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mksdef.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/mkstack.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/openssl-format-source create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/opensslwrap.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/perlpath.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/BC-32.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/Mingw32.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/OS2-EMX.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/VC-32.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/linux.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/netware.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/ultrix.pl create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pl/unix.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pod2man.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pod2mantest create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/pod2mantest.pod create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/point.sh create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/selftest.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/shlib_wrap.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/sp-diff.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/speed.sh create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/src-dep.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/ssleay.num create mode 100644 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/su-filter.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/tab_num.pl create mode 100755 CryptoPkg/Library/OpensslLib/openssl-0.9.8zf/util/x86asm.sh diff --git a/CryptoPkg/Include/openssl/aes.h b/CryptoPkg/Include/openssl/aes.h new file mode 100644 index 0000000..83c13c9 --- /dev/null +++ b/CryptoPkg/Include/openssl/aes.h @@ -0,0 +1,150 @@ +/* crypto/aes/aes.h -*- mode:C; c-file-style: "eay" -*- */ +/* ==================================================================== + * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + */ + +#ifndef HEADER_AES_H +# define HEADER_AES_H + +# include + +# ifdef OPENSSL_NO_AES +# error AES is disabled. +# endif + +# define AES_ENCRYPT 1 +# define AES_DECRYPT 0 + +/* + * Because array size can't be a const in C, the following two are macros. + * Both sizes are in bytes. + */ +# define AES_MAXNR 14 +# define AES_BLOCK_SIZE 16 + +# ifdef OPENSSL_FIPS +# define FIPS_AES_SIZE_T int +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* This should be a hidden type, but EVP requires that the size be known */ +struct aes_key_st { +# ifdef AES_LONG + unsigned long rd_key[4 * (AES_MAXNR + 1)]; +# else + unsigned int rd_key[4 * (AES_MAXNR + 1)]; +# endif + int rounds; +}; +typedef struct aes_key_st AES_KEY; + +const char *AES_options(void); + +int AES_set_encrypt_key(const unsigned char *userKey, const int bits, + AES_KEY *key); +int AES_set_decrypt_key(const unsigned char *userKey, const int bits, + AES_KEY *key); + +void AES_encrypt(const unsigned char *in, unsigned char *out, + const AES_KEY *key); +void AES_decrypt(const unsigned char *in, unsigned char *out, + const AES_KEY *key); + +void AES_ecb_encrypt(const unsigned char *in, unsigned char *out, + const AES_KEY *key, const int enc); +void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char *ivec, const int enc); +void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char *ivec, int *num, const int enc); +void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char *ivec, int *num, const int enc); +void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char *ivec, int *num, const int enc); +void AES_cfbr_encrypt_block(const unsigned char *in, unsigned char *out, + const int nbits, const AES_KEY *key, + unsigned char *ivec, const int enc); +void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char *ivec, int *num); +void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char ivec[AES_BLOCK_SIZE], + unsigned char ecount_buf[AES_BLOCK_SIZE], + unsigned int *num); + +/* For IGE, see also http://www.links.org/files/openssl-ige.pdf */ +/* NB: the IV is _two_ blocks long */ +void AES_ige_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + unsigned char *ivec, const int enc); +/* NB: the IV is _four_ blocks long */ +void AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out, + const unsigned long length, const AES_KEY *key, + const AES_KEY *key2, const unsigned char *ivec, + const int enc); + +int AES_wrap_key(AES_KEY *key, const unsigned char *iv, + unsigned char *out, + const unsigned char *in, unsigned int inlen); +int AES_unwrap_key(AES_KEY *key, const unsigned char *iv, + unsigned char *out, + const unsigned char *in, unsigned int inlen); + +#ifdef __cplusplus +} +#endif + +#endif /* !HEADER_AES_H */ diff --git a/CryptoPkg/Include/openssl/asn1.h b/CryptoPkg/Include/openssl/asn1.h new file mode 100644 index 0000000..47e3e02 --- /dev/null +++ b/CryptoPkg/Include/openssl/asn1.h @@ -0,0 +1,1343 @@ +/* crypto/asn1/asn1.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_ASN1_H +# define HEADER_ASN1_H + +# include +# include +# ifndef OPENSSL_NO_BIO +# include +# endif +# include +# include + +# include + +# include +# ifndef OPENSSL_NO_DEPRECATED +# include +# endif + +# ifdef OPENSSL_BUILD_SHLIBCRYPTO +# undef OPENSSL_EXTERN +# define OPENSSL_EXTERN OPENSSL_EXPORT +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +# define V_ASN1_UNIVERSAL 0x00 +# define V_ASN1_APPLICATION 0x40 +# define V_ASN1_CONTEXT_SPECIFIC 0x80 +# define V_ASN1_PRIVATE 0xc0 + +# define V_ASN1_CONSTRUCTED 0x20 +# define V_ASN1_PRIMITIVE_TAG 0x1f +# define V_ASN1_PRIMATIVE_TAG 0x1f + +# define V_ASN1_APP_CHOOSE -2/* let the recipient choose */ +# define V_ASN1_OTHER -3/* used in ASN1_TYPE */ +# define V_ASN1_ANY -4/* used in ASN1 template code */ + +# define V_ASN1_NEG 0x100/* negative flag */ + +# define V_ASN1_UNDEF -1 +# define V_ASN1_EOC 0 +# define V_ASN1_BOOLEAN 1 /**/ +# define V_ASN1_INTEGER 2 +# define V_ASN1_NEG_INTEGER (2 | V_ASN1_NEG) +# define V_ASN1_BIT_STRING 3 +# define V_ASN1_OCTET_STRING 4 +# define V_ASN1_NULL 5 +# define V_ASN1_OBJECT 6 +# define V_ASN1_OBJECT_DESCRIPTOR 7 +# define V_ASN1_EXTERNAL 8 +# define V_ASN1_REAL 9 +# define V_ASN1_ENUMERATED 10 +# define V_ASN1_NEG_ENUMERATED (10 | V_ASN1_NEG) +# define V_ASN1_UTF8STRING 12 +# define V_ASN1_SEQUENCE 16 +# define V_ASN1_SET 17 +# define V_ASN1_NUMERICSTRING 18 /**/ +# define V_ASN1_PRINTABLESTRING 19 +# define V_ASN1_T61STRING 20 +# define V_ASN1_TELETEXSTRING 20/* alias */ +# define V_ASN1_VIDEOTEXSTRING 21 /**/ +# define V_ASN1_IA5STRING 22 +# define V_ASN1_UTCTIME 23 +# define V_ASN1_GENERALIZEDTIME 24 /**/ +# define V_ASN1_GRAPHICSTRING 25 /**/ +# define V_ASN1_ISO64STRING 26 /**/ +# define V_ASN1_VISIBLESTRING 26/* alias */ +# define V_ASN1_GENERALSTRING 27 /**/ +# define V_ASN1_UNIVERSALSTRING 28 /**/ +# define V_ASN1_BMPSTRING 30 +/* For use with d2i_ASN1_type_bytes() */ +# define B_ASN1_NUMERICSTRING 0x0001 +# define B_ASN1_PRINTABLESTRING 0x0002 +# define B_ASN1_T61STRING 0x0004 +# define B_ASN1_TELETEXSTRING 0x0004 +# define B_ASN1_VIDEOTEXSTRING 0x0008 +# define B_ASN1_IA5STRING 0x0010 +# define B_ASN1_GRAPHICSTRING 0x0020 +# define B_ASN1_ISO64STRING 0x0040 +# define B_ASN1_VISIBLESTRING 0x0040 +# define B_ASN1_GENERALSTRING 0x0080 +# define B_ASN1_UNIVERSALSTRING 0x0100 +# define B_ASN1_OCTET_STRING 0x0200 +# define B_ASN1_BIT_STRING 0x0400 +# define B_ASN1_BMPSTRING 0x0800 +# define B_ASN1_UNKNOWN 0x1000 +# define B_ASN1_UTF8STRING 0x2000 +# define B_ASN1_UTCTIME 0x4000 +# define B_ASN1_GENERALIZEDTIME 0x8000 +# define B_ASN1_SEQUENCE 0x10000 +/* For use with ASN1_mbstring_copy() */ +# define MBSTRING_FLAG 0x1000 +# define MBSTRING_UTF8 (MBSTRING_FLAG) +# define MBSTRING_ASC (MBSTRING_FLAG|1) +# define MBSTRING_BMP (MBSTRING_FLAG|2) +# define MBSTRING_UNIV (MBSTRING_FLAG|4) +# define SMIME_OLDMIME 0x400 +# define SMIME_CRLFEOL 0x800 +# define SMIME_STREAM 0x1000 + struct X509_algor_st; +DECLARE_STACK_OF(X509_ALGOR) + +# define DECLARE_ASN1_SET_OF(type)/* filled in by mkstack.pl */ +# define IMPLEMENT_ASN1_SET_OF(type)/* nothing, no longer needed */ + +/* + * We MUST make sure that, except for constness, asn1_ctx_st and + * asn1_const_ctx are exactly the same. Fortunately, as soon as the old ASN1 + * parsing macros are gone, we can throw this away as well... + */ +typedef struct asn1_ctx_st { + unsigned char *p; /* work char pointer */ + int eos; /* end of sequence read for indefinite + * encoding */ + int error; /* error code to use when returning an error */ + int inf; /* constructed if 0x20, indefinite is 0x21 */ + int tag; /* tag from last 'get object' */ + int xclass; /* class from last 'get object' */ + long slen; /* length of last 'get object' */ + unsigned char *max; /* largest value of p allowed */ + unsigned char *q; /* temporary variable */ + unsigned char **pp; /* variable */ + int line; /* used in error processing */ +} ASN1_CTX; + +typedef struct asn1_const_ctx_st { + const unsigned char *p; /* work char pointer */ + int eos; /* end of sequence read for indefinite + * encoding */ + int error; /* error code to use when returning an error */ + int inf; /* constructed if 0x20, indefinite is 0x21 */ + int tag; /* tag from last 'get object' */ + int xclass; /* class from last 'get object' */ + long slen; /* length of last 'get object' */ + const unsigned char *max; /* largest value of p allowed */ + const unsigned char *q; /* temporary variable */ + const unsigned char **pp; /* variable */ + int line; /* used in error processing */ +} ASN1_const_CTX; + +/* + * These are used internally in the ASN1_OBJECT to keep track of whether the + * names and data need to be free()ed + */ +# define ASN1_OBJECT_FLAG_DYNAMIC 0x01/* internal use */ +# define ASN1_OBJECT_FLAG_CRITICAL 0x02/* critical x509v3 object id */ +# define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04/* internal use */ +# define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08/* internal use */ +typedef struct asn1_object_st { + const char *sn, *ln; + int nid; + int length; + unsigned char *data; + int flags; /* Should we free this one */ +} ASN1_OBJECT; + +# define ASN1_STRING_FLAG_BITS_LEFT 0x08/* Set if 0x07 has bits left value */ +/* + * This indicates that the ASN1_STRING is not a real value but just a place + * holder for the location where indefinite length constructed data should be + * inserted in the memory buffer + */ +# define ASN1_STRING_FLAG_NDEF 0x010 + +/* + * This flag is used by the CMS code to indicate that a string is not + * complete and is a place holder for content when it had all been accessed. + * The flag will be reset when content has been written to it. + */ +# define ASN1_STRING_FLAG_CONT 0x020 + +/* This is the base type that holds just about everything :-) */ +typedef struct asn1_string_st { + int length; + int type; + unsigned char *data; + /* + * The value of the following field depends on the type being held. It + * is mostly being used for BIT_STRING so if the input data has a + * non-zero 'unused bits' value, it will be handled correctly + */ + long flags; +} ASN1_STRING; + +/* + * ASN1_ENCODING structure: this is used to save the received encoding of an + * ASN1 type. This is useful to get round problems with invalid encodings + * which can break signatures. + */ + +typedef struct ASN1_ENCODING_st { + unsigned char *enc; /* DER encoding */ + long len; /* Length of encoding */ + int modified; /* set to 1 if 'enc' is invalid */ +} ASN1_ENCODING; + +/* Used with ASN1 LONG type: if a long is set to this it is omitted */ +# define ASN1_LONG_UNDEF 0x7fffffffL + +# define STABLE_FLAGS_MALLOC 0x01 +# define STABLE_NO_MASK 0x02 +# define DIRSTRING_TYPE \ + (B_ASN1_PRINTABLESTRING|B_ASN1_T61STRING|B_ASN1_BMPSTRING|B_ASN1_UTF8STRING) +# define PKCS9STRING_TYPE (DIRSTRING_TYPE|B_ASN1_IA5STRING) + +typedef struct asn1_string_table_st { + int nid; + long minsize; + long maxsize; + unsigned long mask; + unsigned long flags; +} ASN1_STRING_TABLE; + +DECLARE_STACK_OF(ASN1_STRING_TABLE) + +/* size limits: this stuff is taken straight from RFC2459 */ + +# define ub_name 32768 +# define ub_common_name 64 +# define ub_locality_name 128 +# define ub_state_name 128 +# define ub_organization_name 64 +# define ub_organization_unit_name 64 +# define ub_title 64 +# define ub_email_address 128 + +/* + * Declarations for template structures: for full definitions see asn1t.h + */ +typedef struct ASN1_TEMPLATE_st ASN1_TEMPLATE; +typedef struct ASN1_ITEM_st ASN1_ITEM; +typedef struct ASN1_TLC_st ASN1_TLC; +/* This is just an opaque pointer */ +typedef struct ASN1_VALUE_st ASN1_VALUE; + +/* Declare ASN1 functions: the implement macro in in asn1t.h */ + +# define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type) + +# define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \ + DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type) + +# define DECLARE_ASN1_FUNCTIONS_name(type, name) \ + DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ + DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name) + +# define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \ + DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ + DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) + +# define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \ + type *d2i_##name(type **a, const unsigned char **in, long len); \ + int i2d_##name(type *a, unsigned char **out); \ + DECLARE_ASN1_ITEM(itname) + +# define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \ + type *d2i_##name(type **a, const unsigned char **in, long len); \ + int i2d_##name(const type *a, unsigned char **out); \ + DECLARE_ASN1_ITEM(name) + +# define DECLARE_ASN1_NDEF_FUNCTION(name) \ + int i2d_##name##_NDEF(name *a, unsigned char **out); + +# define DECLARE_ASN1_FUNCTIONS_const(name) \ + DECLARE_ASN1_ALLOC_FUNCTIONS(name) \ + DECLARE_ASN1_ENCODE_FUNCTIONS_const(name, name) + +# define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \ + type *name##_new(void); \ + void name##_free(type *a); + +# define D2I_OF(type) type *(*)(type **,const unsigned char **,long) +# define I2D_OF(type) int (*)(type *,unsigned char **) +# define I2D_OF_const(type) int (*)(const type *,unsigned char **) + +# define CHECKED_D2I_OF(type, d2i) \ + ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0))) +# define CHECKED_I2D_OF(type, i2d) \ + ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0))) +# define CHECKED_NEW_OF(type, xnew) \ + ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0))) +# define CHECKED_PTR_OF(type, p) \ + ((void*) (1 ? p : (type*)0)) +# define CHECKED_PPTR_OF(type, p) \ + ((void**) (1 ? p : (type**)0)) +# define CHECKED_PTR_OF_TO_CHAR(type, p) \ + ((char*) (1 ? p : (type*)0)) + +# define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long) +# define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **) +# define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type) + +TYPEDEF_D2I2D_OF(void); + +/*- + * The following macros and typedefs allow an ASN1_ITEM + * to be embedded in a structure and referenced. Since + * the ASN1_ITEM pointers need to be globally accessible + * (possibly from shared libraries) they may exist in + * different forms. On platforms that support it the + * ASN1_ITEM structure itself will be globally exported. + * Other platforms will export a function that returns + * an ASN1_ITEM pointer. + * + * To handle both cases transparently the macros below + * should be used instead of hard coding an ASN1_ITEM + * pointer in a structure. + * + * The structure will look like this: + * + * typedef struct SOMETHING_st { + * ... + * ASN1_ITEM_EXP *iptr; + * ... + * } SOMETHING; + * + * It would be initialised as e.g.: + * + * SOMETHING somevar = {...,ASN1_ITEM_ref(X509),...}; + * + * and the actual pointer extracted with: + * + * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr); + * + * Finally an ASN1_ITEM pointer can be extracted from an + * appropriate reference with: ASN1_ITEM_rptr(X509). This + * would be used when a function takes an ASN1_ITEM * argument. + * + */ + +# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION + +/* ASN1_ITEM pointer exported type */ +typedef const ASN1_ITEM ASN1_ITEM_EXP; + +/* Macro to obtain ASN1_ITEM pointer from exported type */ +# define ASN1_ITEM_ptr(iptr) (iptr) + +/* Macro to include ASN1_ITEM pointer from base type */ +# define ASN1_ITEM_ref(iptr) (&(iptr##_it)) + +# define ASN1_ITEM_rptr(ref) (&(ref##_it)) + +# define DECLARE_ASN1_ITEM(name) \ + OPENSSL_EXTERN const ASN1_ITEM name##_it; + +# else + +/* + * Platforms that can't easily handle shared global variables are declared as + * functions returning ASN1_ITEM pointers. + */ + +/* ASN1_ITEM pointer exported type */ +typedef const ASN1_ITEM *ASN1_ITEM_EXP (void); + +/* Macro to obtain ASN1_ITEM pointer from exported type */ +# define ASN1_ITEM_ptr(iptr) (iptr()) + +/* Macro to include ASN1_ITEM pointer from base type */ +# define ASN1_ITEM_ref(iptr) (iptr##_it) + +# define ASN1_ITEM_rptr(ref) (ref##_it()) + +# define DECLARE_ASN1_ITEM(name) \ + const ASN1_ITEM * name##_it(void); + +# endif + +/* Parameters used by ASN1_STRING_print_ex() */ + +/* + * These determine which characters to escape: RFC2253 special characters, + * control characters and MSB set characters + */ + +# define ASN1_STRFLGS_ESC_2253 1 +# define ASN1_STRFLGS_ESC_CTRL 2 +# define ASN1_STRFLGS_ESC_MSB 4 + +/* + * This flag determines how we do escaping: normally RC2253 backslash only, + * set this to use backslash and quote. + */ + +# define ASN1_STRFLGS_ESC_QUOTE 8 + +/* These three flags are internal use only. */ + +/* Character is a valid PrintableString character */ +# define CHARTYPE_PRINTABLESTRING 0x10 +/* Character needs escaping if it is the first character */ +# define CHARTYPE_FIRST_ESC_2253 0x20 +/* Character needs escaping if it is the last character */ +# define CHARTYPE_LAST_ESC_2253 0x40 + +/* + * NB the internal flags are safely reused below by flags handled at the top + * level. + */ + +/* + * If this is set we convert all character strings to UTF8 first + */ + +# define ASN1_STRFLGS_UTF8_CONVERT 0x10 + +/* + * If this is set we don't attempt to interpret content: just assume all + * strings are 1 byte per character. This will produce some pretty odd + * looking output! + */ + +# define ASN1_STRFLGS_IGNORE_TYPE 0x20 + +/* If this is set we include the string type in the output */ +# define ASN1_STRFLGS_SHOW_TYPE 0x40 + +/* + * This determines which strings to display and which to 'dump' (hex dump of + * content octets or DER encoding). We can only dump non character strings or + * everything. If we don't dump 'unknown' they are interpreted as character + * strings with 1 octet per character and are subject to the usual escaping + * options. + */ + +# define ASN1_STRFLGS_DUMP_ALL 0x80 +# define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 + +/* + * These determine what 'dumping' does, we can dump the content octets or the + * DER encoding: both use the RFC2253 #XXXXX notation. + */ + +# define ASN1_STRFLGS_DUMP_DER 0x200 + +/* + * All the string flags consistent with RFC2253, escaping control characters + * isn't essential in RFC2253 but it is advisable anyway. + */ + +# define ASN1_STRFLGS_RFC2253 (ASN1_STRFLGS_ESC_2253 | \ + ASN1_STRFLGS_ESC_CTRL | \ + ASN1_STRFLGS_ESC_MSB | \ + ASN1_STRFLGS_UTF8_CONVERT | \ + ASN1_STRFLGS_DUMP_UNKNOWN | \ + ASN1_STRFLGS_DUMP_DER) + +DECLARE_STACK_OF(ASN1_INTEGER) +DECLARE_ASN1_SET_OF(ASN1_INTEGER) + +DECLARE_STACK_OF(ASN1_GENERALSTRING) + +typedef struct asn1_type_st { + int type; + union { + char *ptr; + ASN1_BOOLEAN boolean; + ASN1_STRING *asn1_string; + ASN1_OBJECT *object; + ASN1_INTEGER *integer; + ASN1_ENUMERATED *enumerated; + ASN1_BIT_STRING *bit_string; + ASN1_OCTET_STRING *octet_string; + ASN1_PRINTABLESTRING *printablestring; + ASN1_T61STRING *t61string; + ASN1_IA5STRING *ia5string; + ASN1_GENERALSTRING *generalstring; + ASN1_BMPSTRING *bmpstring; + ASN1_UNIVERSALSTRING *universalstring; + ASN1_UTCTIME *utctime; + ASN1_GENERALIZEDTIME *generalizedtime; + ASN1_VISIBLESTRING *visiblestring; + ASN1_UTF8STRING *utf8string; + /* + * set and sequence are left complete and still contain the set or + * sequence bytes + */ + ASN1_STRING *set; + ASN1_STRING *sequence; + ASN1_VALUE *asn1_value; + } value; +} ASN1_TYPE; + +DECLARE_STACK_OF(ASN1_TYPE) +DECLARE_ASN1_SET_OF(ASN1_TYPE) + +typedef struct asn1_method_st { + i2d_of_void *i2d; + d2i_of_void *d2i; + void *(*create) (void); + void (*destroy) (void *); +} ASN1_METHOD; + +/* This is used when parsing some Netscape objects */ +typedef struct asn1_header_st { + ASN1_OCTET_STRING *header; + void *data; + ASN1_METHOD *meth; +} ASN1_HEADER; + +/* This is used to contain a list of bit names */ +typedef struct BIT_STRING_BITNAME_st { + int bitnum; + const char *lname; + const char *sname; +} BIT_STRING_BITNAME; + +# define M_ASN1_STRING_length(x) ((x)->length) +# define M_ASN1_STRING_length_set(x, n) ((x)->length = (n)) +# define M_ASN1_STRING_type(x) ((x)->type) +# define M_ASN1_STRING_data(x) ((x)->data) + +/* Macros for string operations */ +# define M_ASN1_BIT_STRING_new() (ASN1_BIT_STRING *)\ + ASN1_STRING_type_new(V_ASN1_BIT_STRING) +# define M_ASN1_BIT_STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_BIT_STRING_dup(a) (ASN1_BIT_STRING *)\ + ASN1_STRING_dup((ASN1_STRING *)a) +# define M_ASN1_BIT_STRING_cmp(a,b) ASN1_STRING_cmp(\ + (ASN1_STRING *)a,(ASN1_STRING *)b) +# define M_ASN1_BIT_STRING_set(a,b,c) ASN1_STRING_set((ASN1_STRING *)a,b,c) + +# define M_ASN1_INTEGER_new() (ASN1_INTEGER *)\ + ASN1_STRING_type_new(V_ASN1_INTEGER) +# define M_ASN1_INTEGER_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_INTEGER_dup(a) (ASN1_INTEGER *)ASN1_STRING_dup((ASN1_STRING *)a) +# define M_ASN1_INTEGER_cmp(a,b) ASN1_STRING_cmp(\ + (ASN1_STRING *)a,(ASN1_STRING *)b) + +# define M_ASN1_ENUMERATED_new() (ASN1_ENUMERATED *)\ + ASN1_STRING_type_new(V_ASN1_ENUMERATED) +# define M_ASN1_ENUMERATED_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_ENUMERATED_dup(a) (ASN1_ENUMERATED *)ASN1_STRING_dup((ASN1_STRING *)a) +# define M_ASN1_ENUMERATED_cmp(a,b) ASN1_STRING_cmp(\ + (ASN1_STRING *)a,(ASN1_STRING *)b) + +# define M_ASN1_OCTET_STRING_new() (ASN1_OCTET_STRING *)\ + ASN1_STRING_type_new(V_ASN1_OCTET_STRING) +# define M_ASN1_OCTET_STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_OCTET_STRING_dup(a) (ASN1_OCTET_STRING *)\ + ASN1_STRING_dup((ASN1_STRING *)a) +# define M_ASN1_OCTET_STRING_cmp(a,b) ASN1_STRING_cmp(\ + (ASN1_STRING *)a,(ASN1_STRING *)b) +# define M_ASN1_OCTET_STRING_set(a,b,c) ASN1_STRING_set((ASN1_STRING *)a,b,c) +# define M_ASN1_OCTET_STRING_print(a,b) ASN1_STRING_print(a,(ASN1_STRING *)b) +# define M_i2d_ASN1_OCTET_STRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_OCTET_STRING,\ + V_ASN1_UNIVERSAL) + +# define B_ASN1_TIME \ + B_ASN1_UTCTIME | \ + B_ASN1_GENERALIZEDTIME + +# define B_ASN1_PRINTABLE \ + B_ASN1_NUMERICSTRING| \ + B_ASN1_PRINTABLESTRING| \ + B_ASN1_T61STRING| \ + B_ASN1_IA5STRING| \ + B_ASN1_BIT_STRING| \ + B_ASN1_UNIVERSALSTRING|\ + B_ASN1_BMPSTRING|\ + B_ASN1_UTF8STRING|\ + B_ASN1_SEQUENCE|\ + B_ASN1_UNKNOWN + +# define B_ASN1_DIRECTORYSTRING \ + B_ASN1_PRINTABLESTRING| \ + B_ASN1_TELETEXSTRING|\ + B_ASN1_BMPSTRING|\ + B_ASN1_UNIVERSALSTRING|\ + B_ASN1_UTF8STRING + +# define B_ASN1_DISPLAYTEXT \ + B_ASN1_IA5STRING| \ + B_ASN1_VISIBLESTRING| \ + B_ASN1_BMPSTRING|\ + B_ASN1_UTF8STRING + +# define M_ASN1_PRINTABLE_new() ASN1_STRING_type_new(V_ASN1_T61STRING) +# define M_ASN1_PRINTABLE_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_PRINTABLE(a,pp) i2d_ASN1_bytes((ASN1_STRING *)a,\ + pp,a->type,V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_PRINTABLE(a,pp,l) \ + d2i_ASN1_type_bytes((ASN1_STRING **)a,pp,l, \ + B_ASN1_PRINTABLE) + +# define M_DIRECTORYSTRING_new() ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING) +# define M_DIRECTORYSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_DIRECTORYSTRING(a,pp) i2d_ASN1_bytes((ASN1_STRING *)a,\ + pp,a->type,V_ASN1_UNIVERSAL) +# define M_d2i_DIRECTORYSTRING(a,pp,l) \ + d2i_ASN1_type_bytes((ASN1_STRING **)a,pp,l, \ + B_ASN1_DIRECTORYSTRING) + +# define M_DISPLAYTEXT_new() ASN1_STRING_type_new(V_ASN1_VISIBLESTRING) +# define M_DISPLAYTEXT_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_DISPLAYTEXT(a,pp) i2d_ASN1_bytes((ASN1_STRING *)a,\ + pp,a->type,V_ASN1_UNIVERSAL) +# define M_d2i_DISPLAYTEXT(a,pp,l) \ + d2i_ASN1_type_bytes((ASN1_STRING **)a,pp,l, \ + B_ASN1_DISPLAYTEXT) + +# define M_ASN1_PRINTABLESTRING_new() (ASN1_PRINTABLESTRING *)\ + ASN1_STRING_type_new(V_ASN1_PRINTABLESTRING) +# define M_ASN1_PRINTABLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_PRINTABLESTRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_PRINTABLESTRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_PRINTABLESTRING(a,pp,l) \ + (ASN1_PRINTABLESTRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_PRINTABLESTRING) + +# define M_ASN1_T61STRING_new() (ASN1_T61STRING *)\ + ASN1_STRING_type_new(V_ASN1_T61STRING) +# define M_ASN1_T61STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_T61STRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_T61STRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_T61STRING(a,pp,l) \ + (ASN1_T61STRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_T61STRING) + +# define M_ASN1_IA5STRING_new() (ASN1_IA5STRING *)\ + ASN1_STRING_type_new(V_ASN1_IA5STRING) +# define M_ASN1_IA5STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_IA5STRING_dup(a) \ + (ASN1_IA5STRING *)ASN1_STRING_dup((ASN1_STRING *)a) +# define M_i2d_ASN1_IA5STRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_IA5STRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_IA5STRING(a,pp,l) \ + (ASN1_IA5STRING *)d2i_ASN1_type_bytes((ASN1_STRING **)a,pp,l,\ + B_ASN1_IA5STRING) + +# define M_ASN1_UTCTIME_new() (ASN1_UTCTIME *)\ + ASN1_STRING_type_new(V_ASN1_UTCTIME) +# define M_ASN1_UTCTIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_UTCTIME_dup(a) (ASN1_UTCTIME *)ASN1_STRING_dup((ASN1_STRING *)a) + +# define M_ASN1_GENERALIZEDTIME_new() (ASN1_GENERALIZEDTIME *)\ + ASN1_STRING_type_new(V_ASN1_GENERALIZEDTIME) +# define M_ASN1_GENERALIZEDTIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_GENERALIZEDTIME_dup(a) (ASN1_GENERALIZEDTIME *)ASN1_STRING_dup(\ + (ASN1_STRING *)a) + +# define M_ASN1_TIME_new() (ASN1_TIME *)\ + ASN1_STRING_type_new(V_ASN1_UTCTIME) +# define M_ASN1_TIME_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_ASN1_TIME_dup(a) (ASN1_TIME *)ASN1_STRING_dup((ASN1_STRING *)a) + +# define M_ASN1_GENERALSTRING_new() (ASN1_GENERALSTRING *)\ + ASN1_STRING_type_new(V_ASN1_GENERALSTRING) +# define M_ASN1_GENERALSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_GENERALSTRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_GENERALSTRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_GENERALSTRING(a,pp,l) \ + (ASN1_GENERALSTRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_GENERALSTRING) + +# define M_ASN1_UNIVERSALSTRING_new() (ASN1_UNIVERSALSTRING *)\ + ASN1_STRING_type_new(V_ASN1_UNIVERSALSTRING) +# define M_ASN1_UNIVERSALSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_UNIVERSALSTRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_UNIVERSALSTRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_UNIVERSALSTRING(a,pp,l) \ + (ASN1_UNIVERSALSTRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_UNIVERSALSTRING) + +# define M_ASN1_BMPSTRING_new() (ASN1_BMPSTRING *)\ + ASN1_STRING_type_new(V_ASN1_BMPSTRING) +# define M_ASN1_BMPSTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_BMPSTRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_BMPSTRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_BMPSTRING(a,pp,l) \ + (ASN1_BMPSTRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_BMPSTRING) + +# define M_ASN1_VISIBLESTRING_new() (ASN1_VISIBLESTRING *)\ + ASN1_STRING_type_new(V_ASN1_VISIBLESTRING) +# define M_ASN1_VISIBLESTRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_VISIBLESTRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_VISIBLESTRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_VISIBLESTRING(a,pp,l) \ + (ASN1_VISIBLESTRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_VISIBLESTRING) + +# define M_ASN1_UTF8STRING_new() (ASN1_UTF8STRING *)\ + ASN1_STRING_type_new(V_ASN1_UTF8STRING) +# define M_ASN1_UTF8STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a) +# define M_i2d_ASN1_UTF8STRING(a,pp) \ + i2d_ASN1_bytes((ASN1_STRING *)a,pp,V_ASN1_UTF8STRING,\ + V_ASN1_UNIVERSAL) +# define M_d2i_ASN1_UTF8STRING(a,pp,l) \ + (ASN1_UTF8STRING *)d2i_ASN1_type_bytes\ + ((ASN1_STRING **)a,pp,l,B_ASN1_UTF8STRING) + + /* for the is_set parameter to i2d_ASN1_SET */ +# define IS_SEQUENCE 0 +# define IS_SET 1 + +DECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE) + +int ASN1_TYPE_get(ASN1_TYPE *a); +void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); +int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value); +int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b); + +ASN1_OBJECT *ASN1_OBJECT_new(void); +void ASN1_OBJECT_free(ASN1_OBJECT *a); +int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp); +ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, + long length); +ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, + long length); + +DECLARE_ASN1_ITEM(ASN1_OBJECT) + +DECLARE_STACK_OF(ASN1_OBJECT) +DECLARE_ASN1_SET_OF(ASN1_OBJECT) + +ASN1_STRING *ASN1_STRING_new(void); +void ASN1_STRING_free(ASN1_STRING *a); +ASN1_STRING *ASN1_STRING_dup(ASN1_STRING *a); +ASN1_STRING *ASN1_STRING_type_new(int type); +int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b); + /* + * Since this is used to store all sorts of things, via macros, for now, + * make its data void * + */ +int ASN1_STRING_set(ASN1_STRING *str, const void *data, int len); +void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len); +int ASN1_STRING_length(ASN1_STRING *x); +void ASN1_STRING_length_set(ASN1_STRING *x, int n); +int ASN1_STRING_type(ASN1_STRING *x); +unsigned char *ASN1_STRING_data(ASN1_STRING *x); + +DECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING) +int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp); +ASN1_BIT_STRING *c2i_ASN1_BIT_STRING(ASN1_BIT_STRING **a, + const unsigned char **pp, long length); +int ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length); +int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value); +int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *a, int n); + +# ifndef OPENSSL_NO_BIO +int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, + BIT_STRING_BITNAME *tbl, int indent); +# endif +int ASN1_BIT_STRING_num_asc(char *name, BIT_STRING_BITNAME *tbl); +int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, + BIT_STRING_BITNAME *tbl); + +int i2d_ASN1_BOOLEAN(int a, unsigned char **pp); +int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length); + +DECLARE_ASN1_FUNCTIONS(ASN1_INTEGER) +int i2c_ASN1_INTEGER(ASN1_INTEGER *a, unsigned char **pp); +ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, + long length); +ASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp, + long length); +ASN1_INTEGER *ASN1_INTEGER_dup(ASN1_INTEGER *x); +int ASN1_INTEGER_cmp(ASN1_INTEGER *x, ASN1_INTEGER *y); + +DECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED) + +int ASN1_UTCTIME_check(ASN1_UTCTIME *a); +ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t); +int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str); +int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t); +# if 0 +time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s); +# endif + +int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a); +ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s, + time_t t); +int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str); + +DECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING) +ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(ASN1_OCTET_STRING *a); +int ASN1_OCTET_STRING_cmp(ASN1_OCTET_STRING *a, ASN1_OCTET_STRING *b); +int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data, + int len); + +DECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING) +DECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING) +DECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING) +DECLARE_ASN1_FUNCTIONS(ASN1_NULL) +DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING) + +int UTF8_getc(const unsigned char *str, int len, unsigned long *val); +int UTF8_putc(unsigned char *str, int len, unsigned long value); + +DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) + +DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) +DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT) +DECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING) +DECLARE_ASN1_FUNCTIONS(ASN1_T61STRING) +DECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING) +DECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING) +DECLARE_ASN1_FUNCTIONS(ASN1_UTCTIME) +DECLARE_ASN1_FUNCTIONS(ASN1_GENERALIZEDTIME) +DECLARE_ASN1_FUNCTIONS(ASN1_TIME) + +DECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF) + +ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t); +int ASN1_TIME_check(ASN1_TIME *t); +ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZEDTIME + **out); + +int i2d_ASN1_SET(STACK * a, unsigned char **pp, + i2d_of_void *i2d, int ex_tag, int ex_class, int is_set); +STACK *d2i_ASN1_SET(STACK ** a, const unsigned char **pp, long length, + d2i_of_void *d2i, void (*free_func) (void *), + int ex_tag, int ex_class); + +# ifndef OPENSSL_NO_BIO +int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a); +int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size); +int i2a_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *a); +int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size); +int i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a); +int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size); +int i2a_ASN1_STRING(BIO *bp, ASN1_STRING *a, int type); +# endif +int i2t_ASN1_OBJECT(char *buf, int buf_len, ASN1_OBJECT *a); + +int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num); +ASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len, + const char *sn, const char *ln); + +int ASN1_INTEGER_set(ASN1_INTEGER *a, long v); +long ASN1_INTEGER_get(ASN1_INTEGER *a); +ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai); +BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn); + +int ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v); +long ASN1_ENUMERATED_get(ASN1_ENUMERATED *a); +ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai); +BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn); + +/* General */ +/* given a string, return the correct type, max is the maximum length */ +int ASN1_PRINTABLE_type(const unsigned char *s, int max); + +int i2d_ASN1_bytes(ASN1_STRING *a, unsigned char **pp, int tag, int xclass); +ASN1_STRING *d2i_ASN1_bytes(ASN1_STRING **a, const unsigned char **pp, + long length, int Ptag, int Pclass); +unsigned long ASN1_tag2bit(int tag); +/* type is one or more of the B_ASN1_ values. */ +ASN1_STRING *d2i_ASN1_type_bytes(ASN1_STRING **a, const unsigned char **pp, + long length, int type); + +/* PARSING */ +int asn1_Finish(ASN1_CTX *c); +int asn1_const_Finish(ASN1_const_CTX *c); + +/* SPECIALS */ +int ASN1_get_object(const unsigned char **pp, long *plength, int *ptag, + int *pclass, long omax); +int ASN1_check_infinite_end(unsigned char **p, long len); +int ASN1_const_check_infinite_end(const unsigned char **p, long len); +void ASN1_put_object(unsigned char **pp, int constructed, int length, + int tag, int xclass); +int ASN1_put_eoc(unsigned char **pp); +int ASN1_object_size(int constructed, int length, int tag); + +/* Used to implement other functions */ +void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, char *x); + +# define ASN1_dup_of(type,i2d,d2i,x) \ + ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \ + CHECKED_D2I_OF(type, d2i), \ + CHECKED_PTR_OF_TO_CHAR(type, x))) + +# define ASN1_dup_of_const(type,i2d,d2i,x) \ + ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \ + CHECKED_D2I_OF(type, d2i), \ + CHECKED_PTR_OF_TO_CHAR(const type, x))) + +void *ASN1_item_dup(const ASN1_ITEM *it, void *x); + +/* ASN1 alloc/free macros for when a type is only used internally */ + +# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type)) +# define M_ASN1_free_of(x, type) \ + ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) + +# ifndef OPENSSL_NO_FP_API +void *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x); + +# define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ + ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \ + CHECKED_D2I_OF(type, d2i), \ + in, \ + CHECKED_PPTR_OF(type, x))) + +void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x); +int ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x); + +# define ASN1_i2d_fp_of(type,i2d,out,x) \ + (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \ + out, \ + CHECKED_PTR_OF(type, x))) + +# define ASN1_i2d_fp_of_const(type,i2d,out,x) \ + (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \ + out, \ + CHECKED_PTR_OF(const type, x))) + +int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); +int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); +# endif + +int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); + +# ifndef OPENSSL_NO_BIO +void *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x); + +# define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \ + ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \ + CHECKED_D2I_OF(type, d2i), \ + in, \ + CHECKED_PPTR_OF(type, x))) + +void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x); +int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x); + +# define ASN1_i2d_bio_of(type,i2d,out,x) \ + (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \ + out, \ + CHECKED_PTR_OF(type, x))) + +# define ASN1_i2d_bio_of_const(type,i2d,out,x) \ + (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \ + out, \ + CHECKED_PTR_OF(const type, x))) + +int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x); +int ASN1_UTCTIME_print(BIO *fp, ASN1_UTCTIME *a); +int ASN1_GENERALIZEDTIME_print(BIO *fp, ASN1_GENERALIZEDTIME *a); +int ASN1_TIME_print(BIO *fp, ASN1_TIME *a); +int ASN1_STRING_print(BIO *bp, ASN1_STRING *v); +int ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags); +int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent); +int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, + int dump); +# endif +const char *ASN1_tag2str(int tag); + +/* Used to load and write netscape format cert/key */ +int i2d_ASN1_HEADER(ASN1_HEADER * a, unsigned char **pp); +ASN1_HEADER *d2i_ASN1_HEADER(ASN1_HEADER ** a, const unsigned char **pp, + long length); +ASN1_HEADER *ASN1_HEADER_new(void); +void ASN1_HEADER_free(ASN1_HEADER * a); + +int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s); + +/* Not used that much at this point, except for the first two */ +ASN1_METHOD *X509_asn1_meth(void); +ASN1_METHOD *RSAPrivateKey_asn1_meth(void); +ASN1_METHOD *ASN1_IA5STRING_asn1_meth(void); +ASN1_METHOD *ASN1_BIT_STRING_asn1_meth(void); + +int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len); +int ASN1_TYPE_get_octetstring(ASN1_TYPE *a, unsigned char *data, int max_len); +int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, + unsigned char *data, int len); +int ASN1_TYPE_get_int_octetstring(ASN1_TYPE *a, long *num, + unsigned char *data, int max_len); + +STACK *ASN1_seq_unpack(const unsigned char *buf, int len, + d2i_of_void *d2i, void (*free_func) (void *)); +unsigned char *ASN1_seq_pack(STACK * safes, i2d_of_void *i2d, + unsigned char **buf, int *len); +void *ASN1_unpack_string(ASN1_STRING *oct, d2i_of_void *d2i); +void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it); +ASN1_STRING *ASN1_pack_string(void *obj, i2d_of_void *i2d, + ASN1_OCTET_STRING **oct); + +# define ASN1_pack_string_of(type,obj,i2d,oct) \ + (ASN1_pack_string(CHECKED_PTR_OF(type, obj), \ + CHECKED_I2D_OF(type, i2d), \ + oct)) + +ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, + ASN1_OCTET_STRING **oct); + +void ASN1_STRING_set_default_mask(unsigned long mask); +int ASN1_STRING_set_default_mask_asc(const char *p); +unsigned long ASN1_STRING_get_default_mask(void); +int ASN1_mbstring_copy(ASN1_STRING **out, const unsigned char *in, int len, + int inform, unsigned long mask); +int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len, + int inform, unsigned long mask, + long minsize, long maxsize); + +ASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out, + const unsigned char *in, int inlen, + int inform, int nid); +ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid); +int ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long); +void ASN1_STRING_TABLE_cleanup(void); + +/* ASN1 template functions */ + +/* Old API compatible functions */ +ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it); +void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it); +ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in, + long len, const ASN1_ITEM *it); +int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); +int ASN1_item_ndef_i2d(ASN1_VALUE *val, unsigned char **out, + const ASN1_ITEM *it); + +void ASN1_add_oid_module(void); + +ASN1_TYPE *ASN1_generate_nconf(char *str, CONF *nconf); +ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf); + +typedef int asn1_output_data_fn(BIO *out, BIO *data, ASN1_VALUE *val, + int flags, const ASN1_ITEM *it); + +int int_smime_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, + int ctype_nid, int econt_nid, + STACK_OF(X509_ALGOR) *mdalgs, + asn1_output_data_fn * data_fn, const ASN1_ITEM *it); +ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_ASN1_strings(void); + +/* Error codes for the ASN1 functions. */ + +/* Function codes. */ +# define ASN1_F_A2D_ASN1_OBJECT 100 +# define ASN1_F_A2I_ASN1_ENUMERATED 101 +# define ASN1_F_A2I_ASN1_INTEGER 102 +# define ASN1_F_A2I_ASN1_STRING 103 +# define ASN1_F_APPEND_EXP 176 +# define ASN1_F_ASN1_BIT_STRING_SET_BIT 183 +# define ASN1_F_ASN1_CB 177 +# define ASN1_F_ASN1_CHECK_TLEN 104 +# define ASN1_F_ASN1_COLLATE_PRIMITIVE 105 +# define ASN1_F_ASN1_COLLECT 106 +# define ASN1_F_ASN1_D2I_EX_PRIMITIVE 108 +# define ASN1_F_ASN1_D2I_FP 109 +# define ASN1_F_ASN1_D2I_READ_BIO 107 +# define ASN1_F_ASN1_DIGEST 184 +# define ASN1_F_ASN1_DO_ADB 110 +# define ASN1_F_ASN1_DUP 111 +# define ASN1_F_ASN1_ENUMERATED_SET 112 +# define ASN1_F_ASN1_ENUMERATED_TO_BN 113 +# define ASN1_F_ASN1_EX_C2I 204 +# define ASN1_F_ASN1_FIND_END 190 +# define ASN1_F_ASN1_GENERALIZEDTIME_SET 185 +# define ASN1_F_ASN1_GENERATE_V3 178 +# define ASN1_F_ASN1_GET_OBJECT 114 +# define ASN1_F_ASN1_HEADER_NEW 115 +# define ASN1_F_ASN1_I2D_BIO 116 +# define ASN1_F_ASN1_I2D_FP 117 +# define ASN1_F_ASN1_INTEGER_SET 118 +# define ASN1_F_ASN1_INTEGER_TO_BN 119 +# define ASN1_F_ASN1_ITEM_D2I_FP 206 +# define ASN1_F_ASN1_ITEM_DUP 191 +# define ASN1_F_ASN1_ITEM_EX_COMBINE_NEW 121 +# define ASN1_F_ASN1_ITEM_EX_D2I 120 +# define ASN1_F_ASN1_ITEM_I2D_BIO 192 +# define ASN1_F_ASN1_ITEM_I2D_FP 193 +# define ASN1_F_ASN1_ITEM_PACK 198 +# define ASN1_F_ASN1_ITEM_SIGN 195 +# define ASN1_F_ASN1_ITEM_UNPACK 199 +# define ASN1_F_ASN1_ITEM_VERIFY 197 +# define ASN1_F_ASN1_MBSTRING_NCOPY 122 +# define ASN1_F_ASN1_OBJECT_NEW 123 +# define ASN1_F_ASN1_OUTPUT_DATA 207 +# define ASN1_F_ASN1_PACK_STRING 124 +# define ASN1_F_ASN1_PCTX_NEW 205 +# define ASN1_F_ASN1_PKCS5_PBE_SET 125 +# define ASN1_F_ASN1_SEQ_PACK 126 +# define ASN1_F_ASN1_SEQ_UNPACK 127 +# define ASN1_F_ASN1_SIGN 128 +# define ASN1_F_ASN1_STR2TYPE 179 +# define ASN1_F_ASN1_STRING_SET 186 +# define ASN1_F_ASN1_STRING_TABLE_ADD 129 +# define ASN1_F_ASN1_STRING_TYPE_NEW 130 +# define ASN1_F_ASN1_TEMPLATE_EX_D2I 132 +# define ASN1_F_ASN1_TEMPLATE_NEW 133 +# define ASN1_F_ASN1_TEMPLATE_NOEXP_D2I 131 +# define ASN1_F_ASN1_TIME_SET 175 +# define ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING 134 +# define ASN1_F_ASN1_TYPE_GET_OCTETSTRING 135 +# define ASN1_F_ASN1_UNPACK_STRING 136 +# define ASN1_F_ASN1_UTCTIME_SET 187 +# define ASN1_F_ASN1_VERIFY 137 +# define ASN1_F_B64_READ_ASN1 208 +# define ASN1_F_B64_WRITE_ASN1 209 +# define ASN1_F_BITSTR_CB 180 +# define ASN1_F_BN_TO_ASN1_ENUMERATED 138 +# define ASN1_F_BN_TO_ASN1_INTEGER 139 +# define ASN1_F_C2I_ASN1_BIT_STRING 189 +# define ASN1_F_C2I_ASN1_INTEGER 194 +# define ASN1_F_C2I_ASN1_OBJECT 196 +# define ASN1_F_COLLECT_DATA 140 +# define ASN1_F_D2I_ASN1_BIT_STRING 141 +# define ASN1_F_D2I_ASN1_BOOLEAN 142 +# define ASN1_F_D2I_ASN1_BYTES 143 +# define ASN1_F_D2I_ASN1_GENERALIZEDTIME 144 +# define ASN1_F_D2I_ASN1_HEADER 145 +# define ASN1_F_D2I_ASN1_INTEGER 146 +# define ASN1_F_D2I_ASN1_OBJECT 147 +# define ASN1_F_D2I_ASN1_SET 148 +# define ASN1_F_D2I_ASN1_TYPE_BYTES 149 +# define ASN1_F_D2I_ASN1_UINTEGER 150 +# define ASN1_F_D2I_ASN1_UTCTIME 151 +# define ASN1_F_D2I_NETSCAPE_RSA 152 +# define ASN1_F_D2I_NETSCAPE_RSA_2 153 +# define ASN1_F_D2I_PRIVATEKEY 154 +# define ASN1_F_D2I_PUBLICKEY 155 +# define ASN1_F_D2I_RSA_NET 200 +# define ASN1_F_D2I_RSA_NET_2 201 +# define ASN1_F_D2I_X509 156 +# define ASN1_F_D2I_X509_CINF 157 +# define ASN1_F_D2I_X509_PKEY 159 +# define ASN1_F_I2D_ASN1_SET 188 +# define ASN1_F_I2D_ASN1_TIME 160 +# define ASN1_F_I2D_DSA_PUBKEY 161 +# define ASN1_F_I2D_EC_PUBKEY 181 +# define ASN1_F_I2D_PRIVATEKEY 163 +# define ASN1_F_I2D_PUBLICKEY 164 +# define ASN1_F_I2D_RSA_NET 162 +# define ASN1_F_I2D_RSA_PUBKEY 165 +# define ASN1_F_LONG_C2I 166 +# define ASN1_F_OID_MODULE_INIT 174 +# define ASN1_F_PARSE_TAGGING 182 +# define ASN1_F_PKCS5_PBE2_SET 167 +# define ASN1_F_PKCS5_PBE_SET 202 +# define ASN1_F_SMIME_READ_ASN1 210 +# define ASN1_F_SMIME_TEXT 211 +# define ASN1_F_X509_CINF_NEW 168 +# define ASN1_F_X509_CRL_ADD0_REVOKED 169 +# define ASN1_F_X509_INFO_NEW 170 +# define ASN1_F_X509_NAME_ENCODE 203 +# define ASN1_F_X509_NAME_EX_D2I 158 +# define ASN1_F_X509_NAME_EX_NEW 171 +# define ASN1_F_X509_NEW 172 +# define ASN1_F_X509_PKEY_NEW 173 + +/* Reason codes. */ +# define ASN1_R_ADDING_OBJECT 171 +# define ASN1_R_ASN1_PARSE_ERROR 198 +# define ASN1_R_ASN1_SIG_PARSE_ERROR 199 +# define ASN1_R_AUX_ERROR 100 +# define ASN1_R_BAD_CLASS 101 +# define ASN1_R_BAD_OBJECT_HEADER 102 +# define ASN1_R_BAD_PASSWORD_READ 103 +# define ASN1_R_BAD_TAG 104 +# define ASN1_R_BMPSTRING_IS_WRONG_LENGTH 210 +# define ASN1_R_BN_LIB 105 +# define ASN1_R_BOOLEAN_IS_WRONG_LENGTH 106 +# define ASN1_R_BUFFER_TOO_SMALL 107 +# define ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER 108 +# define ASN1_R_DATA_IS_WRONG 109 +# define ASN1_R_DECODE_ERROR 110 +# define ASN1_R_DECODING_ERROR 111 +# define ASN1_R_DEPTH_EXCEEDED 174 +# define ASN1_R_ENCODE_ERROR 112 +# define ASN1_R_ERROR_GETTING_TIME 173 +# define ASN1_R_ERROR_LOADING_SECTION 172 +# define ASN1_R_ERROR_PARSING_SET_ELEMENT 113 +# define ASN1_R_ERROR_SETTING_CIPHER_PARAMS 114 +# define ASN1_R_EXPECTING_AN_INTEGER 115 +# define ASN1_R_EXPECTING_AN_OBJECT 116 +# define ASN1_R_EXPECTING_A_BOOLEAN 117 +# define ASN1_R_EXPECTING_A_TIME 118 +# define ASN1_R_EXPLICIT_LENGTH_MISMATCH 119 +# define ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED 120 +# define ASN1_R_FIELD_MISSING 121 +# define ASN1_R_FIRST_NUM_TOO_LARGE 122 +# define ASN1_R_HEADER_TOO_LONG 123 +# define ASN1_R_ILLEGAL_BITSTRING_FORMAT 175 +# define ASN1_R_ILLEGAL_BOOLEAN 176 +# define ASN1_R_ILLEGAL_CHARACTERS 124 +# define ASN1_R_ILLEGAL_FORMAT 177 +# define ASN1_R_ILLEGAL_HEX 178 +# define ASN1_R_ILLEGAL_IMPLICIT_TAG 179 +# define ASN1_R_ILLEGAL_INTEGER 180 +# define ASN1_R_ILLEGAL_NESTED_TAGGING 181 +# define ASN1_R_ILLEGAL_NULL 125 +# define ASN1_R_ILLEGAL_NULL_VALUE 182 +# define ASN1_R_ILLEGAL_OBJECT 183 +# define ASN1_R_ILLEGAL_OPTIONAL_ANY 126 +# define ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE 170 +# define ASN1_R_ILLEGAL_TAGGED_ANY 127 +# define ASN1_R_ILLEGAL_TIME_VALUE 184 +# define ASN1_R_INTEGER_NOT_ASCII_FORMAT 185 +# define ASN1_R_INTEGER_TOO_LARGE_FOR_LONG 128 +# define ASN1_R_INVALID_BIT_STRING_BITS_LEFT 220 +# define ASN1_R_INVALID_BMPSTRING_LENGTH 129 +# define ASN1_R_INVALID_DIGIT 130 +# define ASN1_R_INVALID_MIME_TYPE 200 +# define ASN1_R_INVALID_MODIFIER 186 +# define ASN1_R_INVALID_NUMBER 187 +# define ASN1_R_INVALID_OBJECT_ENCODING 212 +# define ASN1_R_INVALID_SEPARATOR 131 +# define ASN1_R_INVALID_TIME_FORMAT 132 +# define ASN1_R_INVALID_UNIVERSALSTRING_LENGTH 133 +# define ASN1_R_INVALID_UTF8STRING 134 +# define ASN1_R_IV_TOO_LARGE 135 +# define ASN1_R_LENGTH_ERROR 136 +# define ASN1_R_LIST_ERROR 188 +# define ASN1_R_MIME_NO_CONTENT_TYPE 201 +# define ASN1_R_MIME_PARSE_ERROR 202 +# define ASN1_R_MIME_SIG_PARSE_ERROR 203 +# define ASN1_R_MISSING_EOC 137 +# define ASN1_R_MISSING_SECOND_NUMBER 138 +# define ASN1_R_MISSING_VALUE 189 +# define ASN1_R_MSTRING_NOT_UNIVERSAL 139 +# define ASN1_R_MSTRING_WRONG_TAG 140 +# define ASN1_R_NESTED_ASN1_STRING 197 +# define ASN1_R_NON_HEX_CHARACTERS 141 +# define ASN1_R_NOT_ASCII_FORMAT 190 +# define ASN1_R_NOT_ENOUGH_DATA 142 +# define ASN1_R_NO_CONTENT_TYPE 204 +# define ASN1_R_NO_MATCHING_CHOICE_TYPE 143 +# define ASN1_R_NO_MULTIPART_BODY_FAILURE 205 +# define ASN1_R_NO_MULTIPART_BOUNDARY 206 +# define ASN1_R_NO_SIG_CONTENT_TYPE 207 +# define ASN1_R_NULL_IS_WRONG_LENGTH 144 +# define ASN1_R_OBJECT_NOT_ASCII_FORMAT 191 +# define ASN1_R_ODD_NUMBER_OF_CHARS 145 +# define ASN1_R_PRIVATE_KEY_HEADER_MISSING 146 +# define ASN1_R_SECOND_NUMBER_TOO_LARGE 147 +# define ASN1_R_SEQUENCE_LENGTH_MISMATCH 148 +# define ASN1_R_SEQUENCE_NOT_CONSTRUCTED 149 +# define ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG 192 +# define ASN1_R_SHORT_LINE 150 +# define ASN1_R_SIG_INVALID_MIME_TYPE 208 +# define ASN1_R_STREAMING_NOT_SUPPORTED 209 +# define ASN1_R_STRING_TOO_LONG 151 +# define ASN1_R_STRING_TOO_SHORT 152 +# define ASN1_R_TAG_VALUE_TOO_HIGH 153 +# define ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 154 +# define ASN1_R_TIME_NOT_ASCII_FORMAT 193 +# define ASN1_R_TOO_LONG 155 +# define ASN1_R_TYPE_NOT_CONSTRUCTED 156 +# define ASN1_R_TYPE_NOT_PRIMITIVE 218 +# define ASN1_R_UNABLE_TO_DECODE_RSA_KEY 157 +# define ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY 158 +# define ASN1_R_UNEXPECTED_EOC 159 +# define ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH 211 +# define ASN1_R_UNKNOWN_FORMAT 160 +# define ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM 161 +# define ASN1_R_UNKNOWN_OBJECT_TYPE 162 +# define ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE 163 +# define ASN1_R_UNKNOWN_TAG 194 +# define ASN1_R_UNKOWN_FORMAT 195 +# define ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE 164 +# define ASN1_R_UNSUPPORTED_CIPHER 165 +# define ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM 166 +# define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE 167 +# define ASN1_R_UNSUPPORTED_TYPE 196 +# define ASN1_R_WRONG_TAG 168 +# define ASN1_R_WRONG_TYPE 169 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/asn1_mac.h b/CryptoPkg/Include/openssl/asn1_mac.h new file mode 100644 index 0000000..4aa6af8 --- /dev/null +++ b/CryptoPkg/Include/openssl/asn1_mac.h @@ -0,0 +1,572 @@ +/* crypto/asn1/asn1_mac.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_ASN1_MAC_H +# define HEADER_ASN1_MAC_H + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +# ifndef ASN1_MAC_ERR_LIB +# define ASN1_MAC_ERR_LIB ERR_LIB_ASN1 +# endif + +# define ASN1_MAC_H_err(f,r,line) \ + ERR_PUT_error(ASN1_MAC_ERR_LIB,(f),(r),__FILE__,(line)) + +# define M_ASN1_D2I_vars(a,type,func) \ + ASN1_const_CTX c; \ + type ret=NULL; \ + \ + c.pp=(const unsigned char **)pp; \ + c.q= *(const unsigned char **)pp; \ + c.error=ERR_R_NESTED_ASN1_ERROR; \ + if ((a == NULL) || ((*a) == NULL)) \ + { if ((ret=(type)func()) == NULL) \ + { c.line=__LINE__; goto err; } } \ + else ret=(*a); + +# define M_ASN1_D2I_Init() \ + c.p= *(const unsigned char **)pp; \ + c.max=(length == 0)?0:(c.p+length); + +# define M_ASN1_D2I_Finish_2(a) \ + if (!asn1_const_Finish(&c)) \ + { c.line=__LINE__; goto err; } \ + *(const unsigned char **)pp=c.p; \ + if (a != NULL) (*a)=ret; \ + return(ret); + +# define M_ASN1_D2I_Finish(a,func,e) \ + M_ASN1_D2I_Finish_2(a); \ +err:\ + ASN1_MAC_H_err((e),c.error,c.line); \ + asn1_add_error(*(const unsigned char **)pp,(int)(c.q- *pp)); \ + if ((ret != NULL) && ((a == NULL) || (*a != ret))) func(ret); \ + return(NULL) + +# define M_ASN1_D2I_start_sequence() \ + if (!asn1_GetSequence(&c,&length)) \ + { c.line=__LINE__; goto err; } +/* Begin reading ASN1 without a surrounding sequence */ +# define M_ASN1_D2I_begin() \ + c.slen = length; + +/* End reading ASN1 with no check on length */ +# define M_ASN1_D2I_Finish_nolen(a, func, e) \ + *pp=c.p; \ + if (a != NULL) (*a)=ret; \ + return(ret); \ +err:\ + ASN1_MAC_H_err((e),c.error,c.line); \ + asn1_add_error(*pp,(int)(c.q- *pp)); \ + if ((ret != NULL) && ((a == NULL) || (*a != ret))) func(ret); \ + return(NULL) + +# define M_ASN1_D2I_end_sequence() \ + (((c.inf&1) == 0)?(c.slen <= 0): \ + (c.eos=ASN1_const_check_infinite_end(&c.p,c.slen))) + +/* Don't use this with d2i_ASN1_BOOLEAN() */ +# define M_ASN1_D2I_get(b, func) \ + c.q=c.p; \ + if (func(&(b),&c.p,c.slen) == NULL) \ + {c.line=__LINE__; goto err; } \ + c.slen-=(c.p-c.q); + +/* Don't use this with d2i_ASN1_BOOLEAN() */ +# define M_ASN1_D2I_get_x(type,b,func) \ + c.q=c.p; \ + if (((D2I_OF(type))func)(&(b),&c.p,c.slen) == NULL) \ + {c.line=__LINE__; goto err; } \ + c.slen-=(c.p-c.q); + +/* use this instead () */ +# define M_ASN1_D2I_get_int(b,func) \ + c.q=c.p; \ + if (func(&(b),&c.p,c.slen) < 0) \ + {c.line=__LINE__; goto err; } \ + c.slen-=(c.p-c.q); + +# define M_ASN1_D2I_get_opt(b,func,type) \ + if ((c.slen != 0) && ((M_ASN1_next & (~V_ASN1_CONSTRUCTED)) \ + == (V_ASN1_UNIVERSAL|(type)))) \ + { \ + M_ASN1_D2I_get(b,func); \ + } + +# define M_ASN1_D2I_get_imp(b,func, type) \ + M_ASN1_next=(_tmp& V_ASN1_CONSTRUCTED)|type; \ + c.q=c.p; \ + if (func(&(b),&c.p,c.slen) == NULL) \ + {c.line=__LINE__; M_ASN1_next_prev = _tmp; goto err; } \ + c.slen-=(c.p-c.q);\ + M_ASN1_next_prev=_tmp; + +# define M_ASN1_D2I_get_IMP_opt(b,func,tag,type) \ + if ((c.slen != 0) && ((M_ASN1_next & (~V_ASN1_CONSTRUCTED)) == \ + (V_ASN1_CONTEXT_SPECIFIC|(tag)))) \ + { \ + unsigned char _tmp = M_ASN1_next; \ + M_ASN1_D2I_get_imp(b,func, type);\ + } + +# define M_ASN1_D2I_get_set(r,func,free_func) \ + M_ASN1_D2I_get_imp_set(r,func,free_func, \ + V_ASN1_SET,V_ASN1_UNIVERSAL); + +# define M_ASN1_D2I_get_set_type(type,r,func,free_func) \ + M_ASN1_D2I_get_imp_set_type(type,r,func,free_func, \ + V_ASN1_SET,V_ASN1_UNIVERSAL); + +# define M_ASN1_D2I_get_set_opt(r,func,free_func) \ + if ((c.slen != 0) && (M_ASN1_next == (V_ASN1_UNIVERSAL| \ + V_ASN1_CONSTRUCTED|V_ASN1_SET)))\ + { M_ASN1_D2I_get_set(r,func,free_func); } + +# define M_ASN1_D2I_get_set_opt_type(type,r,func,free_func) \ + if ((c.slen != 0) && (M_ASN1_next == (V_ASN1_UNIVERSAL| \ + V_ASN1_CONSTRUCTED|V_ASN1_SET)))\ + { M_ASN1_D2I_get_set_type(type,r,func,free_func); } + +# define M_ASN1_I2D_len_SET_opt(a,f) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + M_ASN1_I2D_len_SET(a,f); + +# define M_ASN1_I2D_put_SET_opt(a,f) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + M_ASN1_I2D_put_SET(a,f); + +# define M_ASN1_I2D_put_SEQUENCE_opt(a,f) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + M_ASN1_I2D_put_SEQUENCE(a,f); + +# define M_ASN1_I2D_put_SEQUENCE_opt_type(type,a,f) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + M_ASN1_I2D_put_SEQUENCE_type(type,a,f); + +# define M_ASN1_D2I_get_IMP_set_opt(b,func,free_func,tag) \ + if ((c.slen != 0) && \ + (M_ASN1_next == \ + (V_ASN1_CONTEXT_SPECIFIC|V_ASN1_CONSTRUCTED|(tag))))\ + { \ + M_ASN1_D2I_get_imp_set(b,func,free_func,\ + tag,V_ASN1_CONTEXT_SPECIFIC); \ + } + +# define M_ASN1_D2I_get_IMP_set_opt_type(type,b,func,free_func,tag) \ + if ((c.slen != 0) && \ + (M_ASN1_next == \ + (V_ASN1_CONTEXT_SPECIFIC|V_ASN1_CONSTRUCTED|(tag))))\ + { \ + M_ASN1_D2I_get_imp_set_type(type,b,func,free_func,\ + tag,V_ASN1_CONTEXT_SPECIFIC); \ + } + +# define M_ASN1_D2I_get_seq(r,func,free_func) \ + M_ASN1_D2I_get_imp_set(r,func,free_func,\ + V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL); + +# define M_ASN1_D2I_get_seq_type(type,r,func,free_func) \ + M_ASN1_D2I_get_imp_set_type(type,r,func,free_func,\ + V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL) + +# define M_ASN1_D2I_get_seq_opt(r,func,free_func) \ + if ((c.slen != 0) && (M_ASN1_next == (V_ASN1_UNIVERSAL| \ + V_ASN1_CONSTRUCTED|V_ASN1_SEQUENCE)))\ + { M_ASN1_D2I_get_seq(r,func,free_func); } + +# define M_ASN1_D2I_get_seq_opt_type(type,r,func,free_func) \ + if ((c.slen != 0) && (M_ASN1_next == (V_ASN1_UNIVERSAL| \ + V_ASN1_CONSTRUCTED|V_ASN1_SEQUENCE)))\ + { M_ASN1_D2I_get_seq_type(type,r,func,free_func); } + +# define M_ASN1_D2I_get_IMP_set(r,func,free_func,x) \ + M_ASN1_D2I_get_imp_set(r,func,free_func,\ + x,V_ASN1_CONTEXT_SPECIFIC); + +# define M_ASN1_D2I_get_IMP_set_type(type,r,func,free_func,x) \ + M_ASN1_D2I_get_imp_set_type(type,r,func,free_func,\ + x,V_ASN1_CONTEXT_SPECIFIC); + +# define M_ASN1_D2I_get_imp_set(r,func,free_func,a,b) \ + c.q=c.p; \ + if (d2i_ASN1_SET(&(r),&c.p,c.slen,(char *(*)())func,\ + (void (*)())free_func,a,b) == NULL) \ + { c.line=__LINE__; goto err; } \ + c.slen-=(c.p-c.q); + +# define M_ASN1_D2I_get_imp_set_type(type,r,func,free_func,a,b) \ + c.q=c.p; \ + if (d2i_ASN1_SET_OF_##type(&(r),&c.p,c.slen,func,\ + free_func,a,b) == NULL) \ + { c.line=__LINE__; goto err; } \ + c.slen-=(c.p-c.q); + +# define M_ASN1_D2I_get_set_strings(r,func,a,b) \ + c.q=c.p; \ + if (d2i_ASN1_STRING_SET(&(r),&c.p,c.slen,a,b) == NULL) \ + { c.line=__LINE__; goto err; } \ + c.slen-=(c.p-c.q); + +# define M_ASN1_D2I_get_EXP_opt(r,func,tag) \ + if ((c.slen != 0L) && (M_ASN1_next == \ + (V_ASN1_CONSTRUCTED|V_ASN1_CONTEXT_SPECIFIC|tag))) \ + { \ + int Tinf,Ttag,Tclass; \ + long Tlen; \ + \ + c.q=c.p; \ + Tinf=ASN1_get_object(&c.p,&Tlen,&Ttag,&Tclass,c.slen); \ + if (Tinf & 0x80) \ + { c.error=ERR_R_BAD_ASN1_OBJECT_HEADER; \ + c.line=__LINE__; goto err; } \ + if (Tinf == (V_ASN1_CONSTRUCTED+1)) \ + Tlen = c.slen - (c.p - c.q) - 2; \ + if (func(&(r),&c.p,Tlen) == NULL) \ + { c.line=__LINE__; goto err; } \ + if (Tinf == (V_ASN1_CONSTRUCTED+1)) { \ + Tlen = c.slen - (c.p - c.q); \ + if(!ASN1_const_check_infinite_end(&c.p, Tlen)) \ + { c.error=ERR_R_MISSING_ASN1_EOS; \ + c.line=__LINE__; goto err; } \ + }\ + c.slen-=(c.p-c.q); \ + } + +# define M_ASN1_D2I_get_EXP_set_opt(r,func,free_func,tag,b) \ + if ((c.slen != 0) && (M_ASN1_next == \ + (V_ASN1_CONSTRUCTED|V_ASN1_CONTEXT_SPECIFIC|tag))) \ + { \ + int Tinf,Ttag,Tclass; \ + long Tlen; \ + \ + c.q=c.p; \ + Tinf=ASN1_get_object(&c.p,&Tlen,&Ttag,&Tclass,c.slen); \ + if (Tinf & 0x80) \ + { c.error=ERR_R_BAD_ASN1_OBJECT_HEADER; \ + c.line=__LINE__; goto err; } \ + if (Tinf == (V_ASN1_CONSTRUCTED+1)) \ + Tlen = c.slen - (c.p - c.q) - 2; \ + if (d2i_ASN1_SET(&(r),&c.p,Tlen,(char *(*)())func, \ + (void (*)())free_func, \ + b,V_ASN1_UNIVERSAL) == NULL) \ + { c.line=__LINE__; goto err; } \ + if (Tinf == (V_ASN1_CONSTRUCTED+1)) { \ + Tlen = c.slen - (c.p - c.q); \ + if(!ASN1_check_infinite_end(&c.p, Tlen)) \ + { c.error=ERR_R_MISSING_ASN1_EOS; \ + c.line=__LINE__; goto err; } \ + }\ + c.slen-=(c.p-c.q); \ + } + +# define M_ASN1_D2I_get_EXP_set_opt_type(type,r,func,free_func,tag,b) \ + if ((c.slen != 0) && (M_ASN1_next == \ + (V_ASN1_CONSTRUCTED|V_ASN1_CONTEXT_SPECIFIC|tag))) \ + { \ + int Tinf,Ttag,Tclass; \ + long Tlen; \ + \ + c.q=c.p; \ + Tinf=ASN1_get_object(&c.p,&Tlen,&Ttag,&Tclass,c.slen); \ + if (Tinf & 0x80) \ + { c.error=ERR_R_BAD_ASN1_OBJECT_HEADER; \ + c.line=__LINE__; goto err; } \ + if (Tinf == (V_ASN1_CONSTRUCTED+1)) \ + Tlen = c.slen - (c.p - c.q) - 2; \ + if (d2i_ASN1_SET_OF_##type(&(r),&c.p,Tlen,func, \ + free_func,b,V_ASN1_UNIVERSAL) == NULL) \ + { c.line=__LINE__; goto err; } \ + if (Tinf == (V_ASN1_CONSTRUCTED+1)) { \ + Tlen = c.slen - (c.p - c.q); \ + if(!ASN1_check_infinite_end(&c.p, Tlen)) \ + { c.error=ERR_R_MISSING_ASN1_EOS; \ + c.line=__LINE__; goto err; } \ + }\ + c.slen-=(c.p-c.q); \ + } + +/* New macros */ +# define M_ASN1_New_Malloc(ret,type) \ + if ((ret=(type *)OPENSSL_malloc(sizeof(type))) == NULL) \ + { c.line=__LINE__; goto err2; } + +# define M_ASN1_New(arg,func) \ + if (((arg)=func()) == NULL) return(NULL) + +# define M_ASN1_New_Error(a) \ +/*- err: ASN1_MAC_H_err((a),ERR_R_NESTED_ASN1_ERROR,c.line); \ + return(NULL);*/ \ + err2: ASN1_MAC_H_err((a),ERR_R_MALLOC_FAILURE,c.line); \ + return(NULL) + +/* + * BIG UGLY WARNING! This is so damn ugly I wanna puke. Unfortunately, some + * macros that use ASN1_const_CTX still insist on writing in the input + * stream. ARGH! ARGH! ARGH! Let's get rid of this macro package. Please? -- + * Richard Levitte + */ +# define M_ASN1_next (*((unsigned char *)(c.p))) +# define M_ASN1_next_prev (*((unsigned char *)(c.q))) + +/*************************************************/ + +# define M_ASN1_I2D_vars(a) int r=0,ret=0; \ + unsigned char *p; \ + if (a == NULL) return(0) + +/* Length Macros */ +# define M_ASN1_I2D_len(a,f) ret+=f(a,NULL) +# define M_ASN1_I2D_len_IMP_opt(a,f) if (a != NULL) M_ASN1_I2D_len(a,f) + +# define M_ASN1_I2D_len_SET(a,f) \ + ret+=i2d_ASN1_SET(a,NULL,f,V_ASN1_SET,V_ASN1_UNIVERSAL,IS_SET); + +# define M_ASN1_I2D_len_SET_type(type,a,f) \ + ret+=i2d_ASN1_SET_OF_##type(a,NULL,f,V_ASN1_SET, \ + V_ASN1_UNIVERSAL,IS_SET); + +# define M_ASN1_I2D_len_SEQUENCE(a,f) \ + ret+=i2d_ASN1_SET(a,NULL,f,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL, \ + IS_SEQUENCE); + +# define M_ASN1_I2D_len_SEQUENCE_type(type,a,f) \ + ret+=i2d_ASN1_SET_OF_##type(a,NULL,f,V_ASN1_SEQUENCE, \ + V_ASN1_UNIVERSAL,IS_SEQUENCE) + +# define M_ASN1_I2D_len_SEQUENCE_opt(a,f) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + M_ASN1_I2D_len_SEQUENCE(a,f); + +# define M_ASN1_I2D_len_SEQUENCE_opt_type(type,a,f) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + M_ASN1_I2D_len_SEQUENCE_type(type,a,f); + +# define M_ASN1_I2D_len_IMP_SET(a,f,x) \ + ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC,IS_SET); + +# define M_ASN1_I2D_len_IMP_SET_type(type,a,f,x) \ + ret+=i2d_ASN1_SET_OF_##type(a,NULL,f,x, \ + V_ASN1_CONTEXT_SPECIFIC,IS_SET); + +# define M_ASN1_I2D_len_IMP_SET_opt(a,f,x) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC, \ + IS_SET); + +# define M_ASN1_I2D_len_IMP_SET_opt_type(type,a,f,x) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + ret+=i2d_ASN1_SET_OF_##type(a,NULL,f,x, \ + V_ASN1_CONTEXT_SPECIFIC,IS_SET); + +# define M_ASN1_I2D_len_IMP_SEQUENCE(a,f,x) \ + ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC, \ + IS_SEQUENCE); + +# define M_ASN1_I2D_len_IMP_SEQUENCE_opt(a,f,x) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + ret+=i2d_ASN1_SET(a,NULL,f,x,V_ASN1_CONTEXT_SPECIFIC, \ + IS_SEQUENCE); + +# define M_ASN1_I2D_len_IMP_SEQUENCE_opt_type(type,a,f,x) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + ret+=i2d_ASN1_SET_OF_##type(a,NULL,f,x, \ + V_ASN1_CONTEXT_SPECIFIC, \ + IS_SEQUENCE); + +# define M_ASN1_I2D_len_EXP_opt(a,f,mtag,v) \ + if (a != NULL)\ + { \ + v=f(a,NULL); \ + ret+=ASN1_object_size(1,v,mtag); \ + } + +# define M_ASN1_I2D_len_EXP_SET_opt(a,f,mtag,tag,v) \ + if ((a != NULL) && (sk_num(a) != 0))\ + { \ + v=i2d_ASN1_SET(a,NULL,f,tag,V_ASN1_UNIVERSAL,IS_SET); \ + ret+=ASN1_object_size(1,v,mtag); \ + } + +# define M_ASN1_I2D_len_EXP_SEQUENCE_opt(a,f,mtag,tag,v) \ + if ((a != NULL) && (sk_num(a) != 0))\ + { \ + v=i2d_ASN1_SET(a,NULL,f,tag,V_ASN1_UNIVERSAL, \ + IS_SEQUENCE); \ + ret+=ASN1_object_size(1,v,mtag); \ + } + +# define M_ASN1_I2D_len_EXP_SEQUENCE_opt_type(type,a,f,mtag,tag,v) \ + if ((a != NULL) && (sk_##type##_num(a) != 0))\ + { \ + v=i2d_ASN1_SET_OF_##type(a,NULL,f,tag, \ + V_ASN1_UNIVERSAL, \ + IS_SEQUENCE); \ + ret+=ASN1_object_size(1,v,mtag); \ + } + +/* Put Macros */ +# define M_ASN1_I2D_put(a,f) f(a,&p) + +# define M_ASN1_I2D_put_IMP_opt(a,f,t) \ + if (a != NULL) \ + { \ + unsigned char *q=p; \ + f(a,&p); \ + *q=(V_ASN1_CONTEXT_SPECIFIC|t|(*q&V_ASN1_CONSTRUCTED));\ + } + +# define M_ASN1_I2D_put_SET(a,f) i2d_ASN1_SET(a,&p,f,V_ASN1_SET,\ + V_ASN1_UNIVERSAL,IS_SET) +# define M_ASN1_I2D_put_SET_type(type,a,f) \ + i2d_ASN1_SET_OF_##type(a,&p,f,V_ASN1_SET,V_ASN1_UNIVERSAL,IS_SET) +# define M_ASN1_I2D_put_IMP_SET(a,f,x) i2d_ASN1_SET(a,&p,f,x,\ + V_ASN1_CONTEXT_SPECIFIC,IS_SET) +# define M_ASN1_I2D_put_IMP_SET_type(type,a,f,x) \ + i2d_ASN1_SET_OF_##type(a,&p,f,x,V_ASN1_CONTEXT_SPECIFIC,IS_SET) +# define M_ASN1_I2D_put_IMP_SEQUENCE(a,f,x) i2d_ASN1_SET(a,&p,f,x,\ + V_ASN1_CONTEXT_SPECIFIC,IS_SEQUENCE) + +# define M_ASN1_I2D_put_SEQUENCE(a,f) i2d_ASN1_SET(a,&p,f,V_ASN1_SEQUENCE,\ + V_ASN1_UNIVERSAL,IS_SEQUENCE) + +# define M_ASN1_I2D_put_SEQUENCE_type(type,a,f) \ + i2d_ASN1_SET_OF_##type(a,&p,f,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL, \ + IS_SEQUENCE) + +# define M_ASN1_I2D_put_SEQUENCE_opt(a,f) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + M_ASN1_I2D_put_SEQUENCE(a,f); + +# define M_ASN1_I2D_put_IMP_SET_opt(a,f,x) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + { i2d_ASN1_SET(a,&p,f,x,V_ASN1_CONTEXT_SPECIFIC, \ + IS_SET); } + +# define M_ASN1_I2D_put_IMP_SET_opt_type(type,a,f,x) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + { i2d_ASN1_SET_OF_##type(a,&p,f,x, \ + V_ASN1_CONTEXT_SPECIFIC, \ + IS_SET); } + +# define M_ASN1_I2D_put_IMP_SEQUENCE_opt(a,f,x) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + { i2d_ASN1_SET(a,&p,f,x,V_ASN1_CONTEXT_SPECIFIC, \ + IS_SEQUENCE); } + +# define M_ASN1_I2D_put_IMP_SEQUENCE_opt_type(type,a,f,x) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + { i2d_ASN1_SET_OF_##type(a,&p,f,x, \ + V_ASN1_CONTEXT_SPECIFIC, \ + IS_SEQUENCE); } + +# define M_ASN1_I2D_put_EXP_opt(a,f,tag,v) \ + if (a != NULL) \ + { \ + ASN1_put_object(&p,1,v,tag,V_ASN1_CONTEXT_SPECIFIC); \ + f(a,&p); \ + } + +# define M_ASN1_I2D_put_EXP_SET_opt(a,f,mtag,tag,v) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + { \ + ASN1_put_object(&p,1,v,mtag,V_ASN1_CONTEXT_SPECIFIC); \ + i2d_ASN1_SET(a,&p,f,tag,V_ASN1_UNIVERSAL,IS_SET); \ + } + +# define M_ASN1_I2D_put_EXP_SEQUENCE_opt(a,f,mtag,tag,v) \ + if ((a != NULL) && (sk_num(a) != 0)) \ + { \ + ASN1_put_object(&p,1,v,mtag,V_ASN1_CONTEXT_SPECIFIC); \ + i2d_ASN1_SET(a,&p,f,tag,V_ASN1_UNIVERSAL,IS_SEQUENCE); \ + } + +# define M_ASN1_I2D_put_EXP_SEQUENCE_opt_type(type,a,f,mtag,tag,v) \ + if ((a != NULL) && (sk_##type##_num(a) != 0)) \ + { \ + ASN1_put_object(&p,1,v,mtag,V_ASN1_CONTEXT_SPECIFIC); \ + i2d_ASN1_SET_OF_##type(a,&p,f,tag,V_ASN1_UNIVERSAL, \ + IS_SEQUENCE); \ + } + +# define M_ASN1_I2D_seq_total() \ + r=ASN1_object_size(1,ret,V_ASN1_SEQUENCE); \ + if (pp == NULL) return(r); \ + p= *pp; \ + ASN1_put_object(&p,1,ret,V_ASN1_SEQUENCE,V_ASN1_UNIVERSAL) + +# define M_ASN1_I2D_INF_seq_start(tag,ctx) \ + *(p++)=(V_ASN1_CONSTRUCTED|(tag)|(ctx)); \ + *(p++)=0x80 + +# define M_ASN1_I2D_INF_seq_end() *(p++)=0x00; *(p++)=0x00 + +# define M_ASN1_I2D_finish() *pp=p; \ + return(r); + +int asn1_GetSequence(ASN1_const_CTX *c, long *length); +void asn1_add_error(const unsigned char *address, int offset); +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/asn1t.h b/CryptoPkg/Include/openssl/asn1t.h new file mode 100644 index 0000000..0a868ac --- /dev/null +++ b/CryptoPkg/Include/openssl/asn1t.h @@ -0,0 +1,904 @@ +/* asn1t.h */ +/* + * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project + * 2000. + */ +/* ==================================================================== + * Copyright (c) 2000 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * licensing@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ +#ifndef HEADER_ASN1T_H +# define HEADER_ASN1T_H + +# include +# include +# include + +# ifdef OPENSSL_BUILD_SHLIBCRYPTO +# undef OPENSSL_EXTERN +# define OPENSSL_EXTERN OPENSSL_EXPORT +# endif + +/* ASN1 template defines, structures and functions */ + +#ifdef __cplusplus +extern "C" { +#endif + +# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION + +/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */ +# define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr)) + +/* Macros for start and end of ASN1_ITEM definition */ + +# define ASN1_ITEM_start(itname) \ + OPENSSL_GLOBAL const ASN1_ITEM itname##_it = { + +# define ASN1_ITEM_end(itname) \ + }; + +# else + +/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */ +# define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr())) + +/* Macros for start and end of ASN1_ITEM definition */ + +# define ASN1_ITEM_start(itname) \ + const ASN1_ITEM * itname##_it(void) \ + { \ + static const ASN1_ITEM local_it = { + +# define ASN1_ITEM_end(itname) \ + }; \ + return &local_it; \ + } + +# endif + +/* Macros to aid ASN1 template writing */ + +# define ASN1_ITEM_TEMPLATE(tname) \ + static const ASN1_TEMPLATE tname##_item_tt + +# define ASN1_ITEM_TEMPLATE_END(tname) \ + ;\ + ASN1_ITEM_start(tname) \ + ASN1_ITYPE_PRIMITIVE,\ + -1,\ + &tname##_item_tt,\ + 0,\ + NULL,\ + 0,\ + #tname \ + ASN1_ITEM_end(tname) + +/* This is a ASN1 type which just embeds a template */ + +/*- + * This pair helps declare a SEQUENCE. We can do: + * + * ASN1_SEQUENCE(stname) = { + * ... SEQUENCE components ... + * } ASN1_SEQUENCE_END(stname) + * + * This will produce an ASN1_ITEM called stname_it + * for a structure called stname. + * + * If you want the same structure but a different + * name then use: + * + * ASN1_SEQUENCE(itname) = { + * ... SEQUENCE components ... + * } ASN1_SEQUENCE_END_name(stname, itname) + * + * This will create an item called itname_it using + * a structure called stname. + */ + +# define ASN1_SEQUENCE(tname) \ + static const ASN1_TEMPLATE tname##_seq_tt[] + +# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname) + +# define ASN1_SEQUENCE_END_name(stname, tname) \ + ;\ + ASN1_ITEM_start(tname) \ + ASN1_ITYPE_SEQUENCE,\ + V_ASN1_SEQUENCE,\ + tname##_seq_tt,\ + sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\ + NULL,\ + sizeof(stname),\ + #stname \ + ASN1_ITEM_end(tname) + +# define ASN1_NDEF_SEQUENCE(tname) \ + ASN1_SEQUENCE(tname) + +# define ASN1_NDEF_SEQUENCE_cb(tname, cb) \ + ASN1_SEQUENCE_cb(tname, cb) + +# define ASN1_SEQUENCE_cb(tname, cb) \ + static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \ + ASN1_SEQUENCE(tname) + +# define ASN1_BROKEN_SEQUENCE(tname) \ + static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \ + ASN1_SEQUENCE(tname) + +# define ASN1_SEQUENCE_ref(tname, cb, lck) \ + static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), lck, cb, 0}; \ + ASN1_SEQUENCE(tname) + +# define ASN1_SEQUENCE_enc(tname, enc, cb) \ + static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc)}; \ + ASN1_SEQUENCE(tname) + +# define ASN1_NDEF_SEQUENCE_END(tname) \ + ;\ + ASN1_ITEM_start(tname) \ + ASN1_ITYPE_NDEF_SEQUENCE,\ + V_ASN1_SEQUENCE,\ + tname##_seq_tt,\ + sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\ + NULL,\ + sizeof(tname),\ + #tname \ + ASN1_ITEM_end(tname) + +# define ASN1_BROKEN_SEQUENCE_END(stname) ASN1_SEQUENCE_END_ref(stname, stname) + +# define ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname) + +# define ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname) + +# define ASN1_SEQUENCE_END_ref(stname, tname) \ + ;\ + ASN1_ITEM_start(tname) \ + ASN1_ITYPE_SEQUENCE,\ + V_ASN1_SEQUENCE,\ + tname##_seq_tt,\ + sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\ + &tname##_aux,\ + sizeof(stname),\ + #stname \ + ASN1_ITEM_end(tname) + +/*- + * This pair helps declare a CHOICE type. We can do: + * + * ASN1_CHOICE(chname) = { + * ... CHOICE options ... + * ASN1_CHOICE_END(chname) + * + * This will produce an ASN1_ITEM called chname_it + * for a structure called chname. The structure + * definition must look like this: + * typedef struct { + * int type; + * union { + * ASN1_SOMETHING *opt1; + * ASN1_SOMEOTHER *opt2; + * } value; + * } chname; + * + * the name of the selector must be 'type'. + * to use an alternative selector name use the + * ASN1_CHOICE_END_selector() version. + */ + +# define ASN1_CHOICE(tname) \ + static const ASN1_TEMPLATE tname##_ch_tt[] + +# define ASN1_CHOICE_cb(tname, cb) \ + static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \ + ASN1_CHOICE(tname) + +# define ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname) + +# define ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type) + +# define ASN1_CHOICE_END_selector(stname, tname, selname) \ + ;\ + ASN1_ITEM_start(tname) \ + ASN1_ITYPE_CHOICE,\ + offsetof(stname,selname) ,\ + tname##_ch_tt,\ + sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\ + NULL,\ + sizeof(stname),\ + #stname \ + ASN1_ITEM_end(tname) + +# define ASN1_CHOICE_END_cb(stname, tname, selname) \ + ;\ + ASN1_ITEM_start(tname) \ + ASN1_ITYPE_CHOICE,\ + offsetof(stname,selname) ,\ + tname##_ch_tt,\ + sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\ + &tname##_aux,\ + sizeof(stname),\ + #stname \ + ASN1_ITEM_end(tname) + +/* This helps with the template wrapper form of ASN1_ITEM */ + +# define ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \ + (flags), (tag), 0,\ + #name, ASN1_ITEM_ref(type) } + +/* These help with SEQUENCE or CHOICE components */ + +/* used to declare other types */ + +# define ASN1_EX_TYPE(flags, tag, stname, field, type) { \ + (flags), (tag), offsetof(stname, field),\ + #field, ASN1_ITEM_ref(type) } + +/* used when the structure is combined with the parent */ + +# define ASN1_EX_COMBINE(flags, tag, type) { \ + (flags)|ASN1_TFLG_COMBINE, (tag), 0, NULL, ASN1_ITEM_ref(type) } + +/* implicit and explicit helper macros */ + +# define ASN1_IMP_EX(stname, field, type, tag, ex) \ + ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | ex, tag, stname, field, type) + +# define ASN1_EXP_EX(stname, field, type, tag, ex) \ + ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | ex, tag, stname, field, type) + +/* Any defined by macros: the field used is in the table itself */ + +# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION +# define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) } +# define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) } +# else +# define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb } +# define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb } +# endif +/* Plain simple type */ +# define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type) + +/* OPTIONAL simple type */ +# define ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type) + +/* IMPLICIT tagged simple type */ +# define ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0) + +/* IMPLICIT tagged OPTIONAL simple type */ +# define ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL) + +/* Same as above but EXPLICIT */ + +# define ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0) +# define ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL) + +/* SEQUENCE OF type */ +# define ASN1_SEQUENCE_OF(stname, field, type) \ + ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type) + +/* OPTIONAL SEQUENCE OF */ +# define ASN1_SEQUENCE_OF_OPT(stname, field, type) \ + ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type) + +/* Same as above but for SET OF */ + +# define ASN1_SET_OF(stname, field, type) \ + ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type) + +# define ASN1_SET_OF_OPT(stname, field, type) \ + ASN1_EX_TYPE(ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type) + +/* Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL */ + +# define ASN1_IMP_SET_OF(stname, field, type, tag) \ + ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF) + +# define ASN1_EXP_SET_OF(stname, field, type, tag) \ + ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF) + +# define ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \ + ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL) + +# define ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \ + ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL) + +# define ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \ + ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF) + +# define ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \ + ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL) + +# define ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \ + ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF) + +# define ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \ + ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL) + +/* EXPLICIT using indefinite length constructed form */ +# define ASN1_NDEF_EXP(stname, field, type, tag) \ + ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF) + +/* EXPLICIT OPTIONAL using indefinite length constructed form */ +# define ASN1_NDEF_EXP_OPT(stname, field, type, tag) \ + ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_NDEF) + +/* Macros for the ASN1_ADB structure */ + +# define ASN1_ADB(name) \ + static const ASN1_ADB_TABLE name##_adbtbl[] + +# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION + +# define ASN1_ADB_END(name, flags, field, app_table, def, none) \ + ;\ + static const ASN1_ADB name##_adb = {\ + flags,\ + offsetof(name, field),\ + app_table,\ + name##_adbtbl,\ + sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\ + def,\ + none\ + } + +# else + +# define ASN1_ADB_END(name, flags, field, app_table, def, none) \ + ;\ + static const ASN1_ITEM *name##_adb(void) \ + { \ + static const ASN1_ADB internal_adb = \ + {\ + flags,\ + offsetof(name, field),\ + app_table,\ + name##_adbtbl,\ + sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\ + def,\ + none\ + }; \ + return (const ASN1_ITEM *) &internal_adb; \ + } \ + void dummy_function(void) + +# endif + +# define ADB_ENTRY(val, template) {val, template} + +# define ASN1_ADB_TEMPLATE(name) \ + static const ASN1_TEMPLATE name##_tt + +/* + * This is the ASN1 template structure that defines a wrapper round the + * actual type. It determines the actual position of the field in the value + * structure, various flags such as OPTIONAL and the field name. + */ + +struct ASN1_TEMPLATE_st { + unsigned long flags; /* Various flags */ + long tag; /* tag, not used if no tagging */ + unsigned long offset; /* Offset of this field in structure */ +# ifndef NO_ASN1_FIELD_NAMES + const char *field_name; /* Field name */ +# endif + ASN1_ITEM_EXP *item; /* Relevant ASN1_ITEM or ASN1_ADB */ +}; + +/* Macro to extract ASN1_ITEM and ASN1_ADB pointer from ASN1_TEMPLATE */ + +# define ASN1_TEMPLATE_item(t) (t->item_ptr) +# define ASN1_TEMPLATE_adb(t) (t->item_ptr) + +typedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE; +typedef struct ASN1_ADB_st ASN1_ADB; + +struct ASN1_ADB_st { + unsigned long flags; /* Various flags */ + unsigned long offset; /* Offset of selector field */ + STACK_OF(ASN1_ADB_TABLE) **app_items; /* Application defined items */ + const ASN1_ADB_TABLE *tbl; /* Table of possible types */ + long tblcount; /* Number of entries in tbl */ + const ASN1_TEMPLATE *default_tt; /* Type to use if no match */ + const ASN1_TEMPLATE *null_tt; /* Type to use if selector is NULL */ +}; + +struct ASN1_ADB_TABLE_st { + long value; /* NID for an object or value for an int */ + const ASN1_TEMPLATE tt; /* item for this value */ +}; + +/* template flags */ + +/* Field is optional */ +# define ASN1_TFLG_OPTIONAL (0x1) + +/* Field is a SET OF */ +# define ASN1_TFLG_SET_OF (0x1 << 1) + +/* Field is a SEQUENCE OF */ +# define ASN1_TFLG_SEQUENCE_OF (0x2 << 1) + +/* + * Special case: this refers to a SET OF that will be sorted into DER order + * when encoded *and* the corresponding STACK will be modified to match the + * new order. + */ +# define ASN1_TFLG_SET_ORDER (0x3 << 1) + +/* Mask for SET OF or SEQUENCE OF */ +# define ASN1_TFLG_SK_MASK (0x3 << 1) + +/* + * These flags mean the tag should be taken from the tag field. If EXPLICIT + * then the underlying type is used for the inner tag. + */ + +/* IMPLICIT tagging */ +# define ASN1_TFLG_IMPTAG (0x1 << 3) + +/* EXPLICIT tagging, inner tag from underlying type */ +# define ASN1_TFLG_EXPTAG (0x2 << 3) + +# define ASN1_TFLG_TAG_MASK (0x3 << 3) + +/* context specific IMPLICIT */ +# define ASN1_TFLG_IMPLICIT ASN1_TFLG_IMPTAG|ASN1_TFLG_CONTEXT + +/* context specific EXPLICIT */ +# define ASN1_TFLG_EXPLICIT ASN1_TFLG_EXPTAG|ASN1_TFLG_CONTEXT + +/* + * If tagging is in force these determine the type of tag to use. Otherwise + * the tag is determined by the underlying type. These values reflect the + * actual octet format. + */ + +/* Universal tag */ +# define ASN1_TFLG_UNIVERSAL (0x0<<6) +/* Application tag */ +# define ASN1_TFLG_APPLICATION (0x1<<6) +/* Context specific tag */ +# define ASN1_TFLG_CONTEXT (0x2<<6) +/* Private tag */ +# define ASN1_TFLG_PRIVATE (0x3<<6) + +# define ASN1_TFLG_TAG_CLASS (0x3<<6) + +/* + * These are for ANY DEFINED BY type. In this case the 'item' field points to + * an ASN1_ADB structure which contains a table of values to decode the + * relevant type + */ + +# define ASN1_TFLG_ADB_MASK (0x3<<8) + +# define ASN1_TFLG_ADB_OID (0x1<<8) + +# define ASN1_TFLG_ADB_INT (0x1<<9) + +/* + * This flag means a parent structure is passed instead of the field: this is + * useful is a SEQUENCE is being combined with a CHOICE for example. Since + * this means the structure and item name will differ we need to use the + * ASN1_CHOICE_END_name() macro for example. + */ + +# define ASN1_TFLG_COMBINE (0x1<<10) + +/* + * This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes + * indefinite length constructed encoding to be used if required. + */ + +# define ASN1_TFLG_NDEF (0x1<<11) + +/* This is the actual ASN1 item itself */ + +struct ASN1_ITEM_st { + char itype; /* The item type, primitive, SEQUENCE, CHOICE + * or extern */ + long utype; /* underlying type */ + const ASN1_TEMPLATE *templates; /* If SEQUENCE or CHOICE this contains + * the contents */ + long tcount; /* Number of templates if SEQUENCE or CHOICE */ + const void *funcs; /* functions that handle this type */ + long size; /* Structure size (usually) */ +# ifndef NO_ASN1_FIELD_NAMES + const char *sname; /* Structure name */ +# endif +}; + +/*- + * These are values for the itype field and + * determine how the type is interpreted. + * + * For PRIMITIVE types the underlying type + * determines the behaviour if items is NULL. + * + * Otherwise templates must contain a single + * template and the type is treated in the + * same way as the type specified in the template. + * + * For SEQUENCE types the templates field points + * to the members, the size field is the + * structure size. + * + * For CHOICE types the templates field points + * to each possible member (typically a union) + * and the 'size' field is the offset of the + * selector. + * + * The 'funcs' field is used for application + * specific functions. + * + * For COMPAT types the funcs field gives a + * set of functions that handle this type, this + * supports the old d2i, i2d convention. + * + * The EXTERN type uses a new style d2i/i2d. + * The new style should be used where possible + * because it avoids things like the d2i IMPLICIT + * hack. + * + * MSTRING is a multiple string type, it is used + * for a CHOICE of character strings where the + * actual strings all occupy an ASN1_STRING + * structure. In this case the 'utype' field + * has a special meaning, it is used as a mask + * of acceptable types using the B_ASN1 constants. + * + * NDEF_SEQUENCE is the same as SEQUENCE except + * that it will use indefinite length constructed + * encoding if requested. + * + */ + +# define ASN1_ITYPE_PRIMITIVE 0x0 + +# define ASN1_ITYPE_SEQUENCE 0x1 + +# define ASN1_ITYPE_CHOICE 0x2 + +# define ASN1_ITYPE_COMPAT 0x3 + +# define ASN1_ITYPE_EXTERN 0x4 + +# define ASN1_ITYPE_MSTRING 0x5 + +# define ASN1_ITYPE_NDEF_SEQUENCE 0x6 + +/* + * Cache for ASN1 tag and length, so we don't keep re-reading it for things + * like CHOICE + */ + +struct ASN1_TLC_st { + char valid; /* Values below are valid */ + int ret; /* return value */ + long plen; /* length */ + int ptag; /* class value */ + int pclass; /* class value */ + int hdrlen; /* header length */ +}; + +/* Typedefs for ASN1 function pointers */ + +typedef ASN1_VALUE *ASN1_new_func(void); +typedef void ASN1_free_func(ASN1_VALUE *a); +typedef ASN1_VALUE *ASN1_d2i_func(ASN1_VALUE **a, const unsigned char **in, + long length); +typedef int ASN1_i2d_func(ASN1_VALUE *a, unsigned char **in); + +typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, + const ASN1_ITEM *it, int tag, int aclass, char opt, + ASN1_TLC *ctx); + +typedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out, + const ASN1_ITEM *it, int tag, int aclass); +typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it); +typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it); + +typedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont, + int *putype, const ASN1_ITEM *it); +typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont, + int len, int utype, char *free_cont, + const ASN1_ITEM *it); + +typedef struct ASN1_COMPAT_FUNCS_st { + ASN1_new_func *asn1_new; + ASN1_free_func *asn1_free; + ASN1_d2i_func *asn1_d2i; + ASN1_i2d_func *asn1_i2d; +} ASN1_COMPAT_FUNCS; + +typedef struct ASN1_EXTERN_FUNCS_st { + void *app_data; + ASN1_ex_new_func *asn1_ex_new; + ASN1_ex_free_func *asn1_ex_free; + ASN1_ex_free_func *asn1_ex_clear; + ASN1_ex_d2i *asn1_ex_d2i; + ASN1_ex_i2d *asn1_ex_i2d; +} ASN1_EXTERN_FUNCS; + +typedef struct ASN1_PRIMITIVE_FUNCS_st { + void *app_data; + unsigned long flags; + ASN1_ex_new_func *prim_new; + ASN1_ex_free_func *prim_free; + ASN1_ex_free_func *prim_clear; + ASN1_primitive_c2i *prim_c2i; + ASN1_primitive_i2c *prim_i2c; +} ASN1_PRIMITIVE_FUNCS; + +/* + * This is the ASN1_AUX structure: it handles various miscellaneous + * requirements. For example the use of reference counts and an informational + * callback. The "informational callback" is called at various points during + * the ASN1 encoding and decoding. It can be used to provide minor + * customisation of the structures used. This is most useful where the + * supplied routines *almost* do the right thing but need some extra help at + * a few points. If the callback returns zero then it is assumed a fatal + * error has occurred and the main operation should be abandoned. If major + * changes in the default behaviour are required then an external type is + * more appropriate. + */ + +typedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it); + +typedef struct ASN1_AUX_st { + void *app_data; + int flags; + int ref_offset; /* Offset of reference value */ + int ref_lock; /* Lock type to use */ + ASN1_aux_cb *asn1_cb; + int enc_offset; /* Offset of ASN1_ENCODING structure */ +} ASN1_AUX; + +/* Flags in ASN1_AUX */ + +/* Use a reference count */ +# define ASN1_AFLG_REFCOUNT 1 +/* Save the encoding of structure (useful for signatures) */ +# define ASN1_AFLG_ENCODING 2 +/* The Sequence length is invalid */ +# define ASN1_AFLG_BROKEN 4 + +/* operation values for asn1_cb */ + +# define ASN1_OP_NEW_PRE 0 +# define ASN1_OP_NEW_POST 1 +# define ASN1_OP_FREE_PRE 2 +# define ASN1_OP_FREE_POST 3 +# define ASN1_OP_D2I_PRE 4 +# define ASN1_OP_D2I_POST 5 +# define ASN1_OP_I2D_PRE 6 +# define ASN1_OP_I2D_POST 7 + +/* Macro to implement a primitive type */ +# define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0) +# define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \ + ASN1_ITEM_start(itname) \ + ASN1_ITYPE_PRIMITIVE, V_##vname, NULL, 0, NULL, ex, #itname \ + ASN1_ITEM_end(itname) + +/* Macro to implement a multi string type */ +# define IMPLEMENT_ASN1_MSTRING(itname, mask) \ + ASN1_ITEM_start(itname) \ + ASN1_ITYPE_MSTRING, mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname \ + ASN1_ITEM_end(itname) + +/* Macro to implement an ASN1_ITEM in terms of old style funcs */ + +# define IMPLEMENT_COMPAT_ASN1(sname) IMPLEMENT_COMPAT_ASN1_type(sname, V_ASN1_SEQUENCE) + +# define IMPLEMENT_COMPAT_ASN1_type(sname, tag) \ + static const ASN1_COMPAT_FUNCS sname##_ff = { \ + (ASN1_new_func *)sname##_new, \ + (ASN1_free_func *)sname##_free, \ + (ASN1_d2i_func *)d2i_##sname, \ + (ASN1_i2d_func *)i2d_##sname, \ + }; \ + ASN1_ITEM_start(sname) \ + ASN1_ITYPE_COMPAT, \ + tag, \ + NULL, \ + 0, \ + &sname##_ff, \ + 0, \ + #sname \ + ASN1_ITEM_end(sname) + +# define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \ + ASN1_ITEM_start(sname) \ + ASN1_ITYPE_EXTERN, \ + tag, \ + NULL, \ + 0, \ + &fptrs, \ + 0, \ + #sname \ + ASN1_ITEM_end(sname) + +/* Macro to implement standard functions in terms of ASN1_ITEM structures */ + +# define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) + +# define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname) + +# define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \ + IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname) + +# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \ + IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname) + +# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \ + stname *fname##_new(void) \ + { \ + return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \ + } \ + void fname##_free(stname *a) \ + { \ + ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \ + } + +# define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \ + IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ + IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) + +# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \ + stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ + { \ + return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ + } \ + int i2d_##fname(stname *a, unsigned char **out) \ + { \ + return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\ + } + +# define IMPLEMENT_ASN1_NDEF_FUNCTION(stname) \ + int i2d_##stname##_NDEF(stname *a, unsigned char **out) \ + { \ + return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname));\ + } + +/* + * This includes evil casts to remove const: they will go away when full ASN1 + * constification is done. + */ +# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \ + stname *d2i_##fname(stname **a, const unsigned char **in, long len) \ + { \ + return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\ + } \ + int i2d_##fname(const stname *a, unsigned char **out) \ + { \ + return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\ + } + +# define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \ + stname * stname##_dup(stname *x) \ + { \ + return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \ + } + +# define IMPLEMENT_ASN1_FUNCTIONS_const(name) \ + IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name) + +# define IMPLEMENT_ASN1_FUNCTIONS_const_fname(stname, itname, fname) \ + IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \ + IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) + +/* external definitions for primitive types */ + +DECLARE_ASN1_ITEM(ASN1_BOOLEAN) +DECLARE_ASN1_ITEM(ASN1_TBOOLEAN) +DECLARE_ASN1_ITEM(ASN1_FBOOLEAN) +DECLARE_ASN1_ITEM(ASN1_SEQUENCE) +DECLARE_ASN1_ITEM(CBIGNUM) +DECLARE_ASN1_ITEM(BIGNUM) +DECLARE_ASN1_ITEM(LONG) +DECLARE_ASN1_ITEM(ZLONG) + +DECLARE_STACK_OF(ASN1_VALUE) + +/* Functions used internally by the ASN1 code */ + +int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it); +void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it); +int ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); +int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it); + +void ASN1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); +int ASN1_template_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, + const ASN1_TEMPLATE *tt); +int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, + const ASN1_ITEM *it, int tag, int aclass, char opt, + ASN1_TLC *ctx); + +int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out, + const ASN1_ITEM *it, int tag, int aclass); +int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out, + const ASN1_TEMPLATE *tt); +void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it); + +int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, + const ASN1_ITEM *it); +int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, + int utype, char *free_cont, const ASN1_ITEM *it); + +int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it); +int asn1_set_choice_selector(ASN1_VALUE **pval, int value, + const ASN1_ITEM *it); + +ASN1_VALUE **asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); + +const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, + int nullerr); + +int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it); + +void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it); +void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it); +int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval, + const ASN1_ITEM *it); +int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, + const ASN1_ITEM *it); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/bio.h b/CryptoPkg/Include/openssl/bio.h new file mode 100644 index 0000000..9d29b36 --- /dev/null +++ b/CryptoPkg/Include/openssl/bio.h @@ -0,0 +1,811 @@ +/* crypto/bio/bio.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_BIO_H +# define HEADER_BIO_H + +# include + +# ifndef OPENSSL_NO_FP_API +# include +# endif +# include + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* These are the 'types' of BIOs */ +# define BIO_TYPE_NONE 0 +# define BIO_TYPE_MEM (1|0x0400) +# define BIO_TYPE_FILE (2|0x0400) + +# define BIO_TYPE_FD (4|0x0400|0x0100) +# define BIO_TYPE_SOCKET (5|0x0400|0x0100) +# define BIO_TYPE_NULL (6|0x0400) +# define BIO_TYPE_SSL (7|0x0200) +# define BIO_TYPE_MD (8|0x0200)/* passive filter */ +# define BIO_TYPE_BUFFER (9|0x0200)/* filter */ +# define BIO_TYPE_CIPHER (10|0x0200)/* filter */ +# define BIO_TYPE_BASE64 (11|0x0200)/* filter */ +# define BIO_TYPE_CONNECT (12|0x0400|0x0100)/* socket - connect */ +# define BIO_TYPE_ACCEPT (13|0x0400|0x0100)/* socket for accept */ +# define BIO_TYPE_PROXY_CLIENT (14|0x0200)/* client proxy BIO */ +# define BIO_TYPE_PROXY_SERVER (15|0x0200)/* server proxy BIO */ +# define BIO_TYPE_NBIO_TEST (16|0x0200)/* server proxy BIO */ +# define BIO_TYPE_NULL_FILTER (17|0x0200) +# define BIO_TYPE_BER (18|0x0200)/* BER -> bin filter */ +# define BIO_TYPE_BIO (19|0x0400)/* (half a) BIO pair */ +# define BIO_TYPE_LINEBUFFER (20|0x0200)/* filter */ +# define BIO_TYPE_DGRAM (21|0x0400|0x0100) +# define BIO_TYPE_COMP (23|0x0200)/* filter */ + +# define BIO_TYPE_DESCRIPTOR 0x0100/* socket, fd, connect or accept */ +# define BIO_TYPE_FILTER 0x0200 +# define BIO_TYPE_SOURCE_SINK 0x0400 + +/* + * BIO_FILENAME_READ|BIO_CLOSE to open or close on free. + * BIO_set_fp(in,stdin,BIO_NOCLOSE); + */ +# define BIO_NOCLOSE 0x00 +# define BIO_CLOSE 0x01 + +/* + * These are used in the following macros and are passed to BIO_ctrl() + */ +# define BIO_CTRL_RESET 1/* opt - rewind/zero etc */ +# define BIO_CTRL_EOF 2/* opt - are we at the eof */ +# define BIO_CTRL_INFO 3/* opt - extra tit-bits */ +# define BIO_CTRL_SET 4/* man - set the 'IO' type */ +# define BIO_CTRL_GET 5/* man - get the 'IO' type */ +# define BIO_CTRL_PUSH 6/* opt - internal, used to signify change */ +# define BIO_CTRL_POP 7/* opt - internal, used to signify change */ +# define BIO_CTRL_GET_CLOSE 8/* man - set the 'close' on free */ +# define BIO_CTRL_SET_CLOSE 9/* man - set the 'close' on free */ +# define BIO_CTRL_PENDING 10/* opt - is their more data buffered */ +# define BIO_CTRL_FLUSH 11/* opt - 'flush' buffered output */ +# define BIO_CTRL_DUP 12/* man - extra stuff for 'duped' BIO */ +# define BIO_CTRL_WPENDING 13/* opt - number of bytes still to write */ +/* callback is int cb(BIO *bio,state,ret); */ +# define BIO_CTRL_SET_CALLBACK 14/* opt - set callback function */ +# define BIO_CTRL_GET_CALLBACK 15/* opt - set callback function */ + +# define BIO_CTRL_SET_FILENAME 30/* BIO_s_file special */ + +/* dgram BIO stuff */ +# define BIO_CTRL_DGRAM_CONNECT 31/* BIO dgram special */ +# define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected + * socket to be passed in */ +# define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33/* setsockopt, essentially */ +# define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34/* getsockopt, essentially */ +# define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35/* setsockopt, essentially */ +# define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36/* getsockopt, essentially */ + +# define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37/* flag whether the last */ +# define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38/* I/O operation tiemd out */ + +/* #ifdef IP_MTU_DISCOVER */ +# define BIO_CTRL_DGRAM_MTU_DISCOVER 39/* set DF bit on egress packets */ +/* #endif */ + +# define BIO_CTRL_DGRAM_QUERY_MTU 40/* as kernel for current MTU */ +# define BIO_CTRL_DGRAM_GET_FALLBACK_MTU 47 +# define BIO_CTRL_DGRAM_GET_MTU 41/* get cached value for MTU */ +# define BIO_CTRL_DGRAM_SET_MTU 42/* set cached value for MTU. + * want to use this if asking + * the kernel fails */ + +# define BIO_CTRL_DGRAM_MTU_EXCEEDED 43/* check whether the MTU was + * exceed in the previous write + * operation */ + +# define BIO_CTRL_DGRAM_GET_PEER 46 +# define BIO_CTRL_DGRAM_SET_PEER 44/* Destination for the data */ + +# define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT 45/* Next DTLS handshake timeout + * to * adjust socket timeouts */ + +/* modifiers */ +# define BIO_FP_READ 0x02 +# define BIO_FP_WRITE 0x04 +# define BIO_FP_APPEND 0x08 +# define BIO_FP_TEXT 0x10 + +# define BIO_FLAGS_READ 0x01 +# define BIO_FLAGS_WRITE 0x02 +# define BIO_FLAGS_IO_SPECIAL 0x04 +# define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL) +# define BIO_FLAGS_SHOULD_RETRY 0x08 +# ifndef BIO_FLAGS_UPLINK +/* + * "UPLINK" flag denotes file descriptors provided by application. It + * defaults to 0, as most platforms don't require UPLINK interface. + */ +# define BIO_FLAGS_UPLINK 0 +# endif + +/* Used in BIO_gethostbyname() */ +# define BIO_GHBN_CTRL_HITS 1 +# define BIO_GHBN_CTRL_MISSES 2 +# define BIO_GHBN_CTRL_CACHE_SIZE 3 +# define BIO_GHBN_CTRL_GET_ENTRY 4 +# define BIO_GHBN_CTRL_FLUSH 5 + +/* Mostly used in the SSL BIO */ +/*- + * Not used anymore + * #define BIO_FLAGS_PROTOCOL_DELAYED_READ 0x10 + * #define BIO_FLAGS_PROTOCOL_DELAYED_WRITE 0x20 + * #define BIO_FLAGS_PROTOCOL_STARTUP 0x40 + */ + +# define BIO_FLAGS_BASE64_NO_NL 0x100 + +/* + * This is used with memory BIOs: it means we shouldn't free up or change the + * data in any way. + */ +# define BIO_FLAGS_MEM_RDONLY 0x200 + +typedef struct bio_st BIO; + +void BIO_set_flags(BIO *b, int flags); +int BIO_test_flags(const BIO *b, int flags); +void BIO_clear_flags(BIO *b, int flags); + +# define BIO_get_flags(b) BIO_test_flags(b, ~(0x0)) +# define BIO_set_retry_special(b) \ + BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY)) +# define BIO_set_retry_read(b) \ + BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY)) +# define BIO_set_retry_write(b) \ + BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY)) + +/* These are normally used internally in BIOs */ +# define BIO_clear_retry_flags(b) \ + BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) +# define BIO_get_retry_flags(b) \ + BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY)) + +/* These should be used by the application to tell why we should retry */ +# define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ) +# define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE) +# define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL) +# define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS) +# define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY) + +/* + * The next three are used in conjunction with the BIO_should_io_special() + * condition. After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int + * *reason); will walk the BIO stack and return the 'reason' for the special + * and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return + * the code. + */ +/* + * Returned from the SSL bio when the certificate retrieval code had an error + */ +# define BIO_RR_SSL_X509_LOOKUP 0x01 +/* Returned from the connect BIO when a connect would have blocked */ +# define BIO_RR_CONNECT 0x02 +/* Returned from the accept BIO when an accept would have blocked */ +# define BIO_RR_ACCEPT 0x03 + +/* These are passed by the BIO callback */ +# define BIO_CB_FREE 0x01 +# define BIO_CB_READ 0x02 +# define BIO_CB_WRITE 0x03 +# define BIO_CB_PUTS 0x04 +# define BIO_CB_GETS 0x05 +# define BIO_CB_CTRL 0x06 + +/* + * The callback is called before and after the underling operation, The + * BIO_CB_RETURN flag indicates if it is after the call + */ +# define BIO_CB_RETURN 0x80 +# define BIO_CB_return(a) ((a)|BIO_CB_RETURN)) +# define BIO_cb_pre(a) (!((a)&BIO_CB_RETURN)) +# define BIO_cb_post(a) ((a)&BIO_CB_RETURN) + +long (*BIO_get_callback(const BIO *b)) (struct bio_st *, int, const char *, + int, long, long); +void BIO_set_callback(BIO *b, + long (*callback) (struct bio_st *, int, const char *, + int, long, long)); +char *BIO_get_callback_arg(const BIO *b); +void BIO_set_callback_arg(BIO *b, char *arg); + +const char *BIO_method_name(const BIO *b); +int BIO_method_type(const BIO *b); + +typedef void bio_info_cb (struct bio_st *, int, const char *, int, long, + long); + +# ifndef OPENSSL_SYS_WIN16 +typedef struct bio_method_st { + int type; + const char *name; + int (*bwrite) (BIO *, const char *, int); + int (*bread) (BIO *, char *, int); + int (*bputs) (BIO *, const char *); + int (*bgets) (BIO *, char *, int); + long (*ctrl) (BIO *, int, long, void *); + int (*create) (BIO *); + int (*destroy) (BIO *); + long (*callback_ctrl) (BIO *, int, bio_info_cb *); +} BIO_METHOD; +# else +typedef struct bio_method_st { + int type; + const char *name; + int (_far * bwrite) (); + int (_far * bread) (); + int (_far * bputs) (); + int (_far * bgets) (); + long (_far * ctrl) (); + int (_far * create) (); + int (_far * destroy) (); + long (_far * callback_ctrl) (); +} BIO_METHOD; +# endif + +struct bio_st { + BIO_METHOD *method; + /* bio, mode, argp, argi, argl, ret */ + long (*callback) (struct bio_st *, int, const char *, int, long, long); + char *cb_arg; /* first argument for the callback */ + int init; + int shutdown; + int flags; /* extra storage */ + int retry_reason; + int num; + void *ptr; + struct bio_st *next_bio; /* used by filter BIOs */ + struct bio_st *prev_bio; /* used by filter BIOs */ + int references; + unsigned long num_read; + unsigned long num_write; + CRYPTO_EX_DATA ex_data; +}; + +DECLARE_STACK_OF(BIO) + +typedef struct bio_f_buffer_ctx_struct { + /*- + * Buffers are setup like this: + * + * <---------------------- size -----------------------> + * +---------------------------------------------------+ + * | consumed | remaining | free space | + * +---------------------------------------------------+ + * <-- off --><------- len -------> + */ + /*- BIO *bio; *//* + * this is now in the BIO struct + */ + int ibuf_size; /* how big is the input buffer */ + int obuf_size; /* how big is the output buffer */ + char *ibuf; /* the char array */ + int ibuf_len; /* how many bytes are in it */ + int ibuf_off; /* write/read offset */ + char *obuf; /* the char array */ + int obuf_len; /* how many bytes are in it */ + int obuf_off; /* write/read offset */ +} BIO_F_BUFFER_CTX; + +/* connect BIO stuff */ +# define BIO_CONN_S_BEFORE 1 +# define BIO_CONN_S_GET_IP 2 +# define BIO_CONN_S_GET_PORT 3 +# define BIO_CONN_S_CREATE_SOCKET 4 +# define BIO_CONN_S_CONNECT 5 +# define BIO_CONN_S_OK 6 +# define BIO_CONN_S_BLOCKED_CONNECT 7 +# define BIO_CONN_S_NBIO 8 +/* + * #define BIO_CONN_get_param_hostname BIO_ctrl + */ + +# define BIO_C_SET_CONNECT 100 +# define BIO_C_DO_STATE_MACHINE 101 +# define BIO_C_SET_NBIO 102 +# define BIO_C_SET_PROXY_PARAM 103 +# define BIO_C_SET_FD 104 +# define BIO_C_GET_FD 105 +# define BIO_C_SET_FILE_PTR 106 +# define BIO_C_GET_FILE_PTR 107 +# define BIO_C_SET_FILENAME 108 +# define BIO_C_SET_SSL 109 +# define BIO_C_GET_SSL 110 +# define BIO_C_SET_MD 111 +# define BIO_C_GET_MD 112 +# define BIO_C_GET_CIPHER_STATUS 113 +# define BIO_C_SET_BUF_MEM 114 +# define BIO_C_GET_BUF_MEM_PTR 115 +# define BIO_C_GET_BUFF_NUM_LINES 116 +# define BIO_C_SET_BUFF_SIZE 117 +# define BIO_C_SET_ACCEPT 118 +# define BIO_C_SSL_MODE 119 +# define BIO_C_GET_MD_CTX 120 +# define BIO_C_GET_PROXY_PARAM 121 +# define BIO_C_SET_BUFF_READ_DATA 122/* data to read first */ +# define BIO_C_GET_CONNECT 123 +# define BIO_C_GET_ACCEPT 124 +# define BIO_C_SET_SSL_RENEGOTIATE_BYTES 125 +# define BIO_C_GET_SSL_NUM_RENEGOTIATES 126 +# define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT 127 +# define BIO_C_FILE_SEEK 128 +# define BIO_C_GET_CIPHER_CTX 129 +# define BIO_C_SET_BUF_MEM_EOF_RETURN 130/* return end of input + * value */ +# define BIO_C_SET_BIND_MODE 131 +# define BIO_C_GET_BIND_MODE 132 +# define BIO_C_FILE_TELL 133 +# define BIO_C_GET_SOCKS 134 +# define BIO_C_SET_SOCKS 135 + +# define BIO_C_SET_WRITE_BUF_SIZE 136/* for BIO_s_bio */ +# define BIO_C_GET_WRITE_BUF_SIZE 137 +# define BIO_C_MAKE_BIO_PAIR 138 +# define BIO_C_DESTROY_BIO_PAIR 139 +# define BIO_C_GET_WRITE_GUARANTEE 140 +# define BIO_C_GET_READ_REQUEST 141 +# define BIO_C_SHUTDOWN_WR 142 +# define BIO_C_NREAD0 143 +# define BIO_C_NREAD 144 +# define BIO_C_NWRITE0 145 +# define BIO_C_NWRITE 146 +# define BIO_C_RESET_READ_REQUEST 147 +# define BIO_C_SET_MD_CTX 148 + +# define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg) +# define BIO_get_app_data(s) BIO_get_ex_data(s,0) + +/* BIO_s_connect() and BIO_s_socks4a_connect() */ +# define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,(char *)name) +# define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,(char *)port) +# define BIO_set_conn_ip(b,ip) BIO_ctrl(b,BIO_C_SET_CONNECT,2,(char *)ip) +# define BIO_set_conn_int_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,3,(char *)port) +# define BIO_get_conn_hostname(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0) +# define BIO_get_conn_port(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1) +# define BIO_get_conn_ip(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2) +# define BIO_get_conn_int_port(b) BIO_int_ctrl(b,BIO_C_GET_CONNECT,3,0) + +# define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) + +/* BIO_s_accept_socket() */ +# define BIO_set_accept_port(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name) +# define BIO_get_accept_port(b) BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0) +/* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */ +# define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(n)?(void *)"a":NULL) +# define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio) + +# define BIO_BIND_NORMAL 0 +# define BIO_BIND_REUSEADDR_IF_UNUSED 1 +# define BIO_BIND_REUSEADDR 2 +# define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL) +# define BIO_get_bind_mode(b,mode) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL) + +# define BIO_do_connect(b) BIO_do_handshake(b) +# define BIO_do_accept(b) BIO_do_handshake(b) +# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL) + +/* BIO_s_proxy_client() */ +# define BIO_set_url(b,url) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,0,(char *)(url)) +# define BIO_set_proxies(b,p) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,1,(char *)(p)) +/* BIO_set_nbio(b,n) */ +# define BIO_set_filter_bio(b,s) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,2,(char *)(s)) +/* BIO *BIO_get_filter_bio(BIO *bio); */ +# define BIO_set_proxy_cb(b,cb) BIO_callback_ctrl(b,BIO_C_SET_PROXY_PARAM,3,(void *(*cb)())) +# define BIO_set_proxy_header(b,sk) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,4,(char *)sk) +# define BIO_set_no_connect_return(b,bool) BIO_int_ctrl(b,BIO_C_SET_PROXY_PARAM,5,bool) + +# define BIO_get_proxy_header(b,skp) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,0,(char *)skp) +# define BIO_get_proxies(b,pxy_p) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,1,(char *)(pxy_p)) +# define BIO_get_url(b,url) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,2,(char *)(url)) +# define BIO_get_no_connect_return(b) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,5,NULL) + +# define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd) +# define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c) + +# define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)fp) +# define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)fpp) + +# define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL) +# define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL) + +/* + * name is cast to lose const, but might be better to route through a + * function so we can do it safely + */ +# ifdef CONST_STRICT +/* + * If you are wondering why this isn't defined, its because CONST_STRICT is + * purely a compile-time kludge to allow const to be checked. + */ +int BIO_read_filename(BIO *b, const char *name); +# else +# define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ + BIO_CLOSE|BIO_FP_READ,(char *)name) +# endif +# define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ + BIO_CLOSE|BIO_FP_WRITE,name) +# define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ + BIO_CLOSE|BIO_FP_APPEND,name) +# define BIO_rw_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \ + BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name) + +/* + * WARNING WARNING, this ups the reference count on the read bio of the SSL + * structure. This is because the ssl read BIO is now pointed to by the + * next_bio field in the bio. So when you free the BIO, make sure you are + * doing a BIO_free_all() to catch the underlying BIO. + */ +# define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)ssl) +# define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)sslp) +# define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL) +# define BIO_set_ssl_renegotiate_bytes(b,num) \ + BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL); +# define BIO_get_num_renegotiates(b) \ + BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL); +# define BIO_set_ssl_renegotiate_timeout(b,seconds) \ + BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL); + +/* defined in evp.h */ +/* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char *)md) */ + +# define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp) +# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)bm) +# define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp) +# define BIO_set_mem_eof_return(b,v) \ + BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL) + +/* For the BIO_f_buffer() type */ +# define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL) +# define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL) +# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0) +# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1) +# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf) + +/* Don't use the next one unless you know what you are doing :-) */ +# define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret)) + +# define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL) +# define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL) +# define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL) +# define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL) +# define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL) +# define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL) +/* ...pending macros have inappropriate return type */ +size_t BIO_ctrl_pending(BIO *b); +size_t BIO_ctrl_wpending(BIO *b); +# define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL) +# define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \ + cbp) +# define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb) + +/* For the BIO_f_buffer() type */ +# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL) + +/* For BIO_s_bio() */ +# define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL) +# define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL) +# define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2) +# define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL) +# define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL) +/* macros with inappropriate type -- but ...pending macros use int too: */ +# define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL) +# define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL) +size_t BIO_ctrl_get_write_guarantee(BIO *b); +size_t BIO_ctrl_get_read_request(BIO *b); +int BIO_ctrl_reset_read_request(BIO *b); + +/* ctrl macros for dgram */ +# define BIO_ctrl_dgram_connect(b,peer) \ + (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)peer) +# define BIO_ctrl_set_connected(b, state, peer) \ + (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, state, (char *)peer) +# define BIO_dgram_recv_timedout(b) \ + (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL) +# define BIO_dgram_send_timedout(b) \ + (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL) +# define BIO_dgram_get_peer(b,peer) \ + (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)peer) +# define BIO_dgram_set_peer(b,peer) \ + (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)peer) + +/* These two aren't currently implemented */ +/* int BIO_get_ex_num(BIO *bio); */ +/* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */ +int BIO_set_ex_data(BIO *bio, int idx, void *data); +void *BIO_get_ex_data(BIO *bio, int idx); +int BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, + CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); +unsigned long BIO_number_read(BIO *bio); +unsigned long BIO_number_written(BIO *bio); + +# ifndef OPENSSL_NO_FP_API +# if defined(OPENSSL_SYS_WIN16) && defined(_WINDLL) +BIO_METHOD *BIO_s_file_internal(void); +BIO *BIO_new_file_internal(char *filename, char *mode); +BIO *BIO_new_fp_internal(FILE *stream, int close_flag); +# define BIO_s_file BIO_s_file_internal +# define BIO_new_file BIO_new_file_internal +# define BIO_new_fp BIO_new_fp_internal +# else /* FP_API */ +BIO_METHOD *BIO_s_file(void); +BIO *BIO_new_file(const char *filename, const char *mode); +BIO *BIO_new_fp(FILE *stream, int close_flag); +# define BIO_s_file_internal BIO_s_file +# define BIO_new_file_internal BIO_new_file +# define BIO_new_fp_internal BIO_s_file +# endif /* FP_API */ +# endif +BIO *BIO_new(BIO_METHOD *type); +int BIO_set(BIO *a, BIO_METHOD *type); +int BIO_free(BIO *a); +void BIO_vfree(BIO *a); +int BIO_read(BIO *b, void *data, int len); +int BIO_gets(BIO *bp, char *buf, int size); +int BIO_write(BIO *b, const void *data, int len); +int BIO_puts(BIO *bp, const char *buf); +int BIO_indent(BIO *b, int indent, int max); +long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg); +long BIO_callback_ctrl(BIO *b, int cmd, + void (*fp) (struct bio_st *, int, const char *, int, + long, long)); +char *BIO_ptr_ctrl(BIO *bp, int cmd, long larg); +long BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg); +BIO *BIO_push(BIO *b, BIO *append); +BIO *BIO_pop(BIO *b); +void BIO_free_all(BIO *a); +BIO *BIO_find_type(BIO *b, int bio_type); +BIO *BIO_next(BIO *b); +BIO *BIO_get_retry_BIO(BIO *bio, int *reason); +int BIO_get_retry_reason(BIO *bio); +BIO *BIO_dup_chain(BIO *in); + +int BIO_nread0(BIO *bio, char **buf); +int BIO_nread(BIO *bio, char **buf, int num); +int BIO_nwrite0(BIO *bio, char **buf); +int BIO_nwrite(BIO *bio, char **buf, int num); + +# ifndef OPENSSL_SYS_WIN16 +long BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, + long argl, long ret); +# else +long _far _loadds BIO_debug_callback(BIO *bio, int cmd, const char *argp, + int argi, long argl, long ret); +# endif + +BIO_METHOD *BIO_s_mem(void); +BIO *BIO_new_mem_buf(void *buf, int len); +BIO_METHOD *BIO_s_socket(void); +BIO_METHOD *BIO_s_connect(void); +BIO_METHOD *BIO_s_accept(void); +BIO_METHOD *BIO_s_fd(void); +# ifndef OPENSSL_SYS_OS2 +BIO_METHOD *BIO_s_log(void); +# endif +BIO_METHOD *BIO_s_bio(void); +BIO_METHOD *BIO_s_null(void); +BIO_METHOD *BIO_f_null(void); +BIO_METHOD *BIO_f_buffer(void); +# ifdef OPENSSL_SYS_VMS +BIO_METHOD *BIO_f_linebuffer(void); +# endif +BIO_METHOD *BIO_f_nbio_test(void); +# ifndef OPENSSL_NO_DGRAM +BIO_METHOD *BIO_s_datagram(void); +# endif + +/* BIO_METHOD *BIO_f_ber(void); */ + +int BIO_sock_should_retry(int i); +int BIO_sock_non_fatal_error(int error); +int BIO_dgram_non_fatal_error(int error); + +int BIO_fd_should_retry(int i); +int BIO_fd_non_fatal_error(int error); +int BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u), + void *u, const char *s, int len); +int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u), + void *u, const char *s, int len, int indent); +int BIO_dump(BIO *b, const char *bytes, int len); +int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); +# ifndef OPENSSL_NO_FP_API +int BIO_dump_fp(FILE *fp, const char *s, int len); +int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); +# endif +struct hostent *BIO_gethostbyname(const char *name); +/*- + * We might want a thread-safe interface too: + * struct hostent *BIO_gethostbyname_r(const char *name, + * struct hostent *result, void *buffer, size_t buflen); + * or something similar (caller allocates a struct hostent, + * pointed to by "result", and additional buffer space for the various + * substructures; if the buffer does not suffice, NULL is returned + * and an appropriate error code is set). + */ +int BIO_sock_error(int sock); +int BIO_socket_ioctl(int fd, long type, void *arg); +int BIO_socket_nbio(int fd, int mode); +int BIO_get_port(const char *str, unsigned short *port_ptr); +int BIO_get_host_ip(const char *str, unsigned char *ip); +int BIO_get_accept_socket(char *host_port, int mode); +int BIO_accept(int sock, char **ip_port); +int BIO_sock_init(void); +void BIO_sock_cleanup(void); +int BIO_set_tcp_ndelay(int sock, int turn_on); + +BIO *BIO_new_socket(int sock, int close_flag); +BIO *BIO_new_dgram(int fd, int close_flag); +BIO *BIO_new_fd(int fd, int close_flag); +BIO *BIO_new_connect(char *host_port); +BIO *BIO_new_accept(char *host_port); + +int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, + BIO **bio2, size_t writebuf2); +/* + * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. + * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default + * value. + */ + +void BIO_copy_next_retry(BIO *b); + +/* + * long BIO_ghbn_ctrl(int cmd,int iarg,char *parg); + */ + +# ifdef __GNUC__ +# define __bio_h__attr__ __attribute__ +# else +# define __bio_h__attr__(x) +# endif +int BIO_printf(BIO *bio, const char *format, ...) +__bio_h__attr__((__format__(__printf__, 2, 3))); +int BIO_vprintf(BIO *bio, const char *format, va_list args) +__bio_h__attr__((__format__(__printf__, 2, 0))); +int BIO_snprintf(char *buf, size_t n, const char *format, ...) +__bio_h__attr__((__format__(__printf__, 3, 4))); +int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) +__bio_h__attr__((__format__(__printf__, 3, 0))); +# undef __bio_h__attr__ + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_BIO_strings(void); + +/* Error codes for the BIO functions. */ + +/* Function codes. */ +# define BIO_F_ACPT_STATE 100 +# define BIO_F_BIO_ACCEPT 101 +# define BIO_F_BIO_BER_GET_HEADER 102 +# define BIO_F_BIO_CALLBACK_CTRL 131 +# define BIO_F_BIO_CTRL 103 +# define BIO_F_BIO_GETHOSTBYNAME 120 +# define BIO_F_BIO_GETS 104 +# define BIO_F_BIO_GET_ACCEPT_SOCKET 105 +# define BIO_F_BIO_GET_HOST_IP 106 +# define BIO_F_BIO_GET_PORT 107 +# define BIO_F_BIO_MAKE_PAIR 121 +# define BIO_F_BIO_NEW 108 +# define BIO_F_BIO_NEW_FILE 109 +# define BIO_F_BIO_NEW_MEM_BUF 126 +# define BIO_F_BIO_NREAD 123 +# define BIO_F_BIO_NREAD0 124 +# define BIO_F_BIO_NWRITE 125 +# define BIO_F_BIO_NWRITE0 122 +# define BIO_F_BIO_PUTS 110 +# define BIO_F_BIO_READ 111 +# define BIO_F_BIO_SOCK_INIT 112 +# define BIO_F_BIO_WRITE 113 +# define BIO_F_BUFFER_CTRL 114 +# define BIO_F_CONN_CTRL 127 +# define BIO_F_CONN_STATE 115 +# define BIO_F_FILE_CTRL 116 +# define BIO_F_FILE_READ 130 +# define BIO_F_LINEBUFFER_CTRL 129 +# define BIO_F_MEM_READ 128 +# define BIO_F_MEM_WRITE 117 +# define BIO_F_SSL_NEW 118 +# define BIO_F_WSASTARTUP 119 + +/* Reason codes. */ +# define BIO_R_ACCEPT_ERROR 100 +# define BIO_R_BAD_FOPEN_MODE 101 +# define BIO_R_BAD_HOSTNAME_LOOKUP 102 +# define BIO_R_BROKEN_PIPE 124 +# define BIO_R_CONNECT_ERROR 103 +# define BIO_R_EOF_ON_MEMORY_BIO 127 +# define BIO_R_ERROR_SETTING_NBIO 104 +# define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET 105 +# define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET 106 +# define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107 +# define BIO_R_INVALID_ARGUMENT 125 +# define BIO_R_INVALID_IP_ADDRESS 108 +# define BIO_R_IN_USE 123 +# define BIO_R_KEEPALIVE 109 +# define BIO_R_NBIO_CONNECT_ERROR 110 +# define BIO_R_NO_ACCEPT_PORT_SPECIFIED 111 +# define BIO_R_NO_HOSTNAME_SPECIFIED 112 +# define BIO_R_NO_PORT_DEFINED 113 +# define BIO_R_NO_PORT_SPECIFIED 114 +# define BIO_R_NO_SUCH_FILE 128 +# define BIO_R_NULL_PARAMETER 115 +# define BIO_R_TAG_MISMATCH 116 +# define BIO_R_UNABLE_TO_BIND_SOCKET 117 +# define BIO_R_UNABLE_TO_CREATE_SOCKET 118 +# define BIO_R_UNABLE_TO_LISTEN_SOCKET 119 +# define BIO_R_UNINITIALIZED 120 +# define BIO_R_UNSUPPORTED_METHOD 121 +# define BIO_R_WRITE_TO_READ_ONLY_BIO 126 +# define BIO_R_WSASTARTUP 122 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/blowfish.h b/CryptoPkg/Include/openssl/blowfish.h new file mode 100644 index 0000000..db19b9a --- /dev/null +++ b/CryptoPkg/Include/openssl/blowfish.h @@ -0,0 +1,130 @@ +/* crypto/bf/blowfish.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_BLOWFISH_H +# define HEADER_BLOWFISH_H + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +# ifdef OPENSSL_NO_BF +# error BF is disabled. +# endif + +# define BF_ENCRYPT 1 +# define BF_DECRYPT 0 + +/*- + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * ! BF_LONG has to be at least 32 bits wide. If it's wider, then ! + * ! BF_LONG_LOG2 has to be defined along. ! + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + */ + +# if defined(OPENSSL_SYS_WIN16) || defined(__LP32__) +# define BF_LONG unsigned long +# elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__) +# define BF_LONG unsigned long +# define BF_LONG_LOG2 3 +/* + * _CRAY note. I could declare short, but I have no idea what impact + * does it have on performance on none-T3E machines. I could declare + * int, but at least on C90 sizeof(int) can be chosen at compile time. + * So I've chosen long... + * + */ +# else +# define BF_LONG unsigned int +# endif + +# define BF_ROUNDS 16 +# define BF_BLOCK 8 + +typedef struct bf_key_st { + BF_LONG P[BF_ROUNDS + 2]; + BF_LONG S[4 * 256]; +} BF_KEY; + +# ifdef OPENSSL_FIPS +void private_BF_set_key(BF_KEY *key, int len, const unsigned char *data); +# endif +void BF_set_key(BF_KEY *key, int len, const unsigned char *data); + +void BF_encrypt(BF_LONG *data, const BF_KEY *key); +void BF_decrypt(BF_LONG *data, const BF_KEY *key); + +void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, + const BF_KEY *key, int enc); +void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, + const BF_KEY *schedule, unsigned char *ivec, int enc); +void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, + long length, const BF_KEY *schedule, + unsigned char *ivec, int *num, int enc); +void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, + long length, const BF_KEY *schedule, + unsigned char *ivec, int *num); +const char *BF_options(void); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/bn.h b/CryptoPkg/Include/openssl/bn.h new file mode 100644 index 0000000..6dc2d75 --- /dev/null +++ b/CryptoPkg/Include/openssl/bn.h @@ -0,0 +1,913 @@ +/* crypto/bn/bn.h */ +/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ +/* ==================================================================== + * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. + * + * Portions of the attached software ("Contribution") are developed by + * SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project. + * + * The Contribution is licensed pursuant to the Eric Young open source + * license provided above. + * + * The binary polynomial arithmetic software is originally written by + * Sheueling Chang Shantz and Douglas Stebila of Sun Microsystems Laboratories. + * + */ + +#ifndef HEADER_BN_H +# define HEADER_BN_H + +# include +# ifndef OPENSSL_NO_FP_API +# include /* FILE */ +# endif +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * These preprocessor symbols control various aspects of the bignum headers + * and library code. They're not defined by any "normal" configuration, as + * they are intended for development and testing purposes. NB: defining all + * three can be useful for debugging application code as well as openssl + * itself. BN_DEBUG - turn on various debugging alterations to the bignum + * code BN_DEBUG_RAND - uses random poisoning of unused words to trip up + * mismanagement of bignum internals. You must also define BN_DEBUG. + */ +/* #define BN_DEBUG */ +/* #define BN_DEBUG_RAND */ + +# define BN_MUL_COMBA +# define BN_SQR_COMBA +# define BN_RECURSION + +/* + * This next option uses the C libraries (2 word)/(1 word) function. If it is + * not defined, I use my C version (which is slower). The reason for this + * flag is that when the particular C compiler library routine is used, and + * the library is linked with a different compiler, the library is missing. + * This mostly happens when the library is built with gcc and then linked + * using normal cc. This would be a common occurrence because gcc normally + * produces code that is 2 times faster than system compilers for the big + * number stuff. For machines with only one compiler (or shared libraries), + * this should be on. Again this in only really a problem on machines using + * "long long's", are 32bit, and are not using my assembler code. + */ +# if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WINDOWS) || \ + defined(OPENSSL_SYS_WIN32) || defined(linux) +# ifndef BN_DIV2W +# define BN_DIV2W +# endif +# endif + +/* + * assuming long is 64bit - this is the DEC Alpha unsigned long long is only + * 64 bits :-(, don't define BN_LLONG for the DEC Alpha + */ +# ifdef SIXTY_FOUR_BIT_LONG +# define BN_ULLONG unsigned long long +# define BN_ULONG unsigned long +# define BN_LONG long +# define BN_BITS 128 +# define BN_BYTES 8 +# define BN_BITS2 64 +# define BN_BITS4 32 +# define BN_MASK (0xffffffffffffffffffffffffffffffffLL) +# define BN_MASK2 (0xffffffffffffffffL) +# define BN_MASK2l (0xffffffffL) +# define BN_MASK2h (0xffffffff00000000L) +# define BN_MASK2h1 (0xffffffff80000000L) +# define BN_TBIT (0x8000000000000000L) +# define BN_DEC_CONV (10000000000000000000UL) +# define BN_DEC_FMT1 "%lu" +# define BN_DEC_FMT2 "%019lu" +# define BN_DEC_NUM 19 +# endif + +/* + * This is where the long long data type is 64 bits, but long is 32. For + * machines where there are 64bit registers, this is the mode to use. IRIX, + * on R4000 and above should use this mode, along with the relevant assembler + * code :-). Do NOT define BN_LLONG. + */ +# ifdef SIXTY_FOUR_BIT +# undef BN_LLONG +# undef BN_ULLONG +# define BN_ULONG unsigned long long +# define BN_LONG long long +# define BN_BITS 128 +# define BN_BYTES 8 +# define BN_BITS2 64 +# define BN_BITS4 32 +# define BN_MASK2 (0xffffffffffffffffLL) +# define BN_MASK2l (0xffffffffL) +# define BN_MASK2h (0xffffffff00000000LL) +# define BN_MASK2h1 (0xffffffff80000000LL) +# define BN_TBIT (0x8000000000000000LL) +# define BN_DEC_CONV (10000000000000000000ULL) +# define BN_DEC_FMT1 "%llu" +# define BN_DEC_FMT2 "%019llu" +# define BN_DEC_NUM 19 +# endif + +# ifdef THIRTY_TWO_BIT +# ifdef BN_LLONG +# if defined(OPENSSL_SYS_WIN32) && !defined(__GNUC__) +# define BN_ULLONG unsigned __int64 +# else +# define BN_ULLONG unsigned long long +# endif +# endif +# define BN_ULONG unsigned long +# define BN_LONG long +# define BN_BITS 64 +# define BN_BYTES 4 +# define BN_BITS2 32 +# define BN_BITS4 16 +# ifdef OPENSSL_SYS_WIN32 +/* VC++ doesn't like the LL suffix */ +# define BN_MASK (0xffffffffffffffffL) +# else +# define BN_MASK (0xffffffffffffffffLL) +# endif +# define BN_MASK2 (0xffffffffL) +# define BN_MASK2l (0xffff) +# define BN_MASK2h1 (0xffff8000L) +# define BN_MASK2h (0xffff0000L) +# define BN_TBIT (0x80000000L) +# define BN_DEC_CONV (1000000000L) +# define BN_DEC_FMT1 "%lu" +# define BN_DEC_FMT2 "%09lu" +# define BN_DEC_NUM 9 +# endif + +# ifdef SIXTEEN_BIT +# ifndef BN_DIV2W +# define BN_DIV2W +# endif +# define BN_ULLONG unsigned long +# define BN_ULONG unsigned short +# define BN_LONG short +# define BN_BITS 32 +# define BN_BYTES 2 +# define BN_BITS2 16 +# define BN_BITS4 8 +# define BN_MASK (0xffffffff) +# define BN_MASK2 (0xffff) +# define BN_MASK2l (0xff) +# define BN_MASK2h1 (0xff80) +# define BN_MASK2h (0xff00) +# define BN_TBIT (0x8000) +# define BN_DEC_CONV (100000) +# define BN_DEC_FMT1 "%u" +# define BN_DEC_FMT2 "%05u" +# define BN_DEC_NUM 5 +# endif + +# ifdef EIGHT_BIT +# ifndef BN_DIV2W +# define BN_DIV2W +# endif +# define BN_ULLONG unsigned short +# define BN_ULONG unsigned char +# define BN_LONG char +# define BN_BITS 16 +# define BN_BYTES 1 +# define BN_BITS2 8 +# define BN_BITS4 4 +# define BN_MASK (0xffff) +# define BN_MASK2 (0xff) +# define BN_MASK2l (0xf) +# define BN_MASK2h1 (0xf8) +# define BN_MASK2h (0xf0) +# define BN_TBIT (0x80) +# define BN_DEC_CONV (100) +# define BN_DEC_FMT1 "%u" +# define BN_DEC_FMT2 "%02u" +# define BN_DEC_NUM 2 +# endif + +# define BN_DEFAULT_BITS 1280 + +# define BN_FLG_MALLOCED 0x01 +# define BN_FLG_STATIC_DATA 0x02 + +/* + * avoid leaking exponent information through timing, + * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, + * BN_div() will call BN_div_no_branch, + * BN_mod_inverse() will call BN_mod_inverse_no_branch. + */ +# define BN_FLG_CONSTTIME 0x04 + +# ifdef OPENSSL_NO_DEPRECATED +/* deprecated name for the flag */ +# define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME +/* + * avoid leaking exponent information through timings + * (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) + */ +# endif + +# ifndef OPENSSL_NO_DEPRECATED +# define BN_FLG_FREE 0x8000 + /* used for debuging */ +# endif +# define BN_set_flags(b,n) ((b)->flags|=(n)) +# define BN_get_flags(b,n) ((b)->flags&(n)) + +/* + * get a clone of a BIGNUM with changed flags, for *temporary* use only (the + * two BIGNUMs cannot not be used in parallel!) + */ +# define BN_with_flags(dest,b,n) ((dest)->d=(b)->d, \ + (dest)->top=(b)->top, \ + (dest)->dmax=(b)->dmax, \ + (dest)->neg=(b)->neg, \ + (dest)->flags=(((dest)->flags & BN_FLG_MALLOCED) \ + | ((b)->flags & ~BN_FLG_MALLOCED) \ + | BN_FLG_STATIC_DATA \ + | (n))) + +/* Already declared in ossl_typ.h */ +# if 0 +typedef struct bignum_st BIGNUM; +/* Used for temp variables (declaration hidden in bn_lcl.h) */ +typedef struct bignum_ctx BN_CTX; +typedef struct bn_blinding_st BN_BLINDING; +typedef struct bn_mont_ctx_st BN_MONT_CTX; +typedef struct bn_recp_ctx_st BN_RECP_CTX; +typedef struct bn_gencb_st BN_GENCB; +# endif + +struct bignum_st { + BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit + * chunks. */ + int top; /* Index of last used d +1. */ + /* The next are internal book keeping for bn_expand. */ + int dmax; /* Size of the d array. */ + int neg; /* one if the number is negative */ + int flags; +}; + +/* Used for montgomery multiplication */ +struct bn_mont_ctx_st { + int ri; /* number of bits in R */ + BIGNUM RR; /* used to convert to montgomery form */ + BIGNUM N; /* The modulus */ + BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1 (Ni is only + * stored for bignum algorithm) */ +# if 0 + /* OpenSSL 0.9.9 preview: */ + BN_ULONG n0[2]; /* least significant word(s) of Ni */ +# else + BN_ULONG n0; /* least significant word of Ni */ +# endif + int flags; +}; + +/* + * Used for reciprocal division/mod functions It cannot be shared between + * threads + */ +struct bn_recp_ctx_st { + BIGNUM N; /* the divisor */ + BIGNUM Nr; /* the reciprocal */ + int num_bits; + int shift; + int flags; +}; + +/* Used for slow "generation" functions. */ +struct bn_gencb_st { + unsigned int ver; /* To handle binary (in)compatibility */ + void *arg; /* callback-specific data */ + union { + /* if(ver==1) - handles old style callbacks */ + void (*cb_1) (int, int, void *); + /* if(ver==2) - new callback style */ + int (*cb_2) (int, int, BN_GENCB *); + } cb; +}; +/* Wrapper function to make using BN_GENCB easier, */ +int BN_GENCB_call(BN_GENCB *cb, int a, int b); +/* Macro to populate a BN_GENCB structure with an "old"-style callback */ +# define BN_GENCB_set_old(gencb, callback, cb_arg) { \ + BN_GENCB *tmp_gencb = (gencb); \ + tmp_gencb->ver = 1; \ + tmp_gencb->arg = (cb_arg); \ + tmp_gencb->cb.cb_1 = (callback); } +/* Macro to populate a BN_GENCB structure with a "new"-style callback */ +# define BN_GENCB_set(gencb, callback, cb_arg) { \ + BN_GENCB *tmp_gencb = (gencb); \ + tmp_gencb->ver = 2; \ + tmp_gencb->arg = (cb_arg); \ + tmp_gencb->cb.cb_2 = (callback); } + +# define BN_prime_checks 0 /* default: select number of iterations based + * on the size of the number */ + +/* + * number of Miller-Rabin iterations for an error rate of less than 2^-80 for + * random 'b'-bit input, b >= 100 (taken from table 4.4 in the Handbook of + * Applied Cryptography [Menezes, van Oorschot, Vanstone; CRC Press 1996]; + * original paper: Damgaard, Landrock, Pomerance: Average case error + * estimates for the strong probable prime test. -- Math. Comp. 61 (1993) + * 177-194) + */ +# define BN_prime_checks_for_size(b) ((b) >= 1300 ? 2 : \ + (b) >= 850 ? 3 : \ + (b) >= 650 ? 4 : \ + (b) >= 550 ? 5 : \ + (b) >= 450 ? 6 : \ + (b) >= 400 ? 7 : \ + (b) >= 350 ? 8 : \ + (b) >= 300 ? 9 : \ + (b) >= 250 ? 12 : \ + (b) >= 200 ? 15 : \ + (b) >= 150 ? 18 : \ + /* b >= 100 */ 27) + +# define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) + +/* Note that BN_abs_is_word didn't work reliably for w == 0 until 0.9.8 */ +# define BN_abs_is_word(a,w) ((((a)->top == 1) && ((a)->d[0] == (BN_ULONG)(w))) || \ + (((w) == 0) && ((a)->top == 0))) +# define BN_is_zero(a) ((a)->top == 0) +# define BN_is_one(a) (BN_abs_is_word((a),1) && !(a)->neg) +# define BN_is_word(a,w) (BN_abs_is_word((a),(w)) && (!(w) || !(a)->neg)) +# define BN_is_odd(a) (((a)->top > 0) && ((a)->d[0] & 1)) + +# define BN_one(a) (BN_set_word((a),1)) +# define BN_zero_ex(a) \ + do { \ + BIGNUM *_tmp_bn = (a); \ + _tmp_bn->top = 0; \ + _tmp_bn->neg = 0; \ + } while(0) +# ifdef OPENSSL_NO_DEPRECATED +# define BN_zero(a) BN_zero_ex(a) +# else +# define BN_zero(a) (BN_set_word((a),0)) +# endif + +const BIGNUM *BN_value_one(void); +char *BN_options(void); +BN_CTX *BN_CTX_new(void); +# ifndef OPENSSL_NO_DEPRECATED +void BN_CTX_init(BN_CTX *c); +# endif +void BN_CTX_free(BN_CTX *c); +void BN_CTX_start(BN_CTX *ctx); +BIGNUM *BN_CTX_get(BN_CTX *ctx); +void BN_CTX_end(BN_CTX *ctx); +int BN_rand(BIGNUM *rnd, int bits, int top, int bottom); +int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom); +int BN_rand_range(BIGNUM *rnd, const BIGNUM *range); +int BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range); +int BN_num_bits(const BIGNUM *a); +int BN_num_bits_word(BN_ULONG); +BIGNUM *BN_new(void); +void BN_init(BIGNUM *); +void BN_clear_free(BIGNUM *a); +BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b); +void BN_swap(BIGNUM *a, BIGNUM *b); +BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); +int BN_bn2bin(const BIGNUM *a, unsigned char *to); +BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret); +int BN_bn2mpi(const BIGNUM *a, unsigned char *to); +int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); +int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); +int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); +int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); +int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); +int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx); +/** BN_set_negative sets sign of a BIGNUM + * \param b pointer to the BIGNUM object + * \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise + */ +void BN_set_negative(BIGNUM *b, int n); +/** BN_is_negative returns 1 if the BIGNUM is negative + * \param a pointer to the BIGNUM object + * \return 1 if a < 0 and 0 otherwise + */ +# define BN_is_negative(a) ((a)->neg != 0) + +int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, + BN_CTX *ctx); +# define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) +int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx); +int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, + BN_CTX *ctx); +int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const BIGNUM *m); +int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, + BN_CTX *ctx); +int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const BIGNUM *m); +int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, + BN_CTX *ctx); +int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); +int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); +int BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m); +int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, + BN_CTX *ctx); +int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m); + +BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w); +BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w); +int BN_mul_word(BIGNUM *a, BN_ULONG w); +int BN_add_word(BIGNUM *a, BN_ULONG w); +int BN_sub_word(BIGNUM *a, BN_ULONG w); +int BN_set_word(BIGNUM *a, BN_ULONG w); +BN_ULONG BN_get_word(const BIGNUM *a); + +int BN_cmp(const BIGNUM *a, const BIGNUM *b); +void BN_free(BIGNUM *a); +int BN_is_bit_set(const BIGNUM *a, int n); +int BN_lshift(BIGNUM *r, const BIGNUM *a, int n); +int BN_lshift1(BIGNUM *r, const BIGNUM *a); +int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); + +int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx); +int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); +int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx, + BN_MONT_CTX *in_mont); +int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); +int BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1, + const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m, + BN_CTX *ctx, BN_MONT_CTX *m_ctx); +int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx); + +int BN_mask_bits(BIGNUM *a, int n); +# ifndef OPENSSL_NO_FP_API +int BN_print_fp(FILE *fp, const BIGNUM *a); +# endif +# ifdef HEADER_BIO_H +int BN_print(BIO *fp, const BIGNUM *a); +# else +int BN_print(void *fp, const BIGNUM *a); +# endif +int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx); +int BN_rshift(BIGNUM *r, const BIGNUM *a, int n); +int BN_rshift1(BIGNUM *r, const BIGNUM *a); +void BN_clear(BIGNUM *a); +BIGNUM *BN_dup(const BIGNUM *a); +int BN_ucmp(const BIGNUM *a, const BIGNUM *b); +int BN_set_bit(BIGNUM *a, int n); +int BN_clear_bit(BIGNUM *a, int n); +char *BN_bn2hex(const BIGNUM *a); +char *BN_bn2dec(const BIGNUM *a); +int BN_hex2bn(BIGNUM **a, const char *str); +int BN_dec2bn(BIGNUM **a, const char *str); +int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); +int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); /* returns + * -2 for + * error */ +BIGNUM *BN_mod_inverse(BIGNUM *ret, + const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx); +BIGNUM *BN_mod_sqrt(BIGNUM *ret, + const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx); + +void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords); + +/* Deprecated versions */ +# ifndef OPENSSL_NO_DEPRECATED +BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, + const BIGNUM *add, const BIGNUM *rem, + void (*callback) (int, int, void *), void *cb_arg); +int BN_is_prime(const BIGNUM *p, int nchecks, + void (*callback) (int, int, void *), + BN_CTX *ctx, void *cb_arg); +int BN_is_prime_fasttest(const BIGNUM *p, int nchecks, + void (*callback) (int, int, void *), BN_CTX *ctx, + void *cb_arg, int do_trial_division); +# endif /* !defined(OPENSSL_NO_DEPRECATED) */ + +/* Newer versions */ +int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, + const BIGNUM *rem, BN_GENCB *cb); +int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb); +int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, + int do_trial_division, BN_GENCB *cb); + +int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx); + +int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, + const BIGNUM *Xp, const BIGNUM *Xp1, + const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx, + BN_GENCB *cb); +int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1, + BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e, + BN_CTX *ctx, BN_GENCB *cb); + +BN_MONT_CTX *BN_MONT_CTX_new(void); +void BN_MONT_CTX_init(BN_MONT_CTX *ctx); +int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + BN_MONT_CTX *mont, BN_CTX *ctx); +# define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ + (r),(a),&((mont)->RR),(mont),(ctx)) +int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, + BN_MONT_CTX *mont, BN_CTX *ctx); +void BN_MONT_CTX_free(BN_MONT_CTX *mont); +int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx); +BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, BN_MONT_CTX *from); +BN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, int lock, + const BIGNUM *mod, BN_CTX *ctx); + +/* BN_BLINDING flags */ +# define BN_BLINDING_NO_UPDATE 0x00000001 +# define BN_BLINDING_NO_RECREATE 0x00000002 + +BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod); +void BN_BLINDING_free(BN_BLINDING *b); +int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx); +int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); +int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); +int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); +int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, + BN_CTX *); +unsigned long BN_BLINDING_get_thread_id(const BN_BLINDING *); +void BN_BLINDING_set_thread_id(BN_BLINDING *, unsigned long); +unsigned long BN_BLINDING_get_flags(const BN_BLINDING *); +void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long); +BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b, + const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, + int (*bn_mod_exp) (BIGNUM *r, + const BIGNUM *a, + const BIGNUM *p, + const BIGNUM *m, + BN_CTX *ctx, + BN_MONT_CTX *m_ctx), + BN_MONT_CTX *m_ctx); + +# ifndef OPENSSL_NO_DEPRECATED +void BN_set_params(int mul, int high, int low, int mont); +int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */ +# endif + +void BN_RECP_CTX_init(BN_RECP_CTX *recp); +BN_RECP_CTX *BN_RECP_CTX_new(void); +void BN_RECP_CTX_free(BN_RECP_CTX *recp); +int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx); +int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, + BN_RECP_CTX *recp, BN_CTX *ctx); +int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx); +int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, + BN_RECP_CTX *recp, BN_CTX *ctx); + +/* + * Functions for arithmetic over binary polynomials represented by BIGNUMs. + * The BIGNUM::neg property of BIGNUMs representing binary polynomials is + * ignored. Note that input arguments are not const so that their bit arrays + * can be expanded to the appropriate size if needed. + */ + +/* + * r = a + b + */ +int BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); +# define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b) +/* + * r=a mod p + */ +int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p); +/* r = (a * b) mod p */ +int BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const BIGNUM *p, BN_CTX *ctx); +/* r = (a * a) mod p */ +int BN_GF2m_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); +/* r = (1 / b) mod p */ +int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx); +/* r = (a / b) mod p */ +int BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const BIGNUM *p, BN_CTX *ctx); +/* r = (a ^ b) mod p */ +int BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const BIGNUM *p, BN_CTX *ctx); +/* r = sqrt(a) mod p */ +int BN_GF2m_mod_sqrt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + BN_CTX *ctx); +/* r^2 + r = a mod p */ +int BN_GF2m_mod_solve_quad(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, + BN_CTX *ctx); +# define BN_GF2m_cmp(a, b) BN_ucmp((a), (b)) +/*- + * Some functions allow for representation of the irreducible polynomials + * as an unsigned int[], say p. The irreducible f(t) is then of the form: + * t^p[0] + t^p[1] + ... + t^p[k] + * where m = p[0] > p[1] > ... > p[k] = 0. + */ +/* r = a mod p */ +int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const unsigned int p[]); +/* r = (a * b) mod p */ +int BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const unsigned int p[], BN_CTX *ctx); +/* r = (a * a) mod p */ +int BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const unsigned int p[], + BN_CTX *ctx); +/* r = (1 / b) mod p */ +int BN_GF2m_mod_inv_arr(BIGNUM *r, const BIGNUM *b, const unsigned int p[], + BN_CTX *ctx); +/* r = (a / b) mod p */ +int BN_GF2m_mod_div_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const unsigned int p[], BN_CTX *ctx); +/* r = (a ^ b) mod p */ +int BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, + const unsigned int p[], BN_CTX *ctx); +/* r = sqrt(a) mod p */ +int BN_GF2m_mod_sqrt_arr(BIGNUM *r, const BIGNUM *a, + const unsigned int p[], BN_CTX *ctx); +/* r^2 + r = a mod p */ +int BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a, + const unsigned int p[], BN_CTX *ctx); +int BN_GF2m_poly2arr(const BIGNUM *a, unsigned int p[], int max); +int BN_GF2m_arr2poly(const unsigned int p[], BIGNUM *a); + +/* + * faster mod functions for the 'NIST primes' 0 <= a < p^2 + */ +int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); +int BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); +int BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); +int BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); +int BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); + +const BIGNUM *BN_get0_nist_prime_192(void); +const BIGNUM *BN_get0_nist_prime_224(void); +const BIGNUM *BN_get0_nist_prime_256(void); +const BIGNUM *BN_get0_nist_prime_384(void); +const BIGNUM *BN_get0_nist_prime_521(void); + +/* library internal functions */ + +# define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\ + (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2)) +# define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) +BIGNUM *bn_expand2(BIGNUM *a, int words); +# ifndef OPENSSL_NO_DEPRECATED +BIGNUM *bn_dup_expand(const BIGNUM *a, int words); /* unused */ +# endif + +/*- + * Bignum consistency macros + * There is one "API" macro, bn_fix_top(), for stripping leading zeroes from + * bignum data after direct manipulations on the data. There is also an + * "internal" macro, bn_check_top(), for verifying that there are no leading + * zeroes. Unfortunately, some auditing is required due to the fact that + * bn_fix_top() has become an overabused duct-tape because bignum data is + * occasionally passed around in an inconsistent state. So the following + * changes have been made to sort this out; + * - bn_fix_top()s implementation has been moved to bn_correct_top() + * - if BN_DEBUG isn't defined, bn_fix_top() maps to bn_correct_top(), and + * bn_check_top() is as before. + * - if BN_DEBUG *is* defined; + * - bn_check_top() tries to pollute unused words even if the bignum 'top' is + * consistent. (ed: only if BN_DEBUG_RAND is defined) + * - bn_fix_top() maps to bn_check_top() rather than "fixing" anything. + * The idea is to have debug builds flag up inconsistent bignums when they + * occur. If that occurs in a bn_fix_top(), we examine the code in question; if + * the use of bn_fix_top() was appropriate (ie. it follows directly after code + * that manipulates the bignum) it is converted to bn_correct_top(), and if it + * was not appropriate, we convert it permanently to bn_check_top() and track + * down the cause of the bug. Eventually, no internal code should be using the + * bn_fix_top() macro. External applications and libraries should try this with + * their own code too, both in terms of building against the openssl headers + * with BN_DEBUG defined *and* linking with a version of OpenSSL built with it + * defined. This not only improves external code, it provides more test + * coverage for openssl's own code. + */ + +# ifdef BN_DEBUG + +/* We only need assert() when debugging */ +# include + +# ifdef BN_DEBUG_RAND +/* To avoid "make update" cvs wars due to BN_DEBUG, use some tricks */ +# ifndef RAND_pseudo_bytes +int RAND_pseudo_bytes(unsigned char *buf, int num); +# define BN_DEBUG_TRIX +# endif +# define bn_pollute(a) \ + do { \ + const BIGNUM *_bnum1 = (a); \ + if(_bnum1->top < _bnum1->dmax) { \ + unsigned char _tmp_char; \ + /* We cast away const without the compiler knowing, any \ + * *genuinely* constant variables that aren't mutable \ + * wouldn't be constructed with top!=dmax. */ \ + BN_ULONG *_not_const; \ + memcpy(&_not_const, &_bnum1->d, sizeof(BN_ULONG*)); \ + RAND_pseudo_bytes(&_tmp_char, 1); \ + memset((unsigned char *)(_not_const + _bnum1->top), _tmp_char, \ + (_bnum1->dmax - _bnum1->top) * sizeof(BN_ULONG)); \ + } \ + } while(0) +# ifdef BN_DEBUG_TRIX +# undef RAND_pseudo_bytes +# endif +# else +# define bn_pollute(a) +# endif +# define bn_check_top(a) \ + do { \ + const BIGNUM *_bnum2 = (a); \ + if (_bnum2 != NULL) { \ + assert((_bnum2->top == 0) || \ + (_bnum2->d[_bnum2->top - 1] != 0)); \ + bn_pollute(_bnum2); \ + } \ + } while(0) + +# define bn_fix_top(a) bn_check_top(a) + +# define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2) +# define bn_wcheck_size(bn, words) \ + do { \ + const BIGNUM *_bnum2 = (bn); \ + assert(words <= (_bnum2)->dmax && words >= (_bnum2)->top); \ + } while(0) + +# else /* !BN_DEBUG */ + +# define bn_pollute(a) +# define bn_check_top(a) +# define bn_fix_top(a) bn_correct_top(a) +# define bn_check_size(bn, bits) +# define bn_wcheck_size(bn, words) + +# endif + +# define bn_correct_top(a) \ + { \ + BN_ULONG *ftl; \ + if ((a)->top > 0) \ + { \ + for (ftl= &((a)->d[(a)->top-1]); (a)->top > 0; (a)->top--) \ + if (*(ftl--)) break; \ + } \ + bn_pollute(a); \ + } + +BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, + BN_ULONG w); +BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w); +void bn_sqr_words(BN_ULONG *rp, const BN_ULONG *ap, int num); +BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d); +BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, + int num); +BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, + int num); + +/* Primes from RFC 2409 */ +BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); +BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn); + +/* Primes from RFC 3526 */ +BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_2048(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_3072(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_4096(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_6144(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_8192(BIGNUM *bn); + +int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_BN_strings(void); + +/* Error codes for the BN functions. */ + +/* Function codes. */ +# define BN_F_BNRAND 127 +# define BN_F_BN_BLINDING_CONVERT_EX 100 +# define BN_F_BN_BLINDING_CREATE_PARAM 128 +# define BN_F_BN_BLINDING_INVERT_EX 101 +# define BN_F_BN_BLINDING_NEW 102 +# define BN_F_BN_BLINDING_UPDATE 103 +# define BN_F_BN_BN2DEC 104 +# define BN_F_BN_BN2HEX 105 +# define BN_F_BN_CTX_GET 116 +# define BN_F_BN_CTX_NEW 106 +# define BN_F_BN_CTX_START 129 +# define BN_F_BN_DIV 107 +# define BN_F_BN_DIV_NO_BRANCH 138 +# define BN_F_BN_DIV_RECP 130 +# define BN_F_BN_EXP 123 +# define BN_F_BN_EXPAND2 108 +# define BN_F_BN_EXPAND_INTERNAL 120 +# define BN_F_BN_GF2M_MOD 131 +# define BN_F_BN_GF2M_MOD_EXP 132 +# define BN_F_BN_GF2M_MOD_MUL 133 +# define BN_F_BN_GF2M_MOD_SOLVE_QUAD 134 +# define BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR 135 +# define BN_F_BN_GF2M_MOD_SQR 136 +# define BN_F_BN_GF2M_MOD_SQRT 137 +# define BN_F_BN_MOD_EXP2_MONT 118 +# define BN_F_BN_MOD_EXP_MONT 109 +# define BN_F_BN_MOD_EXP_MONT_CONSTTIME 124 +# define BN_F_BN_MOD_EXP_MONT_WORD 117 +# define BN_F_BN_MOD_EXP_RECP 125 +# define BN_F_BN_MOD_EXP_SIMPLE 126 +# define BN_F_BN_MOD_INVERSE 110 +# define BN_F_BN_MOD_INVERSE_NO_BRANCH 139 +# define BN_F_BN_MOD_LSHIFT_QUICK 119 +# define BN_F_BN_MOD_MUL_RECIPROCAL 111 +# define BN_F_BN_MOD_SQRT 121 +# define BN_F_BN_MPI2BN 112 +# define BN_F_BN_NEW 113 +# define BN_F_BN_RAND 114 +# define BN_F_BN_RAND_RANGE 122 +# define BN_F_BN_USUB 115 + +/* Reason codes. */ +# define BN_R_ARG2_LT_ARG3 100 +# define BN_R_BAD_RECIPROCAL 101 +# define BN_R_BIGNUM_TOO_LONG 114 +# define BN_R_CALLED_WITH_EVEN_MODULUS 102 +# define BN_R_DIV_BY_ZERO 103 +# define BN_R_ENCODING_ERROR 104 +# define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA 105 +# define BN_R_INPUT_NOT_REDUCED 110 +# define BN_R_INVALID_LENGTH 106 +# define BN_R_INVALID_RANGE 115 +# define BN_R_NOT_A_SQUARE 111 +# define BN_R_NOT_INITIALIZED 107 +# define BN_R_NO_INVERSE 108 +# define BN_R_NO_SOLUTION 116 +# define BN_R_P_IS_NOT_PRIME 112 +# define BN_R_TOO_MANY_ITERATIONS 113 +# define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/buffer.h b/CryptoPkg/Include/openssl/buffer.h new file mode 100644 index 0000000..910832f --- /dev/null +++ b/CryptoPkg/Include/openssl/buffer.h @@ -0,0 +1,117 @@ +/* crypto/buffer/buffer.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_BUFFER_H +# define HEADER_BUFFER_H + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +# include + +# if !defined(NO_SYS_TYPES_H) +# include +# endif + +/* Already declared in ossl_typ.h */ +/* typedef struct buf_mem_st BUF_MEM; */ + +struct buf_mem_st { + int length; /* current number of bytes */ + char *data; + int max; /* size of buffer */ +}; + +BUF_MEM *BUF_MEM_new(void); +void BUF_MEM_free(BUF_MEM *a); +int BUF_MEM_grow(BUF_MEM *str, int len); +int BUF_MEM_grow_clean(BUF_MEM *str, int len); +char *BUF_strdup(const char *str); +char *BUF_strndup(const char *str, size_t siz); +void *BUF_memdup(const void *data, size_t siz); + +/* safe string functions */ +size_t BUF_strlcpy(char *dst, const char *src, size_t siz); +size_t BUF_strlcat(char *dst, const char *src, size_t siz); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_BUF_strings(void); + +/* Error codes for the BUF functions. */ + +/* Function codes. */ +# define BUF_F_BUF_MEMDUP 103 +# define BUF_F_BUF_MEM_GROW 100 +# define BUF_F_BUF_MEM_GROW_CLEAN 105 +# define BUF_F_BUF_MEM_NEW 101 +# define BUF_F_BUF_STRDUP 102 +# define BUF_F_BUF_STRNDUP 104 + +/* Reason codes. */ + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/cast.h b/CryptoPkg/Include/openssl/cast.h new file mode 100644 index 0000000..46c97cd --- /dev/null +++ b/CryptoPkg/Include/openssl/cast.h @@ -0,0 +1,107 @@ +/* crypto/cast/cast.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_CAST_H +# define HEADER_CAST_H + +#ifdef __cplusplus +extern "C" { +#endif + +# include + +# ifdef OPENSSL_NO_CAST +# error CAST is disabled. +# endif + +# define CAST_ENCRYPT 1 +# define CAST_DECRYPT 0 + +# define CAST_LONG unsigned long + +# define CAST_BLOCK 8 +# define CAST_KEY_LENGTH 16 + +typedef struct cast_key_st { + CAST_LONG data[32]; + int short_key; /* Use reduced rounds for short key */ +} CAST_KEY; + +# ifdef OPENSSL_FIPS +void private_CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); +# endif +void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); +void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, + const CAST_KEY *key, int enc); +void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key); +void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key); +void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, + long length, const CAST_KEY *ks, unsigned char *iv, + int enc); +void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out, + long length, const CAST_KEY *schedule, + unsigned char *ivec, int *num, int enc); +void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, + long length, const CAST_KEY *schedule, + unsigned char *ivec, int *num); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/comp.h b/CryptoPkg/Include/openssl/comp.h new file mode 100644 index 0000000..406c428 --- /dev/null +++ b/CryptoPkg/Include/openssl/comp.h @@ -0,0 +1,79 @@ + +#ifndef HEADER_COMP_H +# define HEADER_COMP_H + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct comp_ctx_st COMP_CTX; + +typedef struct comp_method_st { + int type; /* NID for compression library */ + const char *name; /* A text string to identify the library */ + int (*init) (COMP_CTX *ctx); + void (*finish) (COMP_CTX *ctx); + int (*compress) (COMP_CTX *ctx, + unsigned char *out, unsigned int olen, + unsigned char *in, unsigned int ilen); + int (*expand) (COMP_CTX *ctx, + unsigned char *out, unsigned int olen, + unsigned char *in, unsigned int ilen); + /* + * The following two do NOTHING, but are kept for backward compatibility + */ + long (*ctrl) (void); + long (*callback_ctrl) (void); +} COMP_METHOD; + +struct comp_ctx_st { + COMP_METHOD *meth; + unsigned long compress_in; + unsigned long compress_out; + unsigned long expand_in; + unsigned long expand_out; + CRYPTO_EX_DATA ex_data; +}; + +COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); +void COMP_CTX_free(COMP_CTX *ctx); +int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, + unsigned char *in, int ilen); +int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, + unsigned char *in, int ilen); +COMP_METHOD *COMP_rle(void); +COMP_METHOD *COMP_zlib(void); +void COMP_zlib_cleanup(void); + +# ifdef HEADER_BIO_H +# ifdef ZLIB +BIO_METHOD *BIO_f_zlib(void); +# endif +# endif + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_COMP_strings(void); + +/* Error codes for the COMP functions. */ + +/* Function codes. */ +# define COMP_F_BIO_ZLIB_FLUSH 99 +# define COMP_F_BIO_ZLIB_NEW 100 +# define COMP_F_BIO_ZLIB_READ 101 +# define COMP_F_BIO_ZLIB_WRITE 102 + +/* Reason codes. */ +# define COMP_R_ZLIB_DEFLATE_ERROR 99 +# define COMP_R_ZLIB_INFLATE_ERROR 100 +# define COMP_R_ZLIB_NOT_SUPPORTED 101 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/conf.h b/CryptoPkg/Include/openssl/conf.h new file mode 100644 index 0000000..0cdadaf --- /dev/null +++ b/CryptoPkg/Include/openssl/conf.h @@ -0,0 +1,257 @@ +/* crypto/conf/conf.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_CONF_H +# define HEADER_CONF_H + +# include +# include +# include +# include +# include + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + char *section; + char *name; + char *value; +} CONF_VALUE; + +DECLARE_STACK_OF(CONF_VALUE) +DECLARE_STACK_OF(CONF_MODULE) +DECLARE_STACK_OF(CONF_IMODULE) + +struct conf_st; +struct conf_method_st; +typedef struct conf_method_st CONF_METHOD; + +struct conf_method_st { + const char *name; + CONF *(*create) (CONF_METHOD *meth); + int (*init) (CONF *conf); + int (*destroy) (CONF *conf); + int (*destroy_data) (CONF *conf); + int (*load_bio) (CONF *conf, BIO *bp, long *eline); + int (*dump) (const CONF *conf, BIO *bp); + int (*is_number) (const CONF *conf, char c); + int (*to_int) (const CONF *conf, char c); + int (*load) (CONF *conf, const char *name, long *eline); +}; + +/* Module definitions */ + +typedef struct conf_imodule_st CONF_IMODULE; +typedef struct conf_module_st CONF_MODULE; + +/* DSO module function typedefs */ +typedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf); +typedef void conf_finish_func (CONF_IMODULE *md); + +# define CONF_MFLAGS_IGNORE_ERRORS 0x1 +# define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2 +# define CONF_MFLAGS_SILENT 0x4 +# define CONF_MFLAGS_NO_DSO 0x8 +# define CONF_MFLAGS_IGNORE_MISSING_FILE 0x10 +# define CONF_MFLAGS_DEFAULT_SECTION 0x20 + +int CONF_set_default_method(CONF_METHOD *meth); +void CONF_set_nconf(CONF *conf, LHASH *hash); +LHASH *CONF_load(LHASH *conf, const char *file, long *eline); +# ifndef OPENSSL_NO_FP_API +LHASH *CONF_load_fp(LHASH *conf, FILE *fp, long *eline); +# endif +LHASH *CONF_load_bio(LHASH *conf, BIO *bp, long *eline); +STACK_OF(CONF_VALUE) *CONF_get_section(LHASH *conf, const char *section); +char *CONF_get_string(LHASH *conf, const char *group, const char *name); +long CONF_get_number(LHASH *conf, const char *group, const char *name); +void CONF_free(LHASH *conf); +int CONF_dump_fp(LHASH *conf, FILE *out); +int CONF_dump_bio(LHASH *conf, BIO *out); + +void OPENSSL_config(const char *config_name); +void OPENSSL_no_config(void); + +/* + * New conf code. The semantics are different from the functions above. If + * that wasn't the case, the above functions would have been replaced + */ + +struct conf_st { + CONF_METHOD *meth; + void *meth_data; + LHASH *data; +}; + +CONF *NCONF_new(CONF_METHOD *meth); +CONF_METHOD *NCONF_default(void); +CONF_METHOD *NCONF_WIN32(void); +# if 0 /* Just to give you an idea of what I have in + * mind */ +CONF_METHOD *NCONF_XML(void); +# endif +void NCONF_free(CONF *conf); +void NCONF_free_data(CONF *conf); + +int NCONF_load(CONF *conf, const char *file, long *eline); +# ifndef OPENSSL_NO_FP_API +int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); +# endif +int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); +STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, + const char *section); +char *NCONF_get_string(const CONF *conf, const char *group, const char *name); +int NCONF_get_number_e(const CONF *conf, const char *group, const char *name, + long *result); +int NCONF_dump_fp(const CONF *conf, FILE *out); +int NCONF_dump_bio(const CONF *conf, BIO *out); + +# if 0 /* The following function has no error + * checking, and should therefore be avoided */ +long NCONF_get_number(CONF *conf, char *group, char *name); +# else +# define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r) +# endif + +/* Module functions */ + +int CONF_modules_load(const CONF *cnf, const char *appname, + unsigned long flags); +int CONF_modules_load_file(const char *filename, const char *appname, + unsigned long flags); +void CONF_modules_unload(int all); +void CONF_modules_finish(void); +void CONF_modules_free(void); +int CONF_module_add(const char *name, conf_init_func *ifunc, + conf_finish_func *ffunc); + +const char *CONF_imodule_get_name(const CONF_IMODULE *md); +const char *CONF_imodule_get_value(const CONF_IMODULE *md); +void *CONF_imodule_get_usr_data(const CONF_IMODULE *md); +void CONF_imodule_set_usr_data(CONF_IMODULE *md, void *usr_data); +CONF_MODULE *CONF_imodule_get_module(const CONF_IMODULE *md); +unsigned long CONF_imodule_get_flags(const CONF_IMODULE *md); +void CONF_imodule_set_flags(CONF_IMODULE *md, unsigned long flags); +void *CONF_module_get_usr_data(CONF_MODULE *pmod); +void CONF_module_set_usr_data(CONF_MODULE *pmod, void *usr_data); + +char *CONF_get1_default_config_file(void); + +int CONF_parse_list(const char *list, int sep, int nospc, + int (*list_cb) (const char *elem, int len, void *usr), + void *arg); + +void OPENSSL_load_builtin_modules(void); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_CONF_strings(void); + +/* Error codes for the CONF functions. */ + +/* Function codes. */ +# define CONF_F_CONF_DUMP_FP 104 +# define CONF_F_CONF_LOAD 100 +# define CONF_F_CONF_LOAD_BIO 102 +# define CONF_F_CONF_LOAD_FP 103 +# define CONF_F_CONF_MODULES_LOAD 116 +# define CONF_F_DEF_LOAD 120 +# define CONF_F_DEF_LOAD_BIO 121 +# define CONF_F_MODULE_INIT 115 +# define CONF_F_MODULE_LOAD_DSO 117 +# define CONF_F_MODULE_RUN 118 +# define CONF_F_NCONF_DUMP_BIO 105 +# define CONF_F_NCONF_DUMP_FP 106 +# define CONF_F_NCONF_GET_NUMBER 107 +# define CONF_F_NCONF_GET_NUMBER_E 112 +# define CONF_F_NCONF_GET_SECTION 108 +# define CONF_F_NCONF_GET_STRING 109 +# define CONF_F_NCONF_LOAD 113 +# define CONF_F_NCONF_LOAD_BIO 110 +# define CONF_F_NCONF_LOAD_FP 114 +# define CONF_F_NCONF_NEW 111 +# define CONF_F_STR_COPY 101 + +/* Reason codes. */ +# define CONF_R_ERROR_LOADING_DSO 110 +# define CONF_R_MISSING_CLOSE_SQUARE_BRACKET 100 +# define CONF_R_MISSING_EQUAL_SIGN 101 +# define CONF_R_MISSING_FINISH_FUNCTION 111 +# define CONF_R_MISSING_INIT_FUNCTION 112 +# define CONF_R_MODULE_INITIALIZATION_ERROR 109 +# define CONF_R_NO_CLOSE_BRACE 102 +# define CONF_R_NO_CONF 105 +# define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE 106 +# define CONF_R_NO_SECTION 107 +# define CONF_R_NO_SUCH_FILE 114 +# define CONF_R_NO_VALUE 108 +# define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 +# define CONF_R_UNKNOWN_MODULE_NAME 113 +# define CONF_R_VARIABLE_HAS_NO_VALUE 104 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/conf_api.h b/CryptoPkg/Include/openssl/conf_api.h new file mode 100644 index 0000000..e478f7d --- /dev/null +++ b/CryptoPkg/Include/openssl/conf_api.h @@ -0,0 +1,89 @@ +/* conf_api.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_CONF_API_H +# define HEADER_CONF_API_H + +# include +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Up until OpenSSL 0.9.5a, this was new_section */ +CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); +/* Up until OpenSSL 0.9.5a, this was get_section */ +CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); +/* Up until OpenSSL 0.9.5a, this was CONF_get_section */ +STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, + const char *section); + +int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); +char *_CONF_get_string(const CONF *conf, const char *section, + const char *name); +long _CONF_get_number(const CONF *conf, const char *section, + const char *name); + +int _CONF_new_data(CONF *conf); +void _CONF_free_data(CONF *conf); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/crypto.h b/CryptoPkg/Include/openssl/crypto.h new file mode 100644 index 0000000..748330f --- /dev/null +++ b/CryptoPkg/Include/openssl/crypto.h @@ -0,0 +1,680 @@ +/* crypto/crypto.h */ +/* ==================================================================== + * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ +/* ==================================================================== + * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. + * ECDH support in OpenSSL originally developed by + * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. + */ + +#ifndef HEADER_CRYPTO_H +# define HEADER_CRYPTO_H + +# include + +# include + +# ifndef OPENSSL_NO_FP_API +# include +# endif + +# include +# include +# include +# include + +# ifdef CHARSET_EBCDIC +# include +# endif + +/* + * Resolve problems on some operating systems with symbol names that clash + * one way or another + */ +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* Backward compatibility to SSLeay */ +/* + * This is more to be used to check the correct DLL is being used in the MS + * world. + */ +# define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER +# define SSLEAY_VERSION 0 +/* #define SSLEAY_OPTIONS 1 no longer supported */ +# define SSLEAY_CFLAGS 2 +# define SSLEAY_BUILT_ON 3 +# define SSLEAY_PLATFORM 4 +# define SSLEAY_DIR 5 + +/* Already declared in ossl_typ.h */ +# if 0 +typedef struct crypto_ex_data_st CRYPTO_EX_DATA; +/* Called when a new object is created */ +typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad, + int idx, long argl, void *argp); +/* Called when an object is free()ed */ +typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad, + int idx, long argl, void *argp); +/* Called when we need to dup an object */ +typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, + void *from_d, int idx, long argl, void *argp); +# endif + +/* A generic structure to pass assorted data in a expandable way */ +typedef struct openssl_item_st { + int code; + void *value; /* Not used for flag attributes */ + size_t value_size; /* Max size of value for output, length for + * input */ + size_t *value_length; /* Returned length of value for output */ +} OPENSSL_ITEM; + +/* + * When changing the CRYPTO_LOCK_* list, be sure to maintin the text lock + * names in cryptlib.c + */ + +# define CRYPTO_LOCK_ERR 1 +# define CRYPTO_LOCK_EX_DATA 2 +# define CRYPTO_LOCK_X509 3 +# define CRYPTO_LOCK_X509_INFO 4 +# define CRYPTO_LOCK_X509_PKEY 5 +# define CRYPTO_LOCK_X509_CRL 6 +# define CRYPTO_LOCK_X509_REQ 7 +# define CRYPTO_LOCK_DSA 8 +# define CRYPTO_LOCK_RSA 9 +# define CRYPTO_LOCK_EVP_PKEY 10 +# define CRYPTO_LOCK_X509_STORE 11 +# define CRYPTO_LOCK_SSL_CTX 12 +# define CRYPTO_LOCK_SSL_CERT 13 +# define CRYPTO_LOCK_SSL_SESSION 14 +# define CRYPTO_LOCK_SSL_SESS_CERT 15 +# define CRYPTO_LOCK_SSL 16 +# define CRYPTO_LOCK_SSL_METHOD 17 +# define CRYPTO_LOCK_RAND 18 +# define CRYPTO_LOCK_RAND2 19 +# define CRYPTO_LOCK_MALLOC 20 +# define CRYPTO_LOCK_BIO 21 +# define CRYPTO_LOCK_GETHOSTBYNAME 22 +# define CRYPTO_LOCK_GETSERVBYNAME 23 +# define CRYPTO_LOCK_READDIR 24 +# define CRYPTO_LOCK_RSA_BLINDING 25 +# define CRYPTO_LOCK_DH 26 +# define CRYPTO_LOCK_MALLOC2 27 +# define CRYPTO_LOCK_DSO 28 +# define CRYPTO_LOCK_DYNLOCK 29 +# define CRYPTO_LOCK_ENGINE 30 +# define CRYPTO_LOCK_UI 31 +# define CRYPTO_LOCK_ECDSA 32 +# define CRYPTO_LOCK_EC 33 +# define CRYPTO_LOCK_ECDH 34 +# define CRYPTO_LOCK_BN 35 +# define CRYPTO_LOCK_EC_PRE_COMP 36 +# define CRYPTO_LOCK_STORE 37 +# define CRYPTO_LOCK_COMP 38 +# ifndef OPENSSL_FIPS +# define CRYPTO_NUM_LOCKS 39 +# else +# define CRYPTO_LOCK_FIPS 39 +# define CRYPTO_LOCK_FIPS2 40 +# define CRYPTO_NUM_LOCKS 41 +# endif + +# define CRYPTO_LOCK 1 +# define CRYPTO_UNLOCK 2 +# define CRYPTO_READ 4 +# define CRYPTO_WRITE 8 + +# ifndef OPENSSL_NO_LOCKING +# ifndef CRYPTO_w_lock +# define CRYPTO_w_lock(type) \ + CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,NULL,0) +# define CRYPTO_w_unlock(type) \ + CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,NULL,0) +# define CRYPTO_r_lock(type) \ + CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,NULL,0) +# define CRYPTO_r_unlock(type) \ + CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,NULL,0) +# define CRYPTO_add(addr,amount,type) \ + CRYPTO_add_lock(addr,amount,type,NULL,0) +# endif +# else +# define CRYPTO_w_lock(a) +# define CRYPTO_w_unlock(a) +# define CRYPTO_r_lock(a) +# define CRYPTO_r_unlock(a) +# define CRYPTO_add(a,b,c) ((*(a))+=(b)) +# endif + +/* + * Some applications as well as some parts of OpenSSL need to allocate and + * deallocate locks in a dynamic fashion. The following typedef makes this + * possible in a type-safe manner. + */ +/* struct CRYPTO_dynlock_value has to be defined by the application. */ +typedef struct { + int references; + struct CRYPTO_dynlock_value *data; +} CRYPTO_dynlock; + +/* + * The following can be used to detect memory leaks in the SSLeay library. It + * used, it turns on malloc checking + */ + +# define CRYPTO_MEM_CHECK_OFF 0x0/* an enume */ +# define CRYPTO_MEM_CHECK_ON 0x1/* a bit */ +# define CRYPTO_MEM_CHECK_ENABLE 0x2/* a bit */ +# define CRYPTO_MEM_CHECK_DISABLE 0x3/* an enume */ + +/* + * The following are bit values to turn on or off options connected to the + * malloc checking functionality + */ + +/* Adds time to the memory checking information */ +# define V_CRYPTO_MDEBUG_TIME 0x1/* a bit */ +/* Adds thread number to the memory checking information */ +# define V_CRYPTO_MDEBUG_THREAD 0x2/* a bit */ + +# define V_CRYPTO_MDEBUG_ALL (V_CRYPTO_MDEBUG_TIME | V_CRYPTO_MDEBUG_THREAD) + +/* predec of the BIO type */ +typedef struct bio_st BIO_dummy; + +struct crypto_ex_data_st { + STACK *sk; + /* gcc is screwing up this data structure :-( */ + int dummy; +}; + +/* + * This stuff is basically class callback functions The current classes are + * SSL_CTX, SSL, SSL_SESSION, and a few more + */ + +typedef struct crypto_ex_data_func_st { + long argl; /* Arbitary long */ + void *argp; /* Arbitary void * */ + CRYPTO_EX_new *new_func; + CRYPTO_EX_free *free_func; + CRYPTO_EX_dup *dup_func; +} CRYPTO_EX_DATA_FUNCS; + +DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS) + +/* + * Per class, we have a STACK of CRYPTO_EX_DATA_FUNCS for each CRYPTO_EX_DATA + * entry. + */ + +# define CRYPTO_EX_INDEX_BIO 0 +# define CRYPTO_EX_INDEX_SSL 1 +# define CRYPTO_EX_INDEX_SSL_CTX 2 +# define CRYPTO_EX_INDEX_SSL_SESSION 3 +# define CRYPTO_EX_INDEX_X509_STORE 4 +# define CRYPTO_EX_INDEX_X509_STORE_CTX 5 +# define CRYPTO_EX_INDEX_RSA 6 +# define CRYPTO_EX_INDEX_DSA 7 +# define CRYPTO_EX_INDEX_DH 8 +# define CRYPTO_EX_INDEX_ENGINE 9 +# define CRYPTO_EX_INDEX_X509 10 +# define CRYPTO_EX_INDEX_UI 11 +# define CRYPTO_EX_INDEX_ECDSA 12 +# define CRYPTO_EX_INDEX_ECDH 13 +# define CRYPTO_EX_INDEX_COMP 14 +# define CRYPTO_EX_INDEX_STORE 15 + +/* + * Dynamically assigned indexes start from this value (don't use directly, + * use via CRYPTO_ex_data_new_class). + */ +# define CRYPTO_EX_INDEX_USER 100 + +/* + * This is the default callbacks, but we can have others as well: this is + * needed in Win32 where the application malloc and the library malloc may + * not be the same. + */ +# define CRYPTO_malloc_init() CRYPTO_set_mem_functions(\ + malloc, realloc, free) + +# if defined CRYPTO_MDEBUG_ALL || defined CRYPTO_MDEBUG_TIME || defined CRYPTO_MDEBUG_THREAD +# ifndef CRYPTO_MDEBUG /* avoid duplicate #define */ +# define CRYPTO_MDEBUG +# endif +# endif + +/* + * Set standard debugging functions (not done by default unless CRYPTO_MDEBUG + * is defined) + */ +void CRYPTO_malloc_debug_init(void); + +int CRYPTO_mem_ctrl(int mode); +int CRYPTO_is_mem_check_on(void); + +/* for applications */ +# define MemCheck_start() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) +# define MemCheck_stop() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) + +/* for library-internal use */ +# define MemCheck_on() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) +# define MemCheck_off() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) +# define is_MemCheck_on() CRYPTO_is_mem_check_on() + +# define OPENSSL_malloc(num) CRYPTO_malloc((int)num,NULL,0) +# define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0) +# define OPENSSL_realloc(addr,num) \ + CRYPTO_realloc((char *)addr,(int)num,NULL,0) +# define OPENSSL_realloc_clean(addr,old_num,num) \ + CRYPTO_realloc_clean(addr,old_num,num,NULL,0) +# define OPENSSL_remalloc(addr,num) \ + CRYPTO_remalloc((char **)addr,(int)num,NULL,0) +# define OPENSSL_freeFunc CRYPTO_free +# define OPENSSL_free(addr) CRYPTO_free(addr) + +# define OPENSSL_malloc_locked(num) \ + CRYPTO_malloc_locked((int)num,NULL,0) +# define OPENSSL_free_locked(addr) CRYPTO_free_locked(addr) + +const char *SSLeay_version(int type); +unsigned long SSLeay(void); + +int OPENSSL_issetugid(void); + +/* An opaque type representing an implementation of "ex_data" support */ +typedef struct st_CRYPTO_EX_DATA_IMPL CRYPTO_EX_DATA_IMPL; +/* Return an opaque pointer to the current "ex_data" implementation */ +const CRYPTO_EX_DATA_IMPL *CRYPTO_get_ex_data_implementation(void); +/* Sets the "ex_data" implementation to be used (if it's not too late) */ +int CRYPTO_set_ex_data_implementation(const CRYPTO_EX_DATA_IMPL *i); +/* Get a new "ex_data" class, and return the corresponding "class_index" */ +int CRYPTO_ex_data_new_class(void); +/* Within a given class, get/register a new index */ +int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp, + CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, + CRYPTO_EX_free *free_func); +/* + * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a + * given class (invokes whatever per-class callbacks are applicable) + */ +int CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad); +int CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to, + CRYPTO_EX_DATA *from); +void CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad); +/* + * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular + * index (relative to the class type involved) + */ +int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val); +void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx); +/* + * This function cleans up all "ex_data" state. It mustn't be called under + * potential race-conditions. + */ +void CRYPTO_cleanup_all_ex_data(void); + +int CRYPTO_get_new_lockid(char *name); + +int CRYPTO_num_locks(void); /* return CRYPTO_NUM_LOCKS (shared libs!) */ +void CRYPTO_lock(int mode, int type, const char *file, int line); +void CRYPTO_set_locking_callback(void (*func) (int mode, int type, + const char *file, int line)); +void (*CRYPTO_get_locking_callback(void)) (int mode, int type, + const char *file, int line); +void CRYPTO_set_add_lock_callback(int (*func) + (int *num, int mount, int type, + const char *file, int line)); +int (*CRYPTO_get_add_lock_callback(void)) (int *num, int mount, int type, + const char *file, int line); +void CRYPTO_set_id_callback(unsigned long (*func) (void)); +unsigned long (*CRYPTO_get_id_callback(void)) (void); +unsigned long CRYPTO_thread_id(void); +const char *CRYPTO_get_lock_name(int type); +int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file, + int line); + +void int_CRYPTO_set_do_dynlock_callback(void (*do_dynlock_cb) + (int mode, int type, + const char *file, int line)); + +int CRYPTO_get_new_dynlockid(void); +void CRYPTO_destroy_dynlockid(int i); +struct CRYPTO_dynlock_value *CRYPTO_get_dynlock_value(int i); +void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value + *(*dyn_create_function) (const char + *file, + int line)); +void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function) + (int mode, + struct CRYPTO_dynlock_value *l, + const char *file, int line)); +void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function) + (struct CRYPTO_dynlock_value *l, + const char *file, int line)); +struct CRYPTO_dynlock_value +*(*CRYPTO_get_dynlock_create_callback(void)) (const char *file, int line); +void (*CRYPTO_get_dynlock_lock_callback(void)) (int mode, + struct CRYPTO_dynlock_value + *l, const char *file, + int line); +void (*CRYPTO_get_dynlock_destroy_callback(void)) (struct CRYPTO_dynlock_value + *l, const char *file, + int line); + +/* + * CRYPTO_set_mem_functions includes CRYPTO_set_locked_mem_functions -- call + * the latter last if you need different functions + */ +int CRYPTO_set_mem_functions(void *(*m) (size_t), void *(*r) (void *, size_t), + void (*f) (void *)); +int CRYPTO_set_locked_mem_functions(void *(*m) (size_t), + void (*free_func) (void *)); +int CRYPTO_set_mem_ex_functions(void *(*m) (size_t, const char *, int), + void *(*r) (void *, size_t, const char *, + int), void (*f) (void *)); +int CRYPTO_set_locked_mem_ex_functions(void *(*m) (size_t, const char *, int), + void (*free_func) (void *)); +int CRYPTO_set_mem_debug_functions(void (*m) + (void *, int, const char *, int, int), + void (*r) (void *, void *, int, + const char *, int, int), + void (*f) (void *, int), void (*so) (long), + long (*go) (void)); +void CRYPTO_set_mem_info_functions(int (*push_info_fn) + (const char *info, const char *file, + int line), int (*pop_info_fn) (void), + int (*remove_all_info_fn) (void)); +void CRYPTO_get_mem_functions(void *(**m) (size_t), + void *(**r) (void *, size_t), + void (**f) (void *)); +void CRYPTO_get_locked_mem_functions(void *(**m) (size_t), + void (**f) (void *)); +void CRYPTO_get_mem_ex_functions(void *(**m) (size_t, const char *, int), + void *(**r) (void *, size_t, const char *, + int), void (**f) (void *)); +void CRYPTO_get_locked_mem_ex_functions(void + *(**m) (size_t, const char *, int), + void (**f) (void *)); +void CRYPTO_get_mem_debug_functions(void (**m) + (void *, int, const char *, int, int), + void (**r) (void *, void *, int, + const char *, int, int), + void (**f) (void *, int), + void (**so) (long), long (**go) (void)); + +void *CRYPTO_malloc_locked(int num, const char *file, int line); +void CRYPTO_free_locked(void *); +void *CRYPTO_malloc(int num, const char *file, int line); +char *CRYPTO_strdup(const char *str, const char *file, int line); +void CRYPTO_free(void *); +void *CRYPTO_realloc(void *addr, int num, const char *file, int line); +void *CRYPTO_realloc_clean(void *addr, int old_num, int num, const char *file, + int line); +void *CRYPTO_remalloc(void *addr, int num, const char *file, int line); + +void OPENSSL_cleanse(void *ptr, size_t len); + +void CRYPTO_set_mem_debug_options(long bits); +long CRYPTO_get_mem_debug_options(void); + +# define CRYPTO_push_info(info) \ + CRYPTO_push_info_(info, NULL, 0); +int CRYPTO_push_info_(const char *info, const char *file, int line); +int CRYPTO_pop_info(void); +int CRYPTO_remove_all_info(void); + +/* + * Default debugging functions (enabled by CRYPTO_malloc_debug_init() macro; + * used as default in CRYPTO_MDEBUG compilations): + */ +/*- + * The last argument has the following significance: + * + * 0: called before the actual memory allocation has taken place + * 1: called after the actual memory allocation has taken place + */ +void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line, + int before_p); +void CRYPTO_dbg_realloc(void *addr1, void *addr2, int num, const char *file, + int line, int before_p); +void CRYPTO_dbg_free(void *addr, int before_p); +/*- + * Tell the debugging code about options. By default, the following values + * apply: + * + * 0: Clear all options. + * V_CRYPTO_MDEBUG_TIME (1): Set the "Show Time" option. + * V_CRYPTO_MDEBUG_THREAD (2): Set the "Show Thread Number" option. + * V_CRYPTO_MDEBUG_ALL (3): 1 + 2 + */ +void CRYPTO_dbg_set_options(long bits); +long CRYPTO_dbg_get_options(void); + +int CRYPTO_dbg_push_info(const char *info, const char *file, int line); +int CRYPTO_dbg_pop_info(void); +int CRYPTO_dbg_remove_all_info(void); + +# ifndef OPENSSL_NO_FP_API +void CRYPTO_mem_leaks_fp(FILE *); +# endif +void CRYPTO_mem_leaks(struct bio_st *bio); +/* unsigned long order, char *file, int line, int num_bytes, char *addr */ +typedef void *CRYPTO_MEM_LEAK_CB (unsigned long, const char *, int, int, + void *); +void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB *cb); + +/* die if we have to */ +void OpenSSLDie(const char *file, int line, const char *assertion); +# define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(NULL, 0, #e),1)) + +unsigned long *OPENSSL_ia32cap_loc(void); +# define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc())) +int OPENSSL_isservice(void); + +# ifdef OPENSSL_FIPS +# define FIPS_ERROR_IGNORED(alg) OpenSSLDie(NULL, 0, \ + alg " previous FIPS forbidden algorithm error ignored"); + +# define FIPS_BAD_ABORT(alg) OpenSSLDie(NULL, 0, \ + #alg " Algorithm forbidden in FIPS mode"); + +# ifdef OPENSSL_FIPS_STRICT +# define FIPS_BAD_ALGORITHM(alg) FIPS_BAD_ABORT(alg) +# else +# define FIPS_BAD_ALGORITHM(alg) \ + { \ + FIPSerr(FIPS_F_HASH_FINAL,FIPS_R_NON_FIPS_METHOD); \ + ERR_add_error_data(2, "Algorithm=", #alg); \ + return 0; \ + } +# endif + +/* Low level digest API blocking macro */ + +# define FIPS_NON_FIPS_MD_Init(alg) \ + int alg##_Init(alg##_CTX *c) \ + { \ + if (FIPS_mode()) \ + FIPS_BAD_ALGORITHM(alg) \ + return private_##alg##_Init(c); \ + } \ + int private_##alg##_Init(alg##_CTX *c) + +/* + * For ciphers the API often varies from cipher to cipher and each needs to + * be treated as a special case. Variable key length ciphers (Blowfish, RC4, + * CAST) however are very similar and can use a blocking macro. + */ + +# define FIPS_NON_FIPS_VCIPHER_Init(alg) \ + void alg##_set_key(alg##_KEY *key, int len, const unsigned char *data) \ + { \ + if (FIPS_mode()) \ + FIPS_BAD_ABORT(alg) \ + private_##alg##_set_key(key, len, data); \ + } \ + void private_##alg##_set_key(alg##_KEY *key, int len, \ + const unsigned char *data) + +# else + +# define FIPS_NON_FIPS_VCIPHER_Init(alg) \ + void alg##_set_key(alg##_KEY *key, int len, const unsigned char *data) + +# define FIPS_NON_FIPS_MD_Init(alg) \ + int alg##_Init(alg##_CTX *c) + +# endif /* def OPENSSL_FIPS */ + +# define OPENSSL_HAVE_INIT 1 +void OPENSSL_init(void); + +/* + * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. + * It takes an amount of time dependent on |len|, but independent of the + * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements + * into a defined order as the return value when a != b is undefined, other + * than to be non-zero. + */ +int CRYPTO_memcmp(const void *a, const void *b, size_t len); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_CRYPTO_strings(void); + +/* Error codes for the CRYPTO functions. */ + +/* Function codes. */ +# define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100 +# define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID 103 +# define CRYPTO_F_CRYPTO_GET_NEW_LOCKID 101 +# define CRYPTO_F_CRYPTO_SET_EX_DATA 102 +# define CRYPTO_F_DEF_ADD_INDEX 104 +# define CRYPTO_F_DEF_GET_CLASS 105 +# define CRYPTO_F_INT_DUP_EX_DATA 106 +# define CRYPTO_F_INT_FREE_EX_DATA 107 +# define CRYPTO_F_INT_NEW_EX_DATA 108 + +/* Reason codes. */ +# define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/des.h b/CryptoPkg/Include/openssl/des.h new file mode 100644 index 0000000..fe02e34 --- /dev/null +++ b/CryptoPkg/Include/openssl/des.h @@ -0,0 +1,253 @@ +/* crypto/des/des.h */ +/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_NEW_DES_H +# define HEADER_NEW_DES_H + +# include /* OPENSSL_EXTERN, OPENSSL_NO_DES, DES_LONG + * (via openssl/opensslconf.h */ + +# ifdef OPENSSL_NO_DES +# error DES is disabled. +# endif + +# ifdef OPENSSL_BUILD_SHLIBCRYPTO +# undef OPENSSL_EXTERN +# define OPENSSL_EXTERN OPENSSL_EXPORT +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef unsigned char DES_cblock[8]; +typedef /* const */ unsigned char const_DES_cblock[8]; +/* + * With "const", gcc 2.8.1 on Solaris thinks that DES_cblock * and + * const_DES_cblock * are incompatible pointer types. + */ + +typedef struct DES_ks { + union { + DES_cblock cblock; + /* + * make sure things are correct size on machines with 8 byte longs + */ + DES_LONG deslong[2]; + } ks[16]; +} DES_key_schedule; + +# ifndef OPENSSL_DISABLE_OLD_DES_SUPPORT +# ifndef OPENSSL_ENABLE_OLD_DES_SUPPORT +# define OPENSSL_ENABLE_OLD_DES_SUPPORT +# endif +# endif + +# ifdef OPENSSL_ENABLE_OLD_DES_SUPPORT +# include +# endif + +# define DES_KEY_SZ (sizeof(DES_cblock)) +# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule)) + +# define DES_ENCRYPT 1 +# define DES_DECRYPT 0 + +# define DES_CBC_MODE 0 +# define DES_PCBC_MODE 1 + +# define DES_ecb2_encrypt(i,o,k1,k2,e) \ + DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e)) + +# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ + DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e)) + +# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ + DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e)) + +# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ + DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) + +OPENSSL_DECLARE_GLOBAL(int, DES_check_key); /* defaults to false */ +# define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key) +OPENSSL_DECLARE_GLOBAL(int, DES_rw_mode); /* defaults to DES_PCBC_MODE */ +# define DES_rw_mode OPENSSL_GLOBAL_REF(DES_rw_mode) + +const char *DES_options(void); +void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, + DES_key_schedule *ks1, DES_key_schedule *ks2, + DES_key_schedule *ks3, int enc); +DES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output, + long length, DES_key_schedule *schedule, + const_DES_cblock *ivec); +/* DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. */ +void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, int enc); +void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, int enc); +void DES_xcbc_encrypt(const unsigned char *input, unsigned char *output, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, const_DES_cblock *inw, + const_DES_cblock *outw, int enc); +void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, int enc); +void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, + DES_key_schedule *ks, int enc); + +/* + * This is the DES encryption function that gets called by just about every + * other DES routine in the library. You should not use this function except + * to implement 'modes' of DES. I say this because the functions that call + * this routine do the conversion from 'char *' to long, and this needs to be + * done to make sure 'non-aligned' memory access do not occur. The + * characters are loaded 'little endian'. Data is a pointer to 2 unsigned + * long's and ks is the DES_key_schedule to use. enc, is non zero specifies + * encryption, zero if decryption. + */ +void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc); + +/* + * This functions is the same as DES_encrypt1() except that the DES initial + * permutation (IP) and final permutation (FP) have been left out. As for + * DES_encrypt1(), you should not use this function. It is used by the + * routines in the library that implement triple DES. IP() DES_encrypt2() + * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1() + * DES_encrypt1() DES_encrypt1() except faster :-). + */ +void DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc); + +void DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1, + DES_key_schedule *ks2, DES_key_schedule *ks3); +void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, + DES_key_schedule *ks2, DES_key_schedule *ks3); +void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, + long length, + DES_key_schedule *ks1, DES_key_schedule *ks2, + DES_key_schedule *ks3, DES_cblock *ivec, int enc); +void DES_ede3_cbcm_encrypt(const unsigned char *in, unsigned char *out, + long length, + DES_key_schedule *ks1, DES_key_schedule *ks2, + DES_key_schedule *ks3, + DES_cblock *ivec1, DES_cblock *ivec2, int enc); +void DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out, + long length, DES_key_schedule *ks1, + DES_key_schedule *ks2, DES_key_schedule *ks3, + DES_cblock *ivec, int *num, int enc); +void DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out, + int numbits, long length, DES_key_schedule *ks1, + DES_key_schedule *ks2, DES_key_schedule *ks3, + DES_cblock *ivec, int enc); +void DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out, + long length, DES_key_schedule *ks1, + DES_key_schedule *ks2, DES_key_schedule *ks3, + DES_cblock *ivec, int *num); +# if 0 +void DES_xwhite_in2out(const_DES_cblock *DES_key, const_DES_cblock *in_white, + DES_cblock *out_white); +# endif + +int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, + DES_cblock *iv); +int DES_enc_write(int fd, const void *buf, int len, DES_key_schedule *sched, + DES_cblock *iv); +char *DES_fcrypt(const char *buf, const char *salt, char *ret); +char *DES_crypt(const char *buf, const char *salt); +void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits, + long length, DES_key_schedule *schedule, + DES_cblock *ivec); +void DES_pcbc_encrypt(const unsigned char *input, unsigned char *output, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, int enc); +DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], + long length, int out_count, DES_cblock *seed); +int DES_random_key(DES_cblock *ret); +void DES_set_odd_parity(DES_cblock *key); +int DES_check_key_parity(const_DES_cblock *key); +int DES_is_weak_key(const_DES_cblock *key); +/* + * DES_set_key (= set_key = DES_key_sched = key_sched) calls + * DES_set_key_checked if global variable DES_check_key is set, + * DES_set_key_unchecked otherwise. + */ +int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule); +int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule); +int DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule); +void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); +void DES_string_to_key(const char *str, DES_cblock *key); +void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2); +void DES_cfb64_encrypt(const unsigned char *in, unsigned char *out, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, int *num, int enc); +void DES_ofb64_encrypt(const unsigned char *in, unsigned char *out, + long length, DES_key_schedule *schedule, + DES_cblock *ivec, int *num); + +int DES_read_password(DES_cblock *key, const char *prompt, int verify); +int DES_read_2passwords(DES_cblock *key1, DES_cblock *key2, + const char *prompt, int verify); + +# define DES_fixup_key_parity DES_set_odd_parity + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/des_old.h b/CryptoPkg/Include/openssl/des_old.h new file mode 100644 index 0000000..f1e1e2c --- /dev/null +++ b/CryptoPkg/Include/openssl/des_old.h @@ -0,0 +1,497 @@ +/* crypto/des/des_old.h -*- mode:C; c-file-style: "eay" -*- */ + +/*- + * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING + * + * The function names in here are deprecated and are only present to + * provide an interface compatible with openssl 0.9.6 and older as + * well as libdes. OpenSSL now provides functions where "des_" has + * been replaced with "DES_" in the names, to make it possible to + * make incompatible changes that are needed for C type security and + * other stuff. + * + * This include files has two compatibility modes: + * + * - If OPENSSL_DES_LIBDES_COMPATIBILITY is defined, you get an API + * that is compatible with libdes and SSLeay. + * - If OPENSSL_DES_LIBDES_COMPATIBILITY isn't defined, you get an + * API that is compatible with OpenSSL 0.9.5x to 0.9.6x. + * + * Note that these modes break earlier snapshots of OpenSSL, where + * libdes compatibility was the only available mode or (later on) the + * prefered compatibility mode. However, after much consideration + * (and more or less violent discussions with external parties), it + * was concluded that OpenSSL should be compatible with earlier versions + * of itself before anything else. Also, in all honesty, libdes is + * an old beast that shouldn't really be used any more. + * + * Please consider starting to use the DES_ functions rather than the + * des_ ones. The des_ functions will disappear completely before + * OpenSSL 1.0! + * + * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING + */ + +/* + * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project + * 2001. + */ +/* ==================================================================== + * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + +#ifndef HEADER_DES_H +# define HEADER_DES_H + +# include /* OPENSSL_EXTERN, OPENSSL_NO_DES, DES_LONG */ + +# ifdef OPENSSL_NO_DES +# error DES is disabled. +# endif + +# ifndef HEADER_NEW_DES_H +# error You must include des.h, not des_old.h directly. +# endif + +# ifdef _KERBEROS_DES_H +# error replaces . +# endif + +# include + +# ifdef OPENSSL_BUILD_SHLIBCRYPTO +# undef OPENSSL_EXTERN +# define OPENSSL_EXTERN OPENSSL_EXPORT +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +# ifdef _ +# undef _ +# endif + +typedef unsigned char _ossl_old_des_cblock[8]; +typedef struct _ossl_old_des_ks_struct { + union { + _ossl_old_des_cblock _; + /* + * make sure things are correct size on machines with 8 byte longs + */ + DES_LONG pad[2]; + } ks; +} _ossl_old_des_key_schedule[16]; + +# ifndef OPENSSL_DES_LIBDES_COMPATIBILITY +# define des_cblock DES_cblock +# define const_des_cblock const_DES_cblock +# define des_key_schedule DES_key_schedule +# define des_ecb3_encrypt(i,o,k1,k2,k3,e)\ + DES_ecb3_encrypt((i),(o),&(k1),&(k2),&(k3),(e)) +# define des_ede3_cbc_encrypt(i,o,l,k1,k2,k3,iv,e)\ + DES_ede3_cbc_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv),(e)) +# define des_ede3_cbcm_encrypt(i,o,l,k1,k2,k3,iv1,iv2,e)\ + DES_ede3_cbcm_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv1),(iv2),(e)) +# define des_ede3_cfb64_encrypt(i,o,l,k1,k2,k3,iv,n,e)\ + DES_ede3_cfb64_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv),(n),(e)) +# define des_ede3_ofb64_encrypt(i,o,l,k1,k2,k3,iv,n)\ + DES_ede3_ofb64_encrypt((i),(o),(l),&(k1),&(k2),&(k3),(iv),(n)) +# define des_options()\ + DES_options() +# define des_cbc_cksum(i,o,l,k,iv)\ + DES_cbc_cksum((i),(o),(l),&(k),(iv)) +# define des_cbc_encrypt(i,o,l,k,iv,e)\ + DES_cbc_encrypt((i),(o),(l),&(k),(iv),(e)) +# define des_ncbc_encrypt(i,o,l,k,iv,e)\ + DES_ncbc_encrypt((i),(o),(l),&(k),(iv),(e)) +# define des_xcbc_encrypt(i,o,l,k,iv,inw,outw,e)\ + DES_xcbc_encrypt((i),(o),(l),&(k),(iv),(inw),(outw),(e)) +# define des_cfb_encrypt(i,o,n,l,k,iv,e)\ + DES_cfb_encrypt((i),(o),(n),(l),&(k),(iv),(e)) +# define des_ecb_encrypt(i,o,k,e)\ + DES_ecb_encrypt((i),(o),&(k),(e)) +# define des_encrypt1(d,k,e)\ + DES_encrypt1((d),&(k),(e)) +# define des_encrypt2(d,k,e)\ + DES_encrypt2((d),&(k),(e)) +# define des_encrypt3(d,k1,k2,k3)\ + DES_encrypt3((d),&(k1),&(k2),&(k3)) +# define des_decrypt3(d,k1,k2,k3)\ + DES_decrypt3((d),&(k1),&(k2),&(k3)) +# define des_xwhite_in2out(k,i,o)\ + DES_xwhite_in2out((k),(i),(o)) +# define des_enc_read(f,b,l,k,iv)\ + DES_enc_read((f),(b),(l),&(k),(iv)) +# define des_enc_write(f,b,l,k,iv)\ + DES_enc_write((f),(b),(l),&(k),(iv)) +# define des_fcrypt(b,s,r)\ + DES_fcrypt((b),(s),(r)) +# if 0 +# define des_crypt(b,s)\ + DES_crypt((b),(s)) +# if !defined(PERL5) && !defined(__FreeBSD__) && !defined(NeXT) && !defined(__OpenBSD__) +# define crypt(b,s)\ + DES_crypt((b),(s)) +# endif +# endif +# define des_ofb_encrypt(i,o,n,l,k,iv)\ + DES_ofb_encrypt((i),(o),(n),(l),&(k),(iv)) +# define des_pcbc_encrypt(i,o,l,k,iv,e)\ + DES_pcbc_encrypt((i),(o),(l),&(k),(iv),(e)) +# define des_quad_cksum(i,o,l,c,s)\ + DES_quad_cksum((i),(o),(l),(c),(s)) +# define des_random_seed(k)\ + _ossl_096_des_random_seed((k)) +# define des_random_key(r)\ + DES_random_key((r)) +# define des_read_password(k,p,v) \ + DES_read_password((k),(p),(v)) +# define des_read_2passwords(k1,k2,p,v) \ + DES_read_2passwords((k1),(k2),(p),(v)) +# define des_set_odd_parity(k)\ + DES_set_odd_parity((k)) +# define des_check_key_parity(k)\ + DES_check_key_parity((k)) +# define des_is_weak_key(k)\ + DES_is_weak_key((k)) +# define des_set_key(k,ks)\ + DES_set_key((k),&(ks)) +# define des_key_sched(k,ks)\ + DES_key_sched((k),&(ks)) +# define des_set_key_checked(k,ks)\ + DES_set_key_checked((k),&(ks)) +# define des_set_key_unchecked(k,ks)\ + DES_set_key_unchecked((k),&(ks)) +# define des_string_to_key(s,k)\ + DES_string_to_key((s),(k)) +# define des_string_to_2keys(s,k1,k2)\ + DES_string_to_2keys((s),(k1),(k2)) +# define des_cfb64_encrypt(i,o,l,ks,iv,n,e)\ + DES_cfb64_encrypt((i),(o),(l),&(ks),(iv),(n),(e)) +# define des_ofb64_encrypt(i,o,l,ks,iv,n)\ + DES_ofb64_encrypt((i),(o),(l),&(ks),(iv),(n)) + +# define des_ecb2_encrypt(i,o,k1,k2,e) \ + des_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e)) + +# define des_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ + des_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e)) + +# define des_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ + des_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e)) + +# define des_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ + des_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) + +# define des_check_key DES_check_key +# define des_rw_mode DES_rw_mode +# else /* libdes compatibility */ +/* + * Map all symbol names to _ossl_old_des_* form, so we avoid all clashes with + * libdes + */ +# define des_cblock _ossl_old_des_cblock +# define des_key_schedule _ossl_old_des_key_schedule +# define des_ecb3_encrypt(i,o,k1,k2,k3,e)\ + _ossl_old_des_ecb3_encrypt((i),(o),(k1),(k2),(k3),(e)) +# define des_ede3_cbc_encrypt(i,o,l,k1,k2,k3,iv,e)\ + _ossl_old_des_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k3),(iv),(e)) +# define des_ede3_cfb64_encrypt(i,o,l,k1,k2,k3,iv,n,e)\ + _ossl_old_des_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k3),(iv),(n),(e)) +# define des_ede3_ofb64_encrypt(i,o,l,k1,k2,k3,iv,n)\ + _ossl_old_des_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k3),(iv),(n)) +# define des_options()\ + _ossl_old_des_options() +# define des_cbc_cksum(i,o,l,k,iv)\ + _ossl_old_des_cbc_cksum((i),(o),(l),(k),(iv)) +# define des_cbc_encrypt(i,o,l,k,iv,e)\ + _ossl_old_des_cbc_encrypt((i),(o),(l),(k),(iv),(e)) +# define des_ncbc_encrypt(i,o,l,k,iv,e)\ + _ossl_old_des_ncbc_encrypt((i),(o),(l),(k),(iv),(e)) +# define des_xcbc_encrypt(i,o,l,k,iv,inw,outw,e)\ + _ossl_old_des_xcbc_encrypt((i),(o),(l),(k),(iv),(inw),(outw),(e)) +# define des_cfb_encrypt(i,o,n,l,k,iv,e)\ + _ossl_old_des_cfb_encrypt((i),(o),(n),(l),(k),(iv),(e)) +# define des_ecb_encrypt(i,o,k,e)\ + _ossl_old_des_ecb_encrypt((i),(o),(k),(e)) +# define des_encrypt(d,k,e)\ + _ossl_old_des_encrypt((d),(k),(e)) +# define des_encrypt2(d,k,e)\ + _ossl_old_des_encrypt2((d),(k),(e)) +# define des_encrypt3(d,k1,k2,k3)\ + _ossl_old_des_encrypt3((d),(k1),(k2),(k3)) +# define des_decrypt3(d,k1,k2,k3)\ + _ossl_old_des_decrypt3((d),(k1),(k2),(k3)) +# define des_xwhite_in2out(k,i,o)\ + _ossl_old_des_xwhite_in2out((k),(i),(o)) +# define des_enc_read(f,b,l,k,iv)\ + _ossl_old_des_enc_read((f),(b),(l),(k),(iv)) +# define des_enc_write(f,b,l,k,iv)\ + _ossl_old_des_enc_write((f),(b),(l),(k),(iv)) +# define des_fcrypt(b,s,r)\ + _ossl_old_des_fcrypt((b),(s),(r)) +# define des_crypt(b,s)\ + _ossl_old_des_crypt((b),(s)) +# if 0 +# define crypt(b,s)\ + _ossl_old_crypt((b),(s)) +# endif +# define des_ofb_encrypt(i,o,n,l,k,iv)\ + _ossl_old_des_ofb_encrypt((i),(o),(n),(l),(k),(iv)) +# define des_pcbc_encrypt(i,o,l,k,iv,e)\ + _ossl_old_des_pcbc_encrypt((i),(o),(l),(k),(iv),(e)) +# define des_quad_cksum(i,o,l,c,s)\ + _ossl_old_des_quad_cksum((i),(o),(l),(c),(s)) +# define des_random_seed(k)\ + _ossl_old_des_random_seed((k)) +# define des_random_key(r)\ + _ossl_old_des_random_key((r)) +# define des_read_password(k,p,v) \ + _ossl_old_des_read_password((k),(p),(v)) +# define des_read_2passwords(k1,k2,p,v) \ + _ossl_old_des_read_2passwords((k1),(k2),(p),(v)) +# define des_set_odd_parity(k)\ + _ossl_old_des_set_odd_parity((k)) +# define des_is_weak_key(k)\ + _ossl_old_des_is_weak_key((k)) +# define des_set_key(k,ks)\ + _ossl_old_des_set_key((k),(ks)) +# define des_key_sched(k,ks)\ + _ossl_old_des_key_sched((k),(ks)) +# define des_string_to_key(s,k)\ + _ossl_old_des_string_to_key((s),(k)) +# define des_string_to_2keys(s,k1,k2)\ + _ossl_old_des_string_to_2keys((s),(k1),(k2)) +# define des_cfb64_encrypt(i,o,l,ks,iv,n,e)\ + _ossl_old_des_cfb64_encrypt((i),(o),(l),(ks),(iv),(n),(e)) +# define des_ofb64_encrypt(i,o,l,ks,iv,n)\ + _ossl_old_des_ofb64_encrypt((i),(o),(l),(ks),(iv),(n)) + +# define des_ecb2_encrypt(i,o,k1,k2,e) \ + des_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e)) + +# define des_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ + des_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e)) + +# define des_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ + des_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e)) + +# define des_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ + des_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) + +# define des_check_key DES_check_key +# define des_rw_mode DES_rw_mode +# endif + +const char *_ossl_old_des_options(void); +void _ossl_old_des_ecb3_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, + _ossl_old_des_key_schedule ks1, + _ossl_old_des_key_schedule ks2, + _ossl_old_des_key_schedule ks3, int enc); +DES_LONG _ossl_old_des_cbc_cksum(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec); +void _ossl_old_des_cbc_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, int enc); +void _ossl_old_des_ncbc_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, int enc); +void _ossl_old_des_xcbc_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, + _ossl_old_des_cblock *inw, + _ossl_old_des_cblock *outw, int enc); +void _ossl_old_des_cfb_encrypt(unsigned char *in, unsigned char *out, + int numbits, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, int enc); +void _ossl_old_des_ecb_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, + _ossl_old_des_key_schedule ks, int enc); +void _ossl_old_des_encrypt(DES_LONG *data, _ossl_old_des_key_schedule ks, + int enc); +void _ossl_old_des_encrypt2(DES_LONG *data, _ossl_old_des_key_schedule ks, + int enc); +void _ossl_old_des_encrypt3(DES_LONG *data, _ossl_old_des_key_schedule ks1, + _ossl_old_des_key_schedule ks2, + _ossl_old_des_key_schedule ks3); +void _ossl_old_des_decrypt3(DES_LONG *data, _ossl_old_des_key_schedule ks1, + _ossl_old_des_key_schedule ks2, + _ossl_old_des_key_schedule ks3); +void _ossl_old_des_ede3_cbc_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + _ossl_old_des_key_schedule ks1, + _ossl_old_des_key_schedule ks2, + _ossl_old_des_key_schedule ks3, + _ossl_old_des_cblock *ivec, int enc); +void _ossl_old_des_ede3_cfb64_encrypt(unsigned char *in, unsigned char *out, + long length, + _ossl_old_des_key_schedule ks1, + _ossl_old_des_key_schedule ks2, + _ossl_old_des_key_schedule ks3, + _ossl_old_des_cblock *ivec, int *num, + int enc); +void _ossl_old_des_ede3_ofb64_encrypt(unsigned char *in, unsigned char *out, + long length, + _ossl_old_des_key_schedule ks1, + _ossl_old_des_key_schedule ks2, + _ossl_old_des_key_schedule ks3, + _ossl_old_des_cblock *ivec, int *num); +# if 0 +void _ossl_old_des_xwhite_in2out(_ossl_old_des_cblock (*des_key), + _ossl_old_des_cblock (*in_white), + _ossl_old_des_cblock (*out_white)); +# endif + +int _ossl_old_des_enc_read(int fd, char *buf, int len, + _ossl_old_des_key_schedule sched, + _ossl_old_des_cblock *iv); +int _ossl_old_des_enc_write(int fd, char *buf, int len, + _ossl_old_des_key_schedule sched, + _ossl_old_des_cblock *iv); +char *_ossl_old_des_fcrypt(const char *buf, const char *salt, char *ret); +char *_ossl_old_des_crypt(const char *buf, const char *salt); +# if !defined(PERL5) && !defined(NeXT) +char *_ossl_old_crypt(const char *buf, const char *salt); +# endif +void _ossl_old_des_ofb_encrypt(unsigned char *in, unsigned char *out, + int numbits, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec); +void _ossl_old_des_pcbc_encrypt(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, int enc); +DES_LONG _ossl_old_des_quad_cksum(_ossl_old_des_cblock *input, + _ossl_old_des_cblock *output, long length, + int out_count, _ossl_old_des_cblock *seed); +void _ossl_old_des_random_seed(_ossl_old_des_cblock key); +void _ossl_old_des_random_key(_ossl_old_des_cblock ret); +int _ossl_old_des_read_password(_ossl_old_des_cblock *key, const char *prompt, + int verify); +int _ossl_old_des_read_2passwords(_ossl_old_des_cblock *key1, + _ossl_old_des_cblock *key2, + const char *prompt, int verify); +void _ossl_old_des_set_odd_parity(_ossl_old_des_cblock *key); +int _ossl_old_des_is_weak_key(_ossl_old_des_cblock *key); +int _ossl_old_des_set_key(_ossl_old_des_cblock *key, + _ossl_old_des_key_schedule schedule); +int _ossl_old_des_key_sched(_ossl_old_des_cblock *key, + _ossl_old_des_key_schedule schedule); +void _ossl_old_des_string_to_key(char *str, _ossl_old_des_cblock *key); +void _ossl_old_des_string_to_2keys(char *str, _ossl_old_des_cblock *key1, + _ossl_old_des_cblock *key2); +void _ossl_old_des_cfb64_encrypt(unsigned char *in, unsigned char *out, + long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, int *num, + int enc); +void _ossl_old_des_ofb64_encrypt(unsigned char *in, unsigned char *out, + long length, + _ossl_old_des_key_schedule schedule, + _ossl_old_des_cblock *ivec, int *num); + +void _ossl_096_des_random_seed(des_cblock *key); + +/* + * The following definitions provide compatibility with the MIT Kerberos + * library. The _ossl_old_des_key_schedule structure is not binary + * compatible. + */ + +# define _KERBEROS_DES_H + +# define KRBDES_ENCRYPT DES_ENCRYPT +# define KRBDES_DECRYPT DES_DECRYPT + +# ifdef KERBEROS +# define ENCRYPT DES_ENCRYPT +# define DECRYPT DES_DECRYPT +# endif + +# ifndef NCOMPAT +# define C_Block des_cblock +# define Key_schedule des_key_schedule +# define KEY_SZ DES_KEY_SZ +# define string_to_key des_string_to_key +# define read_pw_string des_read_pw_string +# define random_key des_random_key +# define pcbc_encrypt des_pcbc_encrypt +# define set_key des_set_key +# define key_sched des_key_sched +# define ecb_encrypt des_ecb_encrypt +# define cbc_encrypt des_cbc_encrypt +# define ncbc_encrypt des_ncbc_encrypt +# define xcbc_encrypt des_xcbc_encrypt +# define cbc_cksum des_cbc_cksum +# define quad_cksum des_quad_cksum +# define check_parity des_check_key_parity +# endif + +# define des_fixup_key_parity DES_fixup_key_parity + +#ifdef __cplusplus +} +#endif + +/* for DES_read_pw_string et al */ +# include + +#endif diff --git a/CryptoPkg/Include/openssl/dh.h b/CryptoPkg/Include/openssl/dh.h new file mode 100644 index 0000000..10d9f78 --- /dev/null +++ b/CryptoPkg/Include/openssl/dh.h @@ -0,0 +1,251 @@ +/* crypto/dh/dh.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_DH_H +# define HEADER_DH_H + +# include + +# ifdef OPENSSL_NO_DH +# error DH is disabled. +# endif + +# ifndef OPENSSL_NO_BIO +# include +# endif +# include +# ifndef OPENSSL_NO_DEPRECATED +# include +# endif + +# ifndef OPENSSL_DH_MAX_MODULUS_BITS +# define OPENSSL_DH_MAX_MODULUS_BITS 10000 +# endif + +# define OPENSSL_DH_FIPS_MIN_MODULUS_BITS 1024 + +# define DH_FLAG_CACHE_MONT_P 0x01 + +/* + * new with 0.9.7h; the built-in DH + * implementation now uses constant time + * modular exponentiation for secret exponents + * by default. This flag causes the + * faster variable sliding window method to + * be used for all exponents. + */ +# define DH_FLAG_NO_EXP_CONSTTIME 0x02 + +#ifdef __cplusplus +extern "C" { +#endif + +/* Already defined in ossl_typ.h */ +/* typedef struct dh_st DH; */ +/* typedef struct dh_method DH_METHOD; */ + +struct dh_method { + const char *name; + /* Methods here */ + int (*generate_key) (DH *dh); + int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh); + /* Can be null */ + int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a, + const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, + BN_MONT_CTX *m_ctx); + int (*init) (DH *dh); + int (*finish) (DH *dh); + int flags; + char *app_data; + /* If this is non-NULL, it will be used to generate parameters */ + int (*generate_params) (DH *dh, int prime_len, int generator, + BN_GENCB *cb); +}; + +struct dh_st { + /* + * This first argument is used to pick up errors when a DH is passed + * instead of a EVP_PKEY + */ + int pad; + int version; + BIGNUM *p; + BIGNUM *g; + long length; /* optional */ + BIGNUM *pub_key; /* g^x */ + BIGNUM *priv_key; /* x */ + int flags; + BN_MONT_CTX *method_mont_p; + /* Place holders if we want to do X9.42 DH */ + BIGNUM *q; + BIGNUM *j; + unsigned char *seed; + int seedlen; + BIGNUM *counter; + int references; + CRYPTO_EX_DATA ex_data; + const DH_METHOD *meth; + ENGINE *engine; +}; + +# define DH_GENERATOR_2 2 +/* #define DH_GENERATOR_3 3 */ +# define DH_GENERATOR_5 5 + +/* DH_check error codes */ +# define DH_CHECK_P_NOT_PRIME 0x01 +# define DH_CHECK_P_NOT_SAFE_PRIME 0x02 +# define DH_UNABLE_TO_CHECK_GENERATOR 0x04 +# define DH_NOT_SUITABLE_GENERATOR 0x08 + +/* DH_check_pub_key error codes */ +# define DH_CHECK_PUBKEY_TOO_SMALL 0x01 +# define DH_CHECK_PUBKEY_TOO_LARGE 0x02 + +/* + * primes p where (p-1)/2 is prime too are called "safe"; we define this for + * backward compatibility: + */ +# define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME + +# define DHparams_dup(x) ASN1_dup_of_const(DH,i2d_DHparams,d2i_DHparams,x) +# define d2i_DHparams_fp(fp,x) (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ + (char *(*)())d2i_DHparams,(fp),(unsigned char **)(x)) +# define i2d_DHparams_fp(fp,x) ASN1_i2d_fp(i2d_DHparams,(fp), \ + (unsigned char *)(x)) +# define d2i_DHparams_bio(bp,x) ASN1_d2i_bio_of(DH,DH_new,d2i_DHparams,bp,x) +# define i2d_DHparams_bio(bp,x) ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x) + +const DH_METHOD *DH_OpenSSL(void); + +# ifdef OPENSSL_FIPS +DH *FIPS_dh_new(void); +void FIPS_dh_free(DH *dh); +# endif + +void DH_set_default_method(const DH_METHOD *meth); +const DH_METHOD *DH_get_default_method(void); +int DH_set_method(DH *dh, const DH_METHOD *meth); +DH *DH_new_method(ENGINE *engine); + +DH *DH_new(void); +void DH_free(DH *dh); +int DH_up_ref(DH *dh); +int DH_size(const DH *dh); +int DH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, + CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); +int DH_set_ex_data(DH *d, int idx, void *arg); +void *DH_get_ex_data(DH *d, int idx); + +/* Deprecated version */ +# ifndef OPENSSL_NO_DEPRECATED +DH *DH_generate_parameters(int prime_len, int generator, + void (*callback) (int, int, void *), void *cb_arg); +# endif /* !defined(OPENSSL_NO_DEPRECATED) */ + +/* New version */ +int DH_generate_parameters_ex(DH *dh, int prime_len, int generator, + BN_GENCB *cb); + +int DH_check(const DH *dh, int *codes); +int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *codes); +int DH_generate_key(DH *dh); +int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); +DH *d2i_DHparams(DH **a, const unsigned char **pp, long length); +int i2d_DHparams(const DH *a, unsigned char **pp); +# ifndef OPENSSL_NO_FP_API +int DHparams_print_fp(FILE *fp, const DH *x); +# endif +# ifndef OPENSSL_NO_BIO +int DHparams_print(BIO *bp, const DH *x); +# else +int DHparams_print(char *bp, const DH *x); +# endif + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_DH_strings(void); + +/* Error codes for the DH functions. */ + +/* Function codes. */ +# define DH_F_COMPUTE_KEY 102 +# define DH_F_DHPARAMS_PRINT 100 +# define DH_F_DHPARAMS_PRINT_FP 101 +# define DH_F_DH_BUILTIN_GENPARAMS 106 +# define DH_F_DH_COMPUTE_KEY 107 +# define DH_F_DH_GENERATE_KEY 108 +# define DH_F_DH_GENERATE_PARAMETERS 109 +# define DH_F_DH_NEW_METHOD 105 +# define DH_F_GENERATE_KEY 103 +# define DH_F_GENERATE_PARAMETERS 104 + +/* Reason codes. */ +# define DH_R_BAD_GENERATOR 101 +# define DH_R_INVALID_PUBKEY 102 +# define DH_R_KEY_SIZE_TOO_SMALL 104 +# define DH_R_MODULUS_TOO_LARGE 103 +# define DH_R_NO_PRIVATE_VALUE 100 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/dsa.h b/CryptoPkg/Include/openssl/dsa.h new file mode 100644 index 0000000..8f7b5de --- /dev/null +++ b/CryptoPkg/Include/openssl/dsa.h @@ -0,0 +1,326 @@ +/* crypto/dsa/dsa.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +/* + * The DSS routines are based on patches supplied by + * Steven Schoch . He basically did the + * work and I have just tweaked them a little to fit into my + * stylistic vision for SSLeay :-) */ + +#ifndef HEADER_DSA_H +# define HEADER_DSA_H + +# include + +# ifdef OPENSSL_NO_DSA +# error DSA is disabled. +# endif + +# ifndef OPENSSL_NO_BIO +# include +# endif +# include +# include + +# ifndef OPENSSL_NO_DEPRECATED +# include +# ifndef OPENSSL_NO_DH +# include +# endif +# endif + +# ifndef OPENSSL_DSA_MAX_MODULUS_BITS +# define OPENSSL_DSA_MAX_MODULUS_BITS 10000 +# endif + +# define OPENSSL_DSA_FIPS_MIN_MODULUS_BITS 1024 + +# define DSA_FLAG_CACHE_MONT_P 0x01 +/* + * new with 0.9.7h; the built-in DSA implementation now uses constant time + * modular exponentiation for secret exponents by default. This flag causes + * the faster variable sliding window method to be used for all exponents. + */ +# define DSA_FLAG_NO_EXP_CONSTTIME 0x02 + +/* + * If this flag is set the DSA method is FIPS compliant and can be used in + * FIPS mode. This is set in the validated module method. If an application + * sets this flag in its own methods it is its reposibility to ensure the + * result is compliant. + */ + +# define DSA_FLAG_FIPS_METHOD 0x0400 + +/* + * If this flag is set the operations normally disabled in FIPS mode are + * permitted it is then the applications responsibility to ensure that the + * usage is compliant. + */ + +# define DSA_FLAG_NON_FIPS_ALLOW 0x0400 + +# ifdef OPENSSL_FIPS +# define FIPS_DSA_SIZE_T int +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* Already defined in ossl_typ.h */ +/* typedef struct dsa_st DSA; */ +/* typedef struct dsa_method DSA_METHOD; */ + +typedef struct DSA_SIG_st { + BIGNUM *r; + BIGNUM *s; +} DSA_SIG; + +struct dsa_method { + const char *name; + DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa); + int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, + BIGNUM **rp); + int (*dsa_do_verify) (const unsigned char *dgst, int dgst_len, + DSA_SIG *sig, DSA *dsa); + int (*dsa_mod_exp) (DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, + BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, + BN_MONT_CTX *in_mont); + /* Can be null */ + int (*bn_mod_exp) (DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, + const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); + int (*init) (DSA *dsa); + int (*finish) (DSA *dsa); + int flags; + char *app_data; + /* If this is non-NULL, it is used to generate DSA parameters */ + int (*dsa_paramgen) (DSA *dsa, int bits, + unsigned char *seed, int seed_len, + int *counter_ret, unsigned long *h_ret, + BN_GENCB *cb); + /* If this is non-NULL, it is used to generate DSA keys */ + int (*dsa_keygen) (DSA *dsa); +}; + +struct dsa_st { + /* + * This first variable is used to pick up errors where a DSA is passed + * instead of of a EVP_PKEY + */ + int pad; + long version; + int write_params; + BIGNUM *p; + BIGNUM *q; /* == 20 */ + BIGNUM *g; + BIGNUM *pub_key; /* y public key */ + BIGNUM *priv_key; /* x private key */ + BIGNUM *kinv; /* Signing pre-calc */ + BIGNUM *r; /* Signing pre-calc */ + int flags; + /* Normally used to cache montgomery values */ + BN_MONT_CTX *method_mont_p; + int references; + CRYPTO_EX_DATA ex_data; + const DSA_METHOD *meth; + /* functional reference if 'meth' is ENGINE-provided */ + ENGINE *engine; +}; + +# define DSAparams_dup(x) ASN1_dup_of_const(DSA,i2d_DSAparams,d2i_DSAparams,x) +# define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \ + (char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x)) +# define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \ + (unsigned char *)(x)) +# define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x) +# define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x) + +DSA_SIG *DSA_SIG_new(void); +void DSA_SIG_free(DSA_SIG *a); +int i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp); +DSA_SIG *d2i_DSA_SIG(DSA_SIG **v, const unsigned char **pp, long length); + +DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); +int DSA_do_verify(const unsigned char *dgst, int dgst_len, + DSA_SIG *sig, DSA *dsa); + +const DSA_METHOD *DSA_OpenSSL(void); + +void DSA_set_default_method(const DSA_METHOD *); +const DSA_METHOD *DSA_get_default_method(void); +int DSA_set_method(DSA *dsa, const DSA_METHOD *); + +# ifdef OPENSSL_FIPS +DSA *FIPS_dsa_new(void); +void FIPS_dsa_free(DSA *r); +# endif + +DSA *DSA_new(void); +DSA *DSA_new_method(ENGINE *engine); +void DSA_free(DSA *r); +/* "up" the DSA object's reference count */ +int DSA_up_ref(DSA *r); +int DSA_size(const DSA *); + /* next 4 return -1 on error */ +int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp); +int DSA_sign(int type, const unsigned char *dgst, int dlen, + unsigned char *sig, unsigned int *siglen, DSA *dsa); +int DSA_verify(int type, const unsigned char *dgst, int dgst_len, + const unsigned char *sigbuf, int siglen, DSA *dsa); +int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, + CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); +int DSA_set_ex_data(DSA *d, int idx, void *arg); +void *DSA_get_ex_data(DSA *d, int idx); + +DSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); +DSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); +DSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length); + +/* Deprecated version */ +# ifndef OPENSSL_NO_DEPRECATED +DSA *DSA_generate_parameters(int bits, + unsigned char *seed, int seed_len, + int *counter_ret, unsigned long *h_ret, void + (*callback) (int, int, void *), void *cb_arg); +# endif /* !defined(OPENSSL_NO_DEPRECATED) */ + +/* New version */ +int DSA_generate_parameters_ex(DSA *dsa, int bits, + unsigned char *seed, int seed_len, + int *counter_ret, unsigned long *h_ret, + BN_GENCB *cb); + +int DSA_generate_key(DSA *a); +int i2d_DSAPublicKey(const DSA *a, unsigned char **pp); +int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp); +int i2d_DSAparams(const DSA *a, unsigned char **pp); + +# ifndef OPENSSL_NO_BIO +int DSAparams_print(BIO *bp, const DSA *x); +int DSA_print(BIO *bp, const DSA *x, int off); +# endif +# ifndef OPENSSL_NO_FP_API +int DSAparams_print_fp(FILE *fp, const DSA *x); +int DSA_print_fp(FILE *bp, const DSA *x, int off); +# endif + +# define DSS_prime_checks 50 +/* + * Primality test according to FIPS PUB 186[-1], Appendix 2.1: 50 rounds of + * Rabin-Miller + */ +# define DSA_is_prime(n, callback, cb_arg) \ + BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg) + +# ifndef OPENSSL_NO_DH +/* + * Convert DSA structure (key or just parameters) into DH structure (be + * careful to avoid small subgroup attacks when using this!) + */ +DH *DSA_dup_DH(const DSA *r); +# endif + +# ifdef OPENSSL_FIPS +int FIPS_dsa_sig_encode(unsigned char *out, DSA_SIG *sig); +int FIPS_dsa_sig_decode(DSA_SIG *sig, const unsigned char *in, int inlen); +# endif + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_DSA_strings(void); + +/* Error codes for the DSA functions. */ + +/* Function codes. */ +# define DSA_F_D2I_DSA_SIG 110 +# define DSA_F_DSAPARAMS_PRINT 100 +# define DSA_F_DSAPARAMS_PRINT_FP 101 +# define DSA_F_DSA_BUILTIN_KEYGEN 119 +# define DSA_F_DSA_BUILTIN_PARAMGEN 118 +# define DSA_F_DSA_DO_SIGN 112 +# define DSA_F_DSA_DO_VERIFY 113 +# define DSA_F_DSA_GENERATE_PARAMETERS 117 +# define DSA_F_DSA_NEW_METHOD 103 +# define DSA_F_DSA_PRINT 104 +# define DSA_F_DSA_PRINT_FP 105 +# define DSA_F_DSA_SET_DEFAULT_METHOD 115 +# define DSA_F_DSA_SET_METHOD 116 +# define DSA_F_DSA_SIGN 106 +# define DSA_F_DSA_SIGN_SETUP 107 +# define DSA_F_DSA_SIG_NEW 109 +# define DSA_F_DSA_VERIFY 108 +# define DSA_F_I2D_DSA_SIG 111 +# define DSA_F_SIG_CB 114 + +/* Reason codes. */ +# define DSA_R_BAD_Q_VALUE 102 +# define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 100 +# define DSA_R_KEY_SIZE_TOO_SMALL 106 +# define DSA_R_MISSING_PARAMETERS 101 +# define DSA_R_MODULUS_TOO_LARGE 103 +# define DSA_R_NON_FIPS_METHOD 104 +# define DSA_R_OPERATION_NOT_ALLOWED_IN_FIPS_MODE 105 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/dso.h b/CryptoPkg/Include/openssl/dso.h new file mode 100644 index 0000000..277427d --- /dev/null +++ b/CryptoPkg/Include/openssl/dso.h @@ -0,0 +1,410 @@ +/* dso.h -*- mode:C; c-file-style: "eay" -*- */ +/* + * Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL project + * 2000. + */ +/* ==================================================================== + * Copyright (c) 2000 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * licensing@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + +#ifndef HEADER_DSO_H +# define HEADER_DSO_H + +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* These values are used as commands to DSO_ctrl() */ +# define DSO_CTRL_GET_FLAGS 1 +# define DSO_CTRL_SET_FLAGS 2 +# define DSO_CTRL_OR_FLAGS 3 + +/* + * By default, DSO_load() will translate the provided filename into a form + * typical for the platform (more specifically the DSO_METHOD) using the + * dso_name_converter function of the method. Eg. win32 will transform "blah" + * into "blah.dll", and dlfcn will transform it into "libblah.so". The + * behaviour can be overriden by setting the name_converter callback in the + * DSO object (using DSO_set_name_converter()). This callback could even + * utilise the DSO_METHOD's converter too if it only wants to override + * behaviour for one or two possible DSO methods. However, the following flag + * can be set in a DSO to prevent *any* native name-translation at all - eg. + * if the caller has prompted the user for a path to a driver library so the + * filename should be interpreted as-is. + */ +# define DSO_FLAG_NO_NAME_TRANSLATION 0x01 +/* + * An extra flag to give if only the extension should be added as + * translation. This is obviously only of importance on Unix and other + * operating systems where the translation also may prefix the name with + * something, like 'lib', and ignored everywhere else. This flag is also + * ignored if DSO_FLAG_NO_NAME_TRANSLATION is used at the same time. + */ +# define DSO_FLAG_NAME_TRANSLATION_EXT_ONLY 0x02 + +/* + * The following flag controls the translation of symbol names to upper case. + * This is currently only being implemented for OpenVMS. + */ +# define DSO_FLAG_UPCASE_SYMBOL 0x10 + +/* + * This flag loads the library with public symbols. Meaning: The exported + * symbols of this library are public to all libraries loaded after this + * library. At the moment only implemented in unix. + */ +# define DSO_FLAG_GLOBAL_SYMBOLS 0x20 + +typedef void (*DSO_FUNC_TYPE) (void); + +typedef struct dso_st DSO; + +/* + * The function prototype used for method functions (or caller-provided + * callbacks) that transform filenames. They are passed a DSO structure + * pointer (or NULL if they are to be used independantly of a DSO object) and + * a filename to transform. They should either return NULL (if there is an + * error condition) or a newly allocated string containing the transformed + * form that the caller will need to free with OPENSSL_free() when done. + */ +typedef char *(*DSO_NAME_CONVERTER_FUNC)(DSO *, const char *); +/* + * The function prototype used for method functions (or caller-provided + * callbacks) that merge two file specifications. They are passed a DSO + * structure pointer (or NULL if they are to be used independantly of a DSO + * object) and two file specifications to merge. They should either return + * NULL (if there is an error condition) or a newly allocated string + * containing the result of merging that the caller will need to free with + * OPENSSL_free() when done. Here, merging means that bits and pieces are + * taken from each of the file specifications and added together in whatever + * fashion that is sensible for the DSO method in question. The only rule + * that really applies is that if the two specification contain pieces of the + * same type, the copy from the first string takes priority. One could see + * it as the first specification is the one given by the user and the second + * being a bunch of defaults to add on if they're missing in the first. + */ +typedef char *(*DSO_MERGER_FUNC)(DSO *, const char *, const char *); + +typedef struct dso_meth_st { + const char *name; + /* + * Loads a shared library, NB: new DSO_METHODs must ensure that a + * successful load populates the loaded_filename field, and likewise a + * successful unload OPENSSL_frees and NULLs it out. + */ + int (*dso_load) (DSO *dso); + /* Unloads a shared library */ + int (*dso_unload) (DSO *dso); + /* Binds a variable */ + void *(*dso_bind_var) (DSO *dso, const char *symname); + /* + * Binds a function - assumes a return type of DSO_FUNC_TYPE. This should + * be cast to the real function prototype by the caller. Platforms that + * don't have compatible representations for different prototypes (this + * is possible within ANSI C) are highly unlikely to have shared + * libraries at all, let alone a DSO_METHOD implemented for them. + */ + DSO_FUNC_TYPE (*dso_bind_func) (DSO *dso, const char *symname); +/* I don't think this would actually be used in any circumstances. */ +# if 0 + /* Unbinds a variable */ + int (*dso_unbind_var) (DSO *dso, char *symname, void *symptr); + /* Unbinds a function */ + int (*dso_unbind_func) (DSO *dso, char *symname, DSO_FUNC_TYPE symptr); +# endif + /* + * The generic (yuck) "ctrl()" function. NB: Negative return values + * (rather than zero) indicate errors. + */ + long (*dso_ctrl) (DSO *dso, int cmd, long larg, void *parg); + /* + * The default DSO_METHOD-specific function for converting filenames to a + * canonical native form. + */ + DSO_NAME_CONVERTER_FUNC dso_name_converter; + /* + * The default DSO_METHOD-specific function for converting filenames to a + * canonical native form. + */ + DSO_MERGER_FUNC dso_merger; + /* [De]Initialisation handlers. */ + int (*init) (DSO *dso); + int (*finish) (DSO *dso); +} DSO_METHOD; + +/**********************************************************************/ +/* The low-level handle type used to refer to a loaded shared library */ + +struct dso_st { + DSO_METHOD *meth; + /* + * Standard dlopen uses a (void *). Win32 uses a HANDLE. VMS doesn't use + * anything but will need to cache the filename for use in the dso_bind + * handler. All in all, let each method control its own destiny. + * "Handles" and such go in a STACK. + */ + STACK *meth_data; + int references; + int flags; + /* + * For use by applications etc ... use this for your bits'n'pieces, don't + * touch meth_data! + */ + CRYPTO_EX_DATA ex_data; + /* + * If this callback function pointer is set to non-NULL, then it will be + * used in DSO_load() in place of meth->dso_name_converter. NB: This + * should normally set using DSO_set_name_converter(). + */ + DSO_NAME_CONVERTER_FUNC name_converter; + /* + * If this callback function pointer is set to non-NULL, then it will be + * used in DSO_load() in place of meth->dso_merger. NB: This should + * normally set using DSO_set_merger(). + */ + DSO_MERGER_FUNC merger; + /* + * This is populated with (a copy of) the platform-independant filename + * used for this DSO. + */ + char *filename; + /* + * This is populated with (a copy of) the translated filename by which + * the DSO was actually loaded. It is NULL iff the DSO is not currently + * loaded. NB: This is here because the filename translation process may + * involve a callback being invoked more than once not only to convert to + * a platform-specific form, but also to try different filenames in the + * process of trying to perform a load. As such, this variable can be + * used to indicate (a) whether this DSO structure corresponds to a + * loaded library or not, and (b) the filename with which it was actually + * loaded. + */ + char *loaded_filename; +}; + +DSO *DSO_new(void); +DSO *DSO_new_method(DSO_METHOD *method); +int DSO_free(DSO *dso); +int DSO_flags(DSO *dso); +int DSO_up_ref(DSO *dso); +long DSO_ctrl(DSO *dso, int cmd, long larg, void *parg); + +/* + * This function sets the DSO's name_converter callback. If it is non-NULL, + * then it will be used instead of the associated DSO_METHOD's function. If + * oldcb is non-NULL then it is set to the function pointer value being + * replaced. Return value is non-zero for success. + */ +int DSO_set_name_converter(DSO *dso, DSO_NAME_CONVERTER_FUNC cb, + DSO_NAME_CONVERTER_FUNC *oldcb); +/* + * These functions can be used to get/set the platform-independant filename + * used for a DSO. NB: set will fail if the DSO is already loaded. + */ +const char *DSO_get_filename(DSO *dso); +int DSO_set_filename(DSO *dso, const char *filename); +/* + * This function will invoke the DSO's name_converter callback to translate a + * filename, or if the callback isn't set it will instead use the DSO_METHOD's + * converter. If "filename" is NULL, the "filename" in the DSO itself will be + * used. If the DSO_FLAG_NO_NAME_TRANSLATION flag is set, then the filename is + * simply duplicated. NB: This function is usually called from within a + * DSO_METHOD during the processing of a DSO_load() call, and is exposed so + * that caller-created DSO_METHODs can do the same thing. A non-NULL return + * value will need to be OPENSSL_free()'d. + */ +char *DSO_convert_filename(DSO *dso, const char *filename); +/* + * This function will invoke the DSO's merger callback to merge two file + * specifications, or if the callback isn't set it will instead use the + * DSO_METHOD's merger. A non-NULL return value will need to be + * OPENSSL_free()'d. + */ +char *DSO_merge(DSO *dso, const char *filespec1, const char *filespec2); +/* + * If the DSO is currently loaded, this returns the filename that it was + * loaded under, otherwise it returns NULL. So it is also useful as a test as + * to whether the DSO is currently loaded. NB: This will not necessarily + * return the same value as DSO_convert_filename(dso, dso->filename), because + * the DSO_METHOD's load function may have tried a variety of filenames (with + * and/or without the aid of the converters) before settling on the one it + * actually loaded. + */ +const char *DSO_get_loaded_filename(DSO *dso); + +void DSO_set_default_method(DSO_METHOD *meth); +DSO_METHOD *DSO_get_default_method(void); +DSO_METHOD *DSO_get_method(DSO *dso); +DSO_METHOD *DSO_set_method(DSO *dso, DSO_METHOD *meth); + +/* + * The all-singing all-dancing load function, you normally pass NULL for the + * first and third parameters. Use DSO_up and DSO_free for subsequent + * reference count handling. Any flags passed in will be set in the + * constructed DSO after its init() function but before the load operation. + * If 'dso' is non-NULL, 'flags' is ignored. + */ +DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags); + +/* This function binds to a variable inside a shared library. */ +void *DSO_bind_var(DSO *dso, const char *symname); + +/* This function binds to a function inside a shared library. */ +DSO_FUNC_TYPE DSO_bind_func(DSO *dso, const char *symname); + +/* + * This method is the default, but will beg, borrow, or steal whatever method + * should be the default on any particular platform (including + * DSO_METH_null() if necessary). + */ +DSO_METHOD *DSO_METHOD_openssl(void); + +/* + * This method is defined for all platforms - if a platform has no DSO + * support then this will be the only method! + */ +DSO_METHOD *DSO_METHOD_null(void); + +/* + * If DSO_DLFCN is defined, the standard dlfcn.h-style functions (dlopen, + * dlclose, dlsym, etc) will be used and incorporated into this method. If + * not, this method will return NULL. + */ +DSO_METHOD *DSO_METHOD_dlfcn(void); + +/* + * If DSO_DL is defined, the standard dl.h-style functions (shl_load, + * shl_unload, shl_findsym, etc) will be used and incorporated into this + * method. If not, this method will return NULL. + */ +DSO_METHOD *DSO_METHOD_dl(void); + +/* If WIN32 is defined, use DLLs. If not, return NULL. */ +DSO_METHOD *DSO_METHOD_win32(void); + +/* If VMS is defined, use shared images. If not, return NULL. */ +DSO_METHOD *DSO_METHOD_vms(void); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_DSO_strings(void); + +/* Error codes for the DSO functions. */ + +/* Function codes. */ +# define DSO_F_DLFCN_BIND_FUNC 100 +# define DSO_F_DLFCN_BIND_VAR 101 +# define DSO_F_DLFCN_LOAD 102 +# define DSO_F_DLFCN_MERGER 130 +# define DSO_F_DLFCN_NAME_CONVERTER 123 +# define DSO_F_DLFCN_UNLOAD 103 +# define DSO_F_DL_BIND_FUNC 104 +# define DSO_F_DL_BIND_VAR 105 +# define DSO_F_DL_LOAD 106 +# define DSO_F_DL_MERGER 131 +# define DSO_F_DL_NAME_CONVERTER 124 +# define DSO_F_DL_UNLOAD 107 +# define DSO_F_DSO_BIND_FUNC 108 +# define DSO_F_DSO_BIND_VAR 109 +# define DSO_F_DSO_CONVERT_FILENAME 126 +# define DSO_F_DSO_CTRL 110 +# define DSO_F_DSO_FREE 111 +# define DSO_F_DSO_GET_FILENAME 127 +# define DSO_F_DSO_GET_LOADED_FILENAME 128 +# define DSO_F_DSO_LOAD 112 +# define DSO_F_DSO_MERGE 132 +# define DSO_F_DSO_NEW_METHOD 113 +# define DSO_F_DSO_SET_FILENAME 129 +# define DSO_F_DSO_SET_NAME_CONVERTER 122 +# define DSO_F_DSO_UP_REF 114 +# define DSO_F_VMS_BIND_SYM 115 +# define DSO_F_VMS_LOAD 116 +# define DSO_F_VMS_MERGER 133 +# define DSO_F_VMS_UNLOAD 117 +# define DSO_F_WIN32_BIND_FUNC 118 +# define DSO_F_WIN32_BIND_VAR 119 +# define DSO_F_WIN32_JOINER 135 +# define DSO_F_WIN32_LOAD 120 +# define DSO_F_WIN32_MERGER 134 +# define DSO_F_WIN32_NAME_CONVERTER 125 +# define DSO_F_WIN32_SPLITTER 136 +# define DSO_F_WIN32_UNLOAD 121 + +/* Reason codes. */ +# define DSO_R_CTRL_FAILED 100 +# define DSO_R_DSO_ALREADY_LOADED 110 +# define DSO_R_EMPTY_FILE_STRUCTURE 113 +# define DSO_R_FAILURE 114 +# define DSO_R_FILENAME_TOO_BIG 101 +# define DSO_R_FINISH_FAILED 102 +# define DSO_R_INCORRECT_FILE_SYNTAX 115 +# define DSO_R_LOAD_FAILED 103 +# define DSO_R_NAME_TRANSLATION_FAILED 109 +# define DSO_R_NO_FILENAME 111 +# define DSO_R_NO_FILE_SPECIFICATION 116 +# define DSO_R_NULL_HANDLE 104 +# define DSO_R_SET_FILENAME_FAILED 112 +# define DSO_R_STACK_ERROR 105 +# define DSO_R_SYM_FAILURE 106 +# define DSO_R_UNLOAD_FAILED 107 +# define DSO_R_UNSUPPORTED 108 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/dtls1.h b/CryptoPkg/Include/openssl/dtls1.h new file mode 100644 index 0000000..7d6e6db --- /dev/null +++ b/CryptoPkg/Include/openssl/dtls1.h @@ -0,0 +1,236 @@ +/* ssl/dtls1.h */ +/* + * DTLS implementation written by Nagendra Modadugu + * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. + */ +/* ==================================================================== + * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + +#ifndef HEADER_DTLS1_H +# define HEADER_DTLS1_H + +# include +# include +# ifdef OPENSSL_SYS_VMS +# include +# include +# endif +# ifdef OPENSSL_SYS_WIN32 +/* Needed for struct timeval */ +# include +# elif defined(OPENSSL_SYS_NETWARE) && !defined(_WINSOCK2API_) +# include +# else +# include +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +# define DTLS1_VERSION 0xFEFF +# define DTLS_MAX_VERSION DTLS1_VERSION + +# define DTLS1_BAD_VER 0x0100 + +# if 0 +/* this alert description is not specified anywhere... */ +# define DTLS1_AD_MISSING_HANDSHAKE_MESSAGE 110 +# endif + +/* lengths of messages */ +# define DTLS1_COOKIE_LENGTH 256 + +# define DTLS1_RT_HEADER_LENGTH 13 + +# define DTLS1_HM_HEADER_LENGTH 12 + +# define DTLS1_HM_BAD_FRAGMENT -2 +# define DTLS1_HM_FRAGMENT_RETRY -3 + +# define DTLS1_CCS_HEADER_LENGTH 1 + +# ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE +# define DTLS1_AL_HEADER_LENGTH 7 +# else +# define DTLS1_AL_HEADER_LENGTH 2 +# endif + +typedef struct dtls1_bitmap_st { + PQ_64BIT map; + unsigned long length; /* sizeof the bitmap in bits */ + PQ_64BIT max_seq_num; /* max record number seen so far */ +} DTLS1_BITMAP; + +struct dtls1_retransmit_state { + EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ + const EVP_MD *write_hash; /* used for mac generation */ +# ifndef OPENSSL_NO_COMP + COMP_CTX *compress; /* compression */ +# else + char *compress; +# endif + SSL_SESSION *session; + unsigned short epoch; +}; + +struct hm_header_st { + unsigned char type; + unsigned long msg_len; + unsigned short seq; + unsigned long frag_off; + unsigned long frag_len; + unsigned int is_ccs; + struct dtls1_retransmit_state saved_retransmit_state; +}; + +struct ccs_header_st { + unsigned char type; + unsigned short seq; +}; + +struct dtls1_timeout_st { + /* Number of read timeouts so far */ + unsigned int read_timeouts; + /* Number of write timeouts so far */ + unsigned int write_timeouts; + /* Number of alerts received so far */ + unsigned int num_alerts; +}; + +typedef struct record_pqueue_st { + unsigned short epoch; + pqueue q; +} record_pqueue; + +typedef struct hm_fragment_st { + struct hm_header_st msg_header; + unsigned char *fragment; + unsigned char *reassembly; +} hm_fragment; + +typedef struct dtls1_state_st { + unsigned int send_cookie; + unsigned char cookie[DTLS1_COOKIE_LENGTH]; + unsigned char rcvd_cookie[DTLS1_COOKIE_LENGTH]; + unsigned int cookie_len; + /* + * The current data and handshake epoch. This is initially + * undefined, and starts at zero once the initial handshake is + * completed + */ + unsigned short r_epoch; + unsigned short w_epoch; + /* records being received in the current epoch */ + DTLS1_BITMAP bitmap; + /* renegotiation starts a new set of sequence numbers */ + DTLS1_BITMAP next_bitmap; + /* handshake message numbers */ + unsigned short handshake_write_seq; + unsigned short next_handshake_write_seq; + unsigned short handshake_read_seq; + /* save last sequence number for retransmissions */ + unsigned char last_write_sequence[8]; + /* Received handshake records (processed and unprocessed) */ + record_pqueue unprocessed_rcds; + record_pqueue processed_rcds; + /* Buffered handshake messages */ + pqueue buffered_messages; + /* Buffered (sent) handshake records */ + pqueue sent_messages; + /* + * Buffered application records. Only for records between CCS and + * Finished to prevent either protocol violation or unnecessary message + * loss. + */ + record_pqueue buffered_app_data; + /* Is set when listening for new connections with dtls1_listen() */ + unsigned int listen; + unsigned int mtu; /* max DTLS packet size */ + struct hm_header_st w_msg_hdr; + struct hm_header_st r_msg_hdr; + struct dtls1_timeout_st timeout; + /* Indicates when the last handshake msg sent will timeout */ + struct timeval next_timeout; + /* Timeout duration */ + unsigned short timeout_duration; + /* + * storage for Alert/Handshake protocol data received but not yet + * processed by ssl3_read_bytes: + */ + unsigned char alert_fragment[DTLS1_AL_HEADER_LENGTH]; + unsigned int alert_fragment_len; + unsigned char handshake_fragment[DTLS1_HM_HEADER_LENGTH]; + unsigned int handshake_fragment_len; + unsigned int retransmitting; + unsigned int change_cipher_spec_ok; +} DTLS1_STATE; + +typedef struct dtls1_record_data_st { + unsigned char *packet; + unsigned int packet_length; + SSL3_BUFFER rbuf; + SSL3_RECORD rrec; +} DTLS1_RECORD_DATA; + +/* Timeout multipliers (timeout slice is defined in apps/timeouts.h */ +# define DTLS1_TMO_READ_COUNT 2 +# define DTLS1_TMO_WRITE_COUNT 2 + +# define DTLS1_TMO_ALERT_COUNT 12 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/e_os2.h b/CryptoPkg/Include/openssl/e_os2.h new file mode 100644 index 0000000..c9f2543 --- /dev/null +++ b/CryptoPkg/Include/openssl/e_os2.h @@ -0,0 +1,286 @@ +/* e_os2.h */ +/* ==================================================================== + * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + +#include + +#ifndef HEADER_E_OS2_H +# define HEADER_E_OS2_H + +#ifdef __cplusplus +extern "C" { +#endif + +/****************************************************************************** + * Detect operating systems. This probably needs completing. + * The result is that at least one OPENSSL_SYS_os macro should be defined. + * However, if none is defined, Unix is assumed. + **/ + +# define OPENSSL_SYS_UNIX + +/* ---------------------- Macintosh, before MacOS X ----------------------- */ +# if defined(__MWERKS__) && defined(macintosh) || defined(OPENSSL_SYSNAME_MAC) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_MACINTOSH_CLASSIC +# endif + +/* ---------------------- NetWare ----------------------------------------- */ +# if defined(NETWARE) || defined(OPENSSL_SYSNAME_NETWARE) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_NETWARE +# endif + +/* --------------------- Microsoft operating systems ---------------------- */ + +/* + * Note that MSDOS actually denotes 32-bit environments running on top of + * MS-DOS, such as DJGPP one. + */ +# if defined(OPENSSL_SYSNAME_MSDOS) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_MSDOS +# endif + +/* + * For 32 bit environment, there seems to be the CygWin environment and then + * all the others that try to do the same thing Microsoft does... + */ +# if defined(OPENSSL_SYSNAME_UWIN) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_WIN32_UWIN +# else +# if defined(__CYGWIN32__) || defined(OPENSSL_SYSNAME_CYGWIN32) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_WIN32_CYGWIN +# else +# if defined(_WIN32) || defined(OPENSSL_SYSNAME_WIN32) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_WIN32 +# endif +# if defined(OPENSSL_SYSNAME_WINNT) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_WINNT +# endif +# if defined(OPENSSL_SYSNAME_WINCE) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_WINCE +# endif +# endif +# endif + +/* Anything that tries to look like Microsoft is "Windows" */ +# if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_WINDOWS +# ifndef OPENSSL_SYS_MSDOS +# define OPENSSL_SYS_MSDOS +# endif +# endif + +/* + * DLL settings. This part is a bit tough, because it's up to the + * application implementor how he or she will link the application, so it + * requires some macro to be used. + */ +# ifdef OPENSSL_SYS_WINDOWS +# ifndef OPENSSL_OPT_WINDLL +# if defined(_WINDLL) /* This is used when building OpenSSL to + * indicate that DLL linkage should be used */ +# define OPENSSL_OPT_WINDLL +# endif +# endif +# endif + +/* ------------------------------- OpenVMS -------------------------------- */ +# if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYSNAME_VMS) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_VMS +# if defined(__DECC) +# define OPENSSL_SYS_VMS_DECC +# elif defined(__DECCXX) +# define OPENSSL_SYS_VMS_DECC +# define OPENSSL_SYS_VMS_DECCXX +# else +# define OPENSSL_SYS_VMS_NODECC +# endif +# endif + +/* -------------------------------- OS/2 ---------------------------------- */ +# if defined(__EMX__) || defined(__OS2__) +# undef OPENSSL_SYS_UNIX +# define OPENSSL_SYS_OS2 +# endif + +/* -------------------------------- Unix ---------------------------------- */ +# ifdef OPENSSL_SYS_UNIX +# if defined(linux) || defined(__linux__) || defined(OPENSSL_SYSNAME_LINUX) +# define OPENSSL_SYS_LINUX +# endif +# ifdef OPENSSL_SYSNAME_MPE +# define OPENSSL_SYS_MPE +# endif +# ifdef OPENSSL_SYSNAME_SNI +# define OPENSSL_SYS_SNI +# endif +# ifdef OPENSSL_SYSNAME_ULTRASPARC +# define OPENSSL_SYS_ULTRASPARC +# endif +# ifdef OPENSSL_SYSNAME_NEWS4 +# define OPENSSL_SYS_NEWS4 +# endif +# ifdef OPENSSL_SYSNAME_MACOSX +# define OPENSSL_SYS_MACOSX +# endif +# ifdef OPENSSL_SYSNAME_MACOSX_RHAPSODY +# define OPENSSL_SYS_MACOSX_RHAPSODY +# define OPENSSL_SYS_MACOSX +# endif +# ifdef OPENSSL_SYSNAME_SUNOS +# define OPENSSL_SYS_SUNOS +# endif +# if defined(_CRAY) || defined(OPENSSL_SYSNAME_CRAY) +# define OPENSSL_SYS_CRAY +# endif +# if defined(_AIX) || defined(OPENSSL_SYSNAME_AIX) +# define OPENSSL_SYS_AIX +# endif +# endif + +/* -------------------------------- VOS ----------------------------------- */ +# ifdef OPENSSL_SYSNAME_VOS +# define OPENSSL_SYS_VOS +# endif + +/* ------------------------------ VxWorks --------------------------------- */ +# ifdef OPENSSL_SYSNAME_VXWORKS +# define OPENSSL_SYS_VXWORKS +# endif + +/** + * That's it for OS-specific stuff + *****************************************************************************/ + +/* Specials for I/O an exit */ +# ifdef OPENSSL_SYS_MSDOS +# define OPENSSL_UNISTD_IO +# define OPENSSL_DECLARE_EXIT extern void exit(int); +# else +# define OPENSSL_UNISTD_IO OPENSSL_UNISTD +# define OPENSSL_DECLARE_EXIT /* declared in unistd.h */ +# endif + +/*- + * Definitions of OPENSSL_GLOBAL and OPENSSL_EXTERN, to define and declare + * certain global symbols that, with some compilers under VMS, have to be + * defined and declared explicitely with globaldef and globalref. + * Definitions of OPENSSL_EXPORT and OPENSSL_IMPORT, to define and declare + * DLL exports and imports for compilers under Win32. These are a little + * more complicated to use. Basically, for any library that exports some + * global variables, the following code must be present in the header file + * that declares them, before OPENSSL_EXTERN is used: + * + * #ifdef SOME_BUILD_FLAG_MACRO + * # undef OPENSSL_EXTERN + * # define OPENSSL_EXTERN OPENSSL_EXPORT + * #endif + * + * The default is to have OPENSSL_EXPORT, OPENSSL_IMPORT and OPENSSL_GLOBAL + * have some generally sensible values, and for OPENSSL_EXTERN to have the + * value OPENSSL_IMPORT. + */ + +# if defined(OPENSSL_SYS_VMS_NODECC) +# define OPENSSL_EXPORT globalref +# define OPENSSL_IMPORT globalref +# define OPENSSL_GLOBAL globaldef +# elif defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL) +# define OPENSSL_EXPORT extern __declspec(dllexport) +# define OPENSSL_IMPORT extern __declspec(dllimport) +# define OPENSSL_GLOBAL +# else +# define OPENSSL_EXPORT extern +# define OPENSSL_IMPORT extern +# define OPENSSL_GLOBAL +# endif +# define OPENSSL_EXTERN OPENSSL_IMPORT + +/*- + * Macros to allow global variables to be reached through function calls when + * required (if a shared library version requires it, for example. + * The way it's done allows definitions like this: + * + * // in foobar.c + * OPENSSL_IMPLEMENT_GLOBAL(int,foobar,0) + * // in foobar.h + * OPENSSL_DECLARE_GLOBAL(int,foobar); + * #define foobar OPENSSL_GLOBAL_REF(foobar) + */ +# ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION +# define OPENSSL_IMPLEMENT_GLOBAL(type,name) \ + extern type _hide_##name; \ + type *_shadow_##name(void) { return &_hide_##name; } \ + static type _hide_##name +# define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void) +# define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name())) +# else +# define OPENSSL_IMPLEMENT_GLOBAL(type,name) OPENSSL_GLOBAL type _shadow_##name +# define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name +# define OPENSSL_GLOBAL_REF(name) _shadow_##name +# endif + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/ebcdic.h b/CryptoPkg/Include/openssl/ebcdic.h new file mode 100644 index 0000000..fc72ecf --- /dev/null +++ b/CryptoPkg/Include/openssl/ebcdic.h @@ -0,0 +1,19 @@ +/* crypto/ebcdic.h */ + +#ifndef HEADER_EBCDIC_H +# define HEADER_EBCDIC_H + +# include + +/* Avoid name clashes with other applications */ +# define os_toascii _openssl_os_toascii +# define os_toebcdic _openssl_os_toebcdic +# define ebcdic2ascii _openssl_ebcdic2ascii +# define ascii2ebcdic _openssl_ascii2ebcdic + +extern const unsigned char os_toascii[256]; +extern const unsigned char os_toebcdic[256]; +void *ebcdic2ascii(void *dest, const void *srce, size_t count); +void *ascii2ebcdic(void *dest, const void *srce, size_t count); + +#endif diff --git a/CryptoPkg/Include/openssl/ec.h b/CryptoPkg/Include/openssl/ec.h new file mode 100644 index 0000000..08adf1f --- /dev/null +++ b/CryptoPkg/Include/openssl/ec.h @@ -0,0 +1,570 @@ +/* crypto/ec/ec.h */ +/* + * Originally written by Bodo Moeller for the OpenSSL project. + */ +/* ==================================================================== + * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ +/* ==================================================================== + * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. + * + * Portions of the attached software ("Contribution") are developed by + * SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project. + * + * The Contribution is licensed pursuant to the OpenSSL open source + * license provided above. + * + * The elliptic curve binary polynomial software is originally written by + * Sheueling Chang Shantz and Douglas Stebila of Sun Microsystems Laboratories. + * + */ + +#ifndef HEADER_EC_H +# define HEADER_EC_H + +# include + +# ifdef OPENSSL_NO_EC +# error EC is disabled. +# endif + +# include +# include +# ifndef OPENSSL_NO_DEPRECATED +# include +# endif + +# ifdef __cplusplus +extern "C" { +# elif defined(__SUNPRO_C) +# if __SUNPRO_C >= 0x520 +# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE) +# endif +# endif + +# ifndef OPENSSL_ECC_MAX_FIELD_BITS +# define OPENSSL_ECC_MAX_FIELD_BITS 661 +# endif + +typedef enum { + /* values as defined in X9.62 (ECDSA) and elsewhere */ + POINT_CONVERSION_COMPRESSED = 2, + POINT_CONVERSION_UNCOMPRESSED = 4, + POINT_CONVERSION_HYBRID = 6 +} point_conversion_form_t; + +typedef struct ec_method_st EC_METHOD; + +typedef struct ec_group_st + /*- + EC_METHOD *meth; + -- field definition + -- curve coefficients + -- optional generator with associated information (order, cofactor) + -- optional extra data (precomputed table for fast computation of multiples of generator) + -- ASN1 stuff + */ + EC_GROUP; + +typedef struct ec_point_st EC_POINT; + +/* + * EC_METHODs for curves over GF(p). EC_GFp_simple_method provides the basis + * for the optimized methods. + */ +const EC_METHOD *EC_GFp_simple_method(void); +const EC_METHOD *EC_GFp_mont_method(void); +const EC_METHOD *EC_GFp_nist_method(void); + +/* + * EC_METHOD for curves over GF(2^m). + */ +const EC_METHOD *EC_GF2m_simple_method(void); + +EC_GROUP *EC_GROUP_new(const EC_METHOD *); +void EC_GROUP_free(EC_GROUP *); +void EC_GROUP_clear_free(EC_GROUP *); +int EC_GROUP_copy(EC_GROUP *, const EC_GROUP *); +EC_GROUP *EC_GROUP_dup(const EC_GROUP *); + +const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *); +int EC_METHOD_get_field_type(const EC_METHOD *); + +int EC_GROUP_set_generator(EC_GROUP *, const EC_POINT *generator, + const BIGNUM *order, const BIGNUM *cofactor); +const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *); +int EC_GROUP_get_order(const EC_GROUP *, BIGNUM *order, BN_CTX *); +int EC_GROUP_get_cofactor(const EC_GROUP *, BIGNUM *cofactor, BN_CTX *); + +void EC_GROUP_set_curve_name(EC_GROUP *, int nid); +int EC_GROUP_get_curve_name(const EC_GROUP *); + +void EC_GROUP_set_asn1_flag(EC_GROUP *, int flag); +int EC_GROUP_get_asn1_flag(const EC_GROUP *); + +void EC_GROUP_set_point_conversion_form(EC_GROUP *, point_conversion_form_t); +point_conversion_form_t EC_GROUP_get_point_conversion_form(const EC_GROUP *); + +unsigned char *EC_GROUP_get0_seed(const EC_GROUP *); +size_t EC_GROUP_get_seed_len(const EC_GROUP *); +size_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len); + +int EC_GROUP_set_curve_GFp(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, + const BIGNUM *b, BN_CTX *); +int EC_GROUP_get_curve_GFp(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, + BN_CTX *); +int EC_GROUP_set_curve_GF2m(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, + const BIGNUM *b, BN_CTX *); +int EC_GROUP_get_curve_GF2m(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, + BN_CTX *); + +/* returns the number of bits needed to represent a field element */ +int EC_GROUP_get_degree(const EC_GROUP *); + +/* EC_GROUP_check() returns 1 if 'group' defines a valid group, 0 otherwise */ +int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx); +/* + * EC_GROUP_check_discriminant() returns 1 if the discriminant of the + * elliptic curve is not zero, 0 otherwise + */ +int EC_GROUP_check_discriminant(const EC_GROUP *, BN_CTX *); + +/* EC_GROUP_cmp() returns 0 if both groups are equal and 1 otherwise */ +int EC_GROUP_cmp(const EC_GROUP *, const EC_GROUP *, BN_CTX *); + +/* + * EC_GROUP_new_GF*() calls EC_GROUP_new() and EC_GROUP_set_GF*() after + * choosing an appropriate EC_METHOD + */ +EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, + const BIGNUM *b, BN_CTX *); +EC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a, + const BIGNUM *b, BN_CTX *); + +/* + * EC_GROUP_new_by_curve_name() creates a EC_GROUP structure specified by a + * curve name (in form of a NID) + */ +EC_GROUP *EC_GROUP_new_by_curve_name(int nid); +/* handling of internal curves */ +typedef struct { + int nid; + const char *comment; +} EC_builtin_curve; +/* + * EC_builtin_curves(EC_builtin_curve *r, size_t size) returns number of all + * available curves or zero if a error occurred. In case r ist not zero + * nitems EC_builtin_curve structures are filled with the data of the first + * nitems internal groups + */ +size_t EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems); + +/* EC_POINT functions */ + +EC_POINT *EC_POINT_new(const EC_GROUP *); +void EC_POINT_free(EC_POINT *); +void EC_POINT_clear_free(EC_POINT *); +int EC_POINT_copy(EC_POINT *, const EC_POINT *); +EC_POINT *EC_POINT_dup(const EC_POINT *, const EC_GROUP *); + +const EC_METHOD *EC_POINT_method_of(const EC_POINT *); + +int EC_POINT_set_to_infinity(const EC_GROUP *, EC_POINT *); +int EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *, EC_POINT *, + const BIGNUM *x, const BIGNUM *y, + const BIGNUM *z, BN_CTX *); +int EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *, + const EC_POINT *, BIGNUM *x, + BIGNUM *y, BIGNUM *z, BN_CTX *); +int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *, EC_POINT *, + const BIGNUM *x, const BIGNUM *y, + BN_CTX *); +int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *, const EC_POINT *, + BIGNUM *x, BIGNUM *y, BN_CTX *); +int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *, EC_POINT *, + const BIGNUM *x, int y_bit, + BN_CTX *); + +int EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *, EC_POINT *, + const BIGNUM *x, const BIGNUM *y, + BN_CTX *); +int EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *, const EC_POINT *, + BIGNUM *x, BIGNUM *y, BN_CTX *); +int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *, EC_POINT *, + const BIGNUM *x, int y_bit, + BN_CTX *); + +size_t EC_POINT_point2oct(const EC_GROUP *, const EC_POINT *, + point_conversion_form_t form, unsigned char *buf, + size_t len, BN_CTX *); +int EC_POINT_oct2point(const EC_GROUP *, EC_POINT *, const unsigned char *buf, + size_t len, BN_CTX *); + +/* other interfaces to point2oct/oct2point: */ +BIGNUM *EC_POINT_point2bn(const EC_GROUP *, const EC_POINT *, + point_conversion_form_t form, BIGNUM *, BN_CTX *); +EC_POINT *EC_POINT_bn2point(const EC_GROUP *, const BIGNUM *, + EC_POINT *, BN_CTX *); +char *EC_POINT_point2hex(const EC_GROUP *, const EC_POINT *, + point_conversion_form_t form, BN_CTX *); +EC_POINT *EC_POINT_hex2point(const EC_GROUP *, const char *, + EC_POINT *, BN_CTX *); + +int EC_POINT_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, + const EC_POINT *b, BN_CTX *); +int EC_POINT_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *); +int EC_POINT_invert(const EC_GROUP *, EC_POINT *, BN_CTX *); + +int EC_POINT_is_at_infinity(const EC_GROUP *, const EC_POINT *); +int EC_POINT_is_on_curve(const EC_GROUP *, const EC_POINT *, BN_CTX *); +int EC_POINT_cmp(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, + BN_CTX *); + +int EC_POINT_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *); +int EC_POINTs_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], + BN_CTX *); + +int EC_POINTs_mul(const EC_GROUP *, EC_POINT *r, const BIGNUM *, size_t num, + const EC_POINT *[], const BIGNUM *[], BN_CTX *); +int EC_POINT_mul(const EC_GROUP *, EC_POINT *r, const BIGNUM *, + const EC_POINT *, const BIGNUM *, BN_CTX *); + +/* + * EC_GROUP_precompute_mult() stores multiples of generator for faster point + * multiplication + */ +int EC_GROUP_precompute_mult(EC_GROUP *, BN_CTX *); +/* + * EC_GROUP_have_precompute_mult() reports whether such precomputation has + * been done + */ +int EC_GROUP_have_precompute_mult(const EC_GROUP *); + +/* ASN1 stuff */ + +/* + * EC_GROUP_get_basis_type() returns the NID of the basis type used to + * represent the field elements + */ +int EC_GROUP_get_basis_type(const EC_GROUP *); +int EC_GROUP_get_trinomial_basis(const EC_GROUP *, unsigned int *k); +int EC_GROUP_get_pentanomial_basis(const EC_GROUP *, unsigned int *k1, + unsigned int *k2, unsigned int *k3); + +# define OPENSSL_EC_NAMED_CURVE 0x001 + +typedef struct ecpk_parameters_st ECPKPARAMETERS; + +EC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len); +int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out); + +# define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x) +# define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of_const(EC_GROUP,i2d_ECPKParameters,bp,x) +# define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \ + (char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x)) +# define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \ + (unsigned char *)(x)) + +# ifndef OPENSSL_NO_BIO +int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); +# endif +# ifndef OPENSSL_NO_FP_API +int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); +# endif + +/* the EC_KEY stuff */ +typedef struct ec_key_st EC_KEY; + +/* some values for the encoding_flag */ +# define EC_PKEY_NO_PARAMETERS 0x001 +# define EC_PKEY_NO_PUBKEY 0x002 + +EC_KEY *EC_KEY_new(void); +EC_KEY *EC_KEY_new_by_curve_name(int nid); +void EC_KEY_free(EC_KEY *); +EC_KEY *EC_KEY_copy(EC_KEY *, const EC_KEY *); +EC_KEY *EC_KEY_dup(const EC_KEY *); + +int EC_KEY_up_ref(EC_KEY *); + +const EC_GROUP *EC_KEY_get0_group(const EC_KEY *); +int EC_KEY_set_group(EC_KEY *, const EC_GROUP *); +const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *); +int EC_KEY_set_private_key(EC_KEY *, const BIGNUM *); +const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *); +int EC_KEY_set_public_key(EC_KEY *, const EC_POINT *); +unsigned EC_KEY_get_enc_flags(const EC_KEY *); +void EC_KEY_set_enc_flags(EC_KEY *, unsigned int); +point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *); +void EC_KEY_set_conv_form(EC_KEY *, point_conversion_form_t); +/* functions to set/get method specific data */ +void *EC_KEY_get_key_method_data(EC_KEY *, + void *(*dup_func) (void *), + void (*free_func) (void *), + void (*clear_free_func) (void *)); +/** Sets the key method data of an EC_KEY object, if none has yet been set. + * \param key EC_KEY object + * \param data opaque data to install. + * \param dup_func a function that duplicates |data|. + * \param free_func a function that frees |data|. + * \param clear_free_func a function that wipes and frees |data|. + * \return the previously set data pointer, or NULL if |data| was inserted. + */ +void *EC_KEY_insert_key_method_data(EC_KEY *key, void *data, + void *(*dup_func) (void *), + void (*free_func) (void *), + void (*clear_free_func) (void *)); +/* wrapper functions for the underlying EC_GROUP object */ +void EC_KEY_set_asn1_flag(EC_KEY *, int); +int EC_KEY_precompute_mult(EC_KEY *, BN_CTX *ctx); + +/* EC_KEY_generate_key() creates a ec private (public) key */ +int EC_KEY_generate_key(EC_KEY *); +/* EC_KEY_check_key() */ +int EC_KEY_check_key(const EC_KEY *); + +/* de- and encoding functions for SEC1 ECPrivateKey */ +EC_KEY *d2i_ECPrivateKey(EC_KEY **a, const unsigned char **in, long len); +int i2d_ECPrivateKey(EC_KEY *a, unsigned char **out); +/* de- and encoding functions for EC parameters */ +EC_KEY *d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len); +int i2d_ECParameters(EC_KEY *a, unsigned char **out); +/* + * de- and encoding functions for EC public key (octet string, not DER -- + * hence 'o2i' and 'i2o') + */ +EC_KEY *o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len); +int i2o_ECPublicKey(EC_KEY *a, unsigned char **out); + +# ifndef OPENSSL_NO_BIO +int ECParameters_print(BIO *bp, const EC_KEY *x); +int EC_KEY_print(BIO *bp, const EC_KEY *x, int off); +# endif +# ifndef OPENSSL_NO_FP_API +int ECParameters_print_fp(FILE *fp, const EC_KEY *x); +int EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off); +# endif + +# define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) + +# ifndef __cplusplus +# if defined(__SUNPRO_C) +# if __SUNPRO_C >= 0x520 +# pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE) +# endif +# endif +# endif + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_EC_strings(void); + +/* Error codes for the EC functions. */ + +/* Function codes. */ +# define EC_F_COMPUTE_WNAF 143 +# define EC_F_D2I_ECPARAMETERS 144 +# define EC_F_D2I_ECPKPARAMETERS 145 +# define EC_F_D2I_ECPRIVATEKEY 146 +# define EC_F_ECPARAMETERS_PRINT 147 +# define EC_F_ECPARAMETERS_PRINT_FP 148 +# define EC_F_ECPKPARAMETERS_PRINT 149 +# define EC_F_ECPKPARAMETERS_PRINT_FP 150 +# define EC_F_ECP_NIST_MOD_192 203 +# define EC_F_ECP_NIST_MOD_224 204 +# define EC_F_ECP_NIST_MOD_256 205 +# define EC_F_ECP_NIST_MOD_521 206 +# define EC_F_EC_ASN1_GROUP2CURVE 153 +# define EC_F_EC_ASN1_GROUP2FIELDID 154 +# define EC_F_EC_ASN1_GROUP2PARAMETERS 155 +# define EC_F_EC_ASN1_GROUP2PKPARAMETERS 156 +# define EC_F_EC_ASN1_PARAMETERS2GROUP 157 +# define EC_F_EC_ASN1_PKPARAMETERS2GROUP 158 +# define EC_F_EC_EX_DATA_SET_DATA 211 +# define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY 208 +# define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT 159 +# define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE 195 +# define EC_F_EC_GF2M_SIMPLE_OCT2POINT 160 +# define EC_F_EC_GF2M_SIMPLE_POINT2OCT 161 +# define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 162 +# define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 163 +# define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES 164 +# define EC_F_EC_GFP_MONT_FIELD_DECODE 133 +# define EC_F_EC_GFP_MONT_FIELD_ENCODE 134 +# define EC_F_EC_GFP_MONT_FIELD_MUL 131 +# define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE 209 +# define EC_F_EC_GFP_MONT_FIELD_SQR 132 +# define EC_F_EC_GFP_MONT_GROUP_SET_CURVE 189 +# define EC_F_EC_GFP_MONT_GROUP_SET_CURVE_GFP 135 +# define EC_F_EC_GFP_NIST_FIELD_MUL 200 +# define EC_F_EC_GFP_NIST_FIELD_SQR 201 +# define EC_F_EC_GFP_NIST_GROUP_SET_CURVE 202 +# define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT 165 +# define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE 166 +# define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE_GFP 100 +# define EC_F_EC_GFP_SIMPLE_GROUP_SET_GENERATOR 101 +# define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE 102 +# define EC_F_EC_GFP_SIMPLE_OCT2POINT 103 +# define EC_F_EC_GFP_SIMPLE_POINT2OCT 104 +# define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE 137 +# define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES 167 +# define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES_GFP 105 +# define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES 168 +# define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES_GFP 128 +# define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES 169 +# define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES_GFP 129 +# define EC_F_EC_GROUP_CHECK 170 +# define EC_F_EC_GROUP_CHECK_DISCRIMINANT 171 +# define EC_F_EC_GROUP_COPY 106 +# define EC_F_EC_GROUP_GET0_GENERATOR 139 +# define EC_F_EC_GROUP_GET_COFACTOR 140 +# define EC_F_EC_GROUP_GET_CURVE_GF2M 172 +# define EC_F_EC_GROUP_GET_CURVE_GFP 130 +# define EC_F_EC_GROUP_GET_DEGREE 173 +# define EC_F_EC_GROUP_GET_ORDER 141 +# define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS 193 +# define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS 194 +# define EC_F_EC_GROUP_NEW 108 +# define EC_F_EC_GROUP_NEW_BY_CURVE_NAME 174 +# define EC_F_EC_GROUP_NEW_FROM_DATA 175 +# define EC_F_EC_GROUP_PRECOMPUTE_MULT 142 +# define EC_F_EC_GROUP_SET_CURVE_GF2M 176 +# define EC_F_EC_GROUP_SET_CURVE_GFP 109 +# define EC_F_EC_GROUP_SET_EXTRA_DATA 110 +# define EC_F_EC_GROUP_SET_GENERATOR 111 +# define EC_F_EC_KEY_CHECK_KEY 177 +# define EC_F_EC_KEY_COPY 178 +# define EC_F_EC_KEY_GENERATE_KEY 179 +# define EC_F_EC_KEY_NEW 182 +# define EC_F_EC_KEY_PRINT 180 +# define EC_F_EC_KEY_PRINT_FP 181 +# define EC_F_EC_POINTS_MAKE_AFFINE 136 +# define EC_F_EC_POINTS_MUL 138 +# define EC_F_EC_POINT_ADD 112 +# define EC_F_EC_POINT_CMP 113 +# define EC_F_EC_POINT_COPY 114 +# define EC_F_EC_POINT_DBL 115 +# define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M 183 +# define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP 116 +# define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP 117 +# define EC_F_EC_POINT_INVERT 210 +# define EC_F_EC_POINT_IS_AT_INFINITY 118 +# define EC_F_EC_POINT_IS_ON_CURVE 119 +# define EC_F_EC_POINT_MAKE_AFFINE 120 +# define EC_F_EC_POINT_MUL 184 +# define EC_F_EC_POINT_NEW 121 +# define EC_F_EC_POINT_OCT2POINT 122 +# define EC_F_EC_POINT_POINT2OCT 123 +# define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M 185 +# define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP 124 +# define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M 186 +# define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP 125 +# define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP 126 +# define EC_F_EC_POINT_SET_TO_INFINITY 127 +# define EC_F_EC_PRE_COMP_DUP 207 +# define EC_F_EC_PRE_COMP_NEW 196 +# define EC_F_EC_WNAF_MUL 187 +# define EC_F_EC_WNAF_PRECOMPUTE_MULT 188 +# define EC_F_I2D_ECPARAMETERS 190 +# define EC_F_I2D_ECPKPARAMETERS 191 +# define EC_F_I2D_ECPRIVATEKEY 192 +# define EC_F_I2O_ECPUBLICKEY 151 +# define EC_F_O2I_ECPUBLICKEY 152 + +/* Reason codes. */ +# define EC_R_ASN1_ERROR 115 +# define EC_R_ASN1_UNKNOWN_FIELD 116 +# define EC_R_BUFFER_TOO_SMALL 100 +# define EC_R_D2I_ECPKPARAMETERS_FAILURE 117 +# define EC_R_DISCRIMINANT_IS_ZERO 118 +# define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 119 +# define EC_R_FIELD_TOO_LARGE 138 +# define EC_R_GROUP2PKPARAMETERS_FAILURE 120 +# define EC_R_I2D_ECPKPARAMETERS_FAILURE 121 +# define EC_R_INCOMPATIBLE_OBJECTS 101 +# define EC_R_INVALID_ARGUMENT 112 +# define EC_R_INVALID_COMPRESSED_POINT 110 +# define EC_R_INVALID_COMPRESSION_BIT 109 +# define EC_R_INVALID_ENCODING 102 +# define EC_R_INVALID_FIELD 103 +# define EC_R_INVALID_FORM 104 +# define EC_R_INVALID_GROUP_ORDER 122 +# define EC_R_INVALID_PENTANOMIAL_BASIS 132 +# define EC_R_INVALID_PRIVATE_KEY 123 +# define EC_R_INVALID_TRINOMIAL_BASIS 137 +# define EC_R_MISSING_PARAMETERS 124 +# define EC_R_MISSING_PRIVATE_KEY 125 +# define EC_R_NOT_A_NIST_PRIME 135 +# define EC_R_NOT_A_SUPPORTED_NIST_PRIME 136 +# define EC_R_NOT_IMPLEMENTED 126 +# define EC_R_NOT_INITIALIZED 111 +# define EC_R_NO_FIELD_MOD 133 +# define EC_R_PASSED_NULL_PARAMETER 134 +# define EC_R_PKPARAMETERS2GROUP_FAILURE 127 +# define EC_R_POINT_AT_INFINITY 106 +# define EC_R_POINT_IS_NOT_ON_CURVE 107 +# define EC_R_SLOT_FULL 108 +# define EC_R_UNDEFINED_GENERATOR 113 +# define EC_R_UNDEFINED_ORDER 128 +# define EC_R_UNKNOWN_GROUP 129 +# define EC_R_UNKNOWN_ORDER 114 +# define EC_R_UNSUPPORTED_FIELD 131 +# define EC_R_WRONG_ORDER 130 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/ecdh.h b/CryptoPkg/Include/openssl/ecdh.h new file mode 100644 index 0000000..eb4047d --- /dev/null +++ b/CryptoPkg/Include/openssl/ecdh.h @@ -0,0 +1,125 @@ +/* crypto/ecdh/ecdh.h */ +/* ==================================================================== + * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. + * + * The Elliptic Curve Public-Key Crypto Library (ECC Code) included + * herein is developed by SUN MICROSYSTEMS, INC., and is contributed + * to the OpenSSL project. + * + * The ECC Code is licensed pursuant to the OpenSSL open source + * license provided below. + * + * The ECDH software is originally written by Douglas Stebila of + * Sun Microsystems Laboratories. + * + */ +/* ==================================================================== + * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * licensing@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ +#ifndef HEADER_ECDH_H +# define HEADER_ECDH_H + +# include + +# ifdef OPENSSL_NO_ECDH +# error ECDH is disabled. +# endif + +# include +# include +# ifndef OPENSSL_NO_DEPRECATED +# include +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +const ECDH_METHOD *ECDH_OpenSSL(void); + +void ECDH_set_default_method(const ECDH_METHOD *); +const ECDH_METHOD *ECDH_get_default_method(void); +int ECDH_set_method(EC_KEY *, const ECDH_METHOD *); + +int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, + EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen, + void *out, size_t *outlen)); + +int ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new + *new_func, CRYPTO_EX_dup *dup_func, + CRYPTO_EX_free *free_func); +int ECDH_set_ex_data(EC_KEY *d, int idx, void *arg); +void *ECDH_get_ex_data(EC_KEY *d, int idx); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_ECDH_strings(void); + +/* Error codes for the ECDH functions. */ + +/* Function codes. */ +# define ECDH_F_ECDH_COMPUTE_KEY 100 +# define ECDH_F_ECDH_DATA_NEW_METHOD 101 + +/* Reason codes. */ +# define ECDH_R_KDF_FAILED 102 +# define ECDH_R_NO_PRIVATE_VALUE 100 +# define ECDH_R_POINT_ARITHMETIC_FAILURE 101 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/ecdsa.h b/CryptoPkg/Include/openssl/ecdsa.h new file mode 100644 index 0000000..48dd988 --- /dev/null +++ b/CryptoPkg/Include/openssl/ecdsa.h @@ -0,0 +1,271 @@ +/* crypto/ecdsa/ecdsa.h */ +/** + * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions + * \author Written by Nils Larsch for the OpenSSL project + */ +/* ==================================================================== + * Copyright (c) 2000-2003 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * licensing@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ +#ifndef HEADER_ECDSA_H +# define HEADER_ECDSA_H + +# include + +# ifdef OPENSSL_NO_ECDSA +# error ECDSA is disabled. +# endif + +# include +# include +# ifndef OPENSSL_NO_DEPRECATED +# include +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct ECDSA_SIG_st { + BIGNUM *r; + BIGNUM *s; +} ECDSA_SIG; + +/** ECDSA_SIG *ECDSA_SIG_new(void) + * allocates and initialize a ECDSA_SIG structure + * \return pointer to a ECDSA_SIG structure or NULL if an error occurred + */ +ECDSA_SIG *ECDSA_SIG_new(void); + +/** ECDSA_SIG_free + * frees a ECDSA_SIG structure + * \param a pointer to the ECDSA_SIG structure + */ +void ECDSA_SIG_free(ECDSA_SIG *a); + +/** i2d_ECDSA_SIG + * DER encode content of ECDSA_SIG object (note: this function modifies *pp + * (*pp += length of the DER encoded signature)). + * \param a pointer to the ECDSA_SIG object + * \param pp pointer to a unsigned char pointer for the output or NULL + * \return the length of the DER encoded ECDSA_SIG object or 0 + */ +int i2d_ECDSA_SIG(const ECDSA_SIG *a, unsigned char **pp); + +/** d2i_ECDSA_SIG + * decodes a DER encoded ECDSA signature (note: this function changes *pp + * (*pp += len)). + * \param v pointer to ECDSA_SIG pointer (may be NULL) + * \param pp buffer with the DER encoded signature + * \param len bufferlength + * \return pointer to the decoded ECDSA_SIG structure (or NULL) + */ +ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **v, const unsigned char **pp, long len); + +/** ECDSA_do_sign + * computes the ECDSA signature of the given hash value using + * the supplied private key and returns the created signature. + * \param dgst pointer to the hash value + * \param dgst_len length of the hash value + * \param eckey pointer to the EC_KEY object containing a private EC key + * \return pointer to a ECDSA_SIG structure or NULL + */ +ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len, + EC_KEY *eckey); + +/** ECDSA_do_sign_ex + * computes ECDSA signature of a given hash value using the supplied + * private key (note: sig must point to ECDSA_size(eckey) bytes of memory). + * \param dgst pointer to the hash value to sign + * \param dgstlen length of the hash value + * \param kinv optional pointer to a pre-computed inverse k + * \param rp optional pointer to the pre-computed rp value (see + * ECDSA_sign_setup + * \param eckey pointer to the EC_KEY object containing a private EC key + * \return pointer to a ECDSA_SIG structure or NULL + */ +ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen, + const BIGNUM *kinv, const BIGNUM *rp, + EC_KEY *eckey); + +/** ECDSA_do_verify + * verifies that the supplied signature is a valid ECDSA + * signature of the supplied hash value using the supplied public key. + * \param dgst pointer to the hash value + * \param dgst_len length of the hash value + * \param sig pointer to the ECDSA_SIG structure + * \param eckey pointer to the EC_KEY object containing a public EC key + * \return 1 if the signature is valid, 0 if the signature is invalid and -1 on error + */ +int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, + const ECDSA_SIG *sig, EC_KEY *eckey); + +const ECDSA_METHOD *ECDSA_OpenSSL(void); + +/** ECDSA_set_default_method + * sets the default ECDSA method + * \param meth the new default ECDSA_METHOD + */ +void ECDSA_set_default_method(const ECDSA_METHOD *meth); + +/** ECDSA_get_default_method + * returns the default ECDSA method + * \return pointer to ECDSA_METHOD structure containing the default method + */ +const ECDSA_METHOD *ECDSA_get_default_method(void); + +/** ECDSA_set_method + * sets method to be used for the ECDSA operations + * \param eckey pointer to the EC_KEY object + * \param meth pointer to the new method + * \return 1 on success and 0 otherwise + */ +int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); + +/** ECDSA_size + * returns the maximum length of the DER encoded signature + * \param eckey pointer to a EC_KEY object + * \return numbers of bytes required for the DER encoded signature + */ +int ECDSA_size(const EC_KEY *eckey); + +/** ECDSA_sign_setup + * precompute parts of the signing operation. + * \param eckey pointer to the EC_KEY object containing a private EC key + * \param ctx pointer to a BN_CTX object (may be NULL) + * \param kinv pointer to a BIGNUM pointer for the inverse of k + * \param rp pointer to a BIGNUM pointer for x coordinate of k * generator + * \return 1 on success and 0 otherwise + */ +int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp); + +/** ECDSA_sign + * computes ECDSA signature of a given hash value using the supplied + * private key (note: sig must point to ECDSA_size(eckey) bytes of memory). + * \param type this parameter is ignored + * \param dgst pointer to the hash value to sign + * \param dgstlen length of the hash value + * \param sig buffer to hold the DER encoded signature + * \param siglen pointer to the length of the returned signature + * \param eckey pointer to the EC_KEY object containing a private EC key + * \return 1 on success and 0 otherwise + */ +int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, + unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); + +/** ECDSA_sign_ex + * computes ECDSA signature of a given hash value using the supplied + * private key (note: sig must point to ECDSA_size(eckey) bytes of memory). + * \param type this parameter is ignored + * \param dgst pointer to the hash value to sign + * \param dgstlen length of the hash value + * \param sig buffer to hold the DER encoded signature + * \param siglen pointer to the length of the returned signature + * \param kinv optional pointer to a pre-computed inverse k + * \param rp optional pointer to the pre-computed rp value (see + * ECDSA_sign_setup + * \param eckey pointer to the EC_KEY object containing a private EC key + * \return 1 on success and 0 otherwise + */ +int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen, + unsigned char *sig, unsigned int *siglen, + const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); + +/** ECDSA_verify + * verifies that the given signature is valid ECDSA signature + * of the supplied hash value using the specified public key. + * \param type this parameter is ignored + * \param dgst pointer to the hash value + * \param dgstlen length of the hash value + * \param sig pointer to the DER encoded signature + * \param siglen length of the DER encoded signature + * \param eckey pointer to the EC_KEY object containing a public EC key + * \return 1 if the signature is valid, 0 if the signature is invalid and -1 on error + */ +int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen, + const unsigned char *sig, int siglen, EC_KEY *eckey); + +/* the standard ex_data functions */ +int ECDSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new + *new_func, CRYPTO_EX_dup *dup_func, + CRYPTO_EX_free *free_func); +int ECDSA_set_ex_data(EC_KEY *d, int idx, void *arg); +void *ECDSA_get_ex_data(EC_KEY *d, int idx); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_ECDSA_strings(void); + +/* Error codes for the ECDSA functions. */ + +/* Function codes. */ +# define ECDSA_F_ECDSA_DATA_NEW_METHOD 100 +# define ECDSA_F_ECDSA_DO_SIGN 101 +# define ECDSA_F_ECDSA_DO_VERIFY 102 +# define ECDSA_F_ECDSA_SIGN_SETUP 103 + +/* Reason codes. */ +# define ECDSA_R_BAD_SIGNATURE 100 +# define ECDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE 101 +# define ECDSA_R_ERR_EC_LIB 102 +# define ECDSA_R_MISSING_PARAMETERS 103 +# define ECDSA_R_NEED_NEW_SETUP_VALUES 106 +# define ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED 104 +# define ECDSA_R_SIGNATURE_MALLOC_FAILED 105 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/engine.h b/CryptoPkg/Include/openssl/engine.h new file mode 100644 index 0000000..335b78f --- /dev/null +++ b/CryptoPkg/Include/openssl/engine.h @@ -0,0 +1,918 @@ +/* openssl/engine.h */ +/* + * Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL project + * 2000. + */ +/* ==================================================================== + * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * licensing@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ +/* ==================================================================== + * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. + * ECDH support in OpenSSL originally developed by + * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. + */ + +#ifndef HEADER_ENGINE_H +# define HEADER_ENGINE_H + +# include + +# ifdef OPENSSL_NO_ENGINE +# error ENGINE is disabled. +# endif + +# ifndef OPENSSL_NO_DEPRECATED +# include +# ifndef OPENSSL_NO_RSA +# include +# endif +# ifndef OPENSSL_NO_DSA +# include +# endif +# ifndef OPENSSL_NO_DH +# include +# endif +# ifndef OPENSSL_NO_ECDH +# include +# endif +# ifndef OPENSSL_NO_ECDSA +# include +# endif +# include +# include +# include +# include +# endif + +# include + +# include +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * These flags are used to control combinations of algorithm (methods) by + * bitwise "OR"ing. + */ +# define ENGINE_METHOD_RSA (unsigned int)0x0001 +# define ENGINE_METHOD_DSA (unsigned int)0x0002 +# define ENGINE_METHOD_DH (unsigned int)0x0004 +# define ENGINE_METHOD_RAND (unsigned int)0x0008 +# define ENGINE_METHOD_ECDH (unsigned int)0x0010 +# define ENGINE_METHOD_ECDSA (unsigned int)0x0020 +# define ENGINE_METHOD_CIPHERS (unsigned int)0x0040 +# define ENGINE_METHOD_DIGESTS (unsigned int)0x0080 +# define ENGINE_METHOD_STORE (unsigned int)0x0100 +/* Obvious all-or-nothing cases. */ +# define ENGINE_METHOD_ALL (unsigned int)0xFFFF +# define ENGINE_METHOD_NONE (unsigned int)0x0000 + +/* + * This(ese) flag(s) controls behaviour of the ENGINE_TABLE mechanism used + * internally to control registration of ENGINE implementations, and can be + * set by ENGINE_set_table_flags(). The "NOINIT" flag prevents attempts to + * initialise registered ENGINEs if they are not already initialised. + */ +# define ENGINE_TABLE_FLAG_NOINIT (unsigned int)0x0001 + +/* ENGINE flags that can be set by ENGINE_set_flags(). */ +/* Not used */ +/* #define ENGINE_FLAGS_MALLOCED 0x0001 */ + +/* + * This flag is for ENGINEs that wish to handle the various 'CMD'-related + * control commands on their own. Without this flag, ENGINE_ctrl() handles + * these control commands on behalf of the ENGINE using their "cmd_defns" + * data. + */ +# define ENGINE_FLAGS_MANUAL_CMD_CTRL (int)0x0002 + +/* + * This flag is for ENGINEs who return new duplicate structures when found + * via "ENGINE_by_id()". When an ENGINE must store state (eg. if + * ENGINE_ctrl() commands are called in sequence as part of some stateful + * process like key-generation setup and execution), it can set this flag - + * then each attempt to obtain the ENGINE will result in it being copied into + * a new structure. Normally, ENGINEs don't declare this flag so + * ENGINE_by_id() just increments the existing ENGINE's structural reference + * count. + */ +# define ENGINE_FLAGS_BY_ID_COPY (int)0x0004 + +/* + * ENGINEs can support their own command types, and these flags are used in + * ENGINE_CTRL_GET_CMD_FLAGS to indicate to the caller what kind of input + * each command expects. Currently only numeric and string input is + * supported. If a control command supports none of the _NUMERIC, _STRING, or + * _NO_INPUT options, then it is regarded as an "internal" control command - + * and not for use in config setting situations. As such, they're not + * available to the ENGINE_ctrl_cmd_string() function, only raw ENGINE_ctrl() + * access. Changes to this list of 'command types' should be reflected + * carefully in ENGINE_cmd_is_executable() and ENGINE_ctrl_cmd_string(). + */ + +/* accepts a 'long' input value (3rd parameter to ENGINE_ctrl) */ +# define ENGINE_CMD_FLAG_NUMERIC (unsigned int)0x0001 +/* + * accepts string input (cast from 'void*' to 'const char *', 4th parameter + * to ENGINE_ctrl) + */ +# define ENGINE_CMD_FLAG_STRING (unsigned int)0x0002 +/* + * Indicates that the control command takes *no* input. Ie. the control + * command is unparameterised. + */ +# define ENGINE_CMD_FLAG_NO_INPUT (unsigned int)0x0004 +/* + * Indicates that the control command is internal. This control command won't + * be shown in any output, and is only usable through the ENGINE_ctrl_cmd() + * function. + */ +# define ENGINE_CMD_FLAG_INTERNAL (unsigned int)0x0008 + +/* + * NB: These 3 control commands are deprecated and should not be used. + * ENGINEs relying on these commands should compile conditional support for + * compatibility (eg. if these symbols are defined) but should also migrate + * the same functionality to their own ENGINE-specific control functions that + * can be "discovered" by calling applications. The fact these control + * commands wouldn't be "executable" (ie. usable by text-based config) + * doesn't change the fact that application code can find and use them + * without requiring per-ENGINE hacking. + */ + +/* + * These flags are used to tell the ctrl function what should be done. All + * command numbers are shared between all engines, even if some don't make + * sense to some engines. In such a case, they do nothing but return the + * error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED. + */ +# define ENGINE_CTRL_SET_LOGSTREAM 1 +# define ENGINE_CTRL_SET_PASSWORD_CALLBACK 2 +# define ENGINE_CTRL_HUP 3/* Close and reinitialise + * any handles/connections + * etc. */ +# define ENGINE_CTRL_SET_USER_INTERFACE 4/* Alternative to callback */ +# define ENGINE_CTRL_SET_CALLBACK_DATA 5/* User-specific data, used + * when calling the password + * callback and the user + * interface */ +# define ENGINE_CTRL_LOAD_CONFIGURATION 6/* Load a configuration, + * given a string that + * represents a file name + * or so */ +# define ENGINE_CTRL_LOAD_SECTION 7/* Load data from a given + * section in the already + * loaded configuration */ + +/* + * These control commands allow an application to deal with an arbitrary + * engine in a dynamic way. Warn: Negative return values indicate errors FOR + * THESE COMMANDS because zero is used to indicate 'end-of-list'. Other + * commands, including ENGINE-specific command types, return zero for an + * error. An ENGINE can choose to implement these ctrl functions, and can + * internally manage things however it chooses - it does so by setting the + * ENGINE_FLAGS_MANUAL_CMD_CTRL flag (using ENGINE_set_flags()). Otherwise + * the ENGINE_ctrl() code handles this on the ENGINE's behalf using the + * cmd_defns data (set using ENGINE_set_cmd_defns()). This means an ENGINE's + * ctrl() handler need only implement its own commands - the above "meta" + * commands will be taken care of. + */ + +/* + * Returns non-zero if the supplied ENGINE has a ctrl() handler. If "not", + * then all the remaining control commands will return failure, so it is + * worth checking this first if the caller is trying to "discover" the + * engine's capabilities and doesn't want errors generated unnecessarily. + */ +# define ENGINE_CTRL_HAS_CTRL_FUNCTION 10 +/* + * Returns a positive command number for the first command supported by the + * engine. Returns zero if no ctrl commands are supported. + */ +# define ENGINE_CTRL_GET_FIRST_CMD_TYPE 11 +/* + * The 'long' argument specifies a command implemented by the engine, and the + * return value is the next command supported, or zero if there are no more. + */ +# define ENGINE_CTRL_GET_NEXT_CMD_TYPE 12 +/* + * The 'void*' argument is a command name (cast from 'const char *'), and the + * return value is the command that corresponds to it. + */ +# define ENGINE_CTRL_GET_CMD_FROM_NAME 13 +/* + * The next two allow a command to be converted into its corresponding string + * form. In each case, the 'long' argument supplies the command. In the + * NAME_LEN case, the return value is the length of the command name (not + * counting a trailing EOL). In the NAME case, the 'void*' argument must be a + * string buffer large enough, and it will be populated with the name of the + * command (WITH a trailing EOL). + */ +# define ENGINE_CTRL_GET_NAME_LEN_FROM_CMD 14 +# define ENGINE_CTRL_GET_NAME_FROM_CMD 15 +/* The next two are similar but give a "short description" of a command. */ +# define ENGINE_CTRL_GET_DESC_LEN_FROM_CMD 16 +# define ENGINE_CTRL_GET_DESC_FROM_CMD 17 +/* + * With this command, the return value is the OR'd combination of + * ENGINE_CMD_FLAG_*** values that indicate what kind of input a given + * engine-specific ctrl command expects. + */ +# define ENGINE_CTRL_GET_CMD_FLAGS 18 + +/* + * ENGINE implementations should start the numbering of their own control + * commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE + 1, etc). + */ +# define ENGINE_CMD_BASE 200 + +/* + * NB: These 2 nCipher "chil" control commands are deprecated, and their + * functionality is now available through ENGINE-specific control commands + * (exposed through the above-mentioned 'CMD'-handling). Code using these 2 + * commands should be migrated to the more general command handling before + * these are removed. + */ + +/* Flags specific to the nCipher "chil" engine */ +# define ENGINE_CTRL_CHIL_SET_FORKCHECK 100 + /* + * Depending on the value of the (long)i argument, this sets or + * unsets the SimpleForkCheck flag in the CHIL API to enable or + * disable checking and workarounds for applications that fork(). + */ +# define ENGINE_CTRL_CHIL_NO_LOCKING 101 + /* + * This prevents the initialisation function from providing mutex + * callbacks to the nCipher library. + */ + +/* + * If an ENGINE supports its own specific control commands and wishes the + * framework to handle the above 'ENGINE_CMD_***'-manipulation commands on + * its behalf, it should supply a null-terminated array of ENGINE_CMD_DEFN + * entries to ENGINE_set_cmd_defns(). It should also implement a ctrl() + * handler that supports the stated commands (ie. the "cmd_num" entries as + * described by the array). NB: The array must be ordered in increasing order + * of cmd_num. "null-terminated" means that the last ENGINE_CMD_DEFN element + * has cmd_num set to zero and/or cmd_name set to NULL. + */ +typedef struct ENGINE_CMD_DEFN_st { + unsigned int cmd_num; /* The command number */ + const char *cmd_name; /* The command name itself */ + const char *cmd_desc; /* A short description of the command */ + unsigned int cmd_flags; /* The input the command expects */ +} ENGINE_CMD_DEFN; + +/* Generic function pointer */ +typedef int (*ENGINE_GEN_FUNC_PTR) (void); +/* Generic function pointer taking no arguments */ +typedef int (*ENGINE_GEN_INT_FUNC_PTR) (ENGINE *); +/* Specific control function pointer */ +typedef int (*ENGINE_CTRL_FUNC_PTR) (ENGINE *, int, long, void *, + void (*f) (void)); +/* Generic load_key function pointer */ +typedef EVP_PKEY *(*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *, + UI_METHOD *ui_method, + void *callback_data); +typedef int (*ENGINE_SSL_CLIENT_CERT_PTR) (ENGINE *, SSL *ssl, + STACK_OF(X509_NAME) *ca_dn, + X509 **pcert, EVP_PKEY **pkey, + STACK_OF(X509) **pother, + UI_METHOD *ui_method, + void *callback_data); +/*- + * These callback types are for an ENGINE's handler for cipher and digest logic. + * These handlers have these prototypes; + * int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid); + * int foo(ENGINE *e, const EVP_MD **digest, const int **nids, int nid); + * Looking at how to implement these handlers in the case of cipher support, if + * the framework wants the EVP_CIPHER for 'nid', it will call; + * foo(e, &p_evp_cipher, NULL, nid); (return zero for failure) + * If the framework wants a list of supported 'nid's, it will call; + * foo(e, NULL, &p_nids, 0); (returns number of 'nids' or -1 for error) + */ +/* + * Returns to a pointer to the array of supported cipher 'nid's. If the + * second parameter is non-NULL it is set to the size of the returned array. + */ +typedef int (*ENGINE_CIPHERS_PTR) (ENGINE *, const EVP_CIPHER **, + const int **, int); +typedef int (*ENGINE_DIGESTS_PTR) (ENGINE *, const EVP_MD **, const int **, + int); + +/* + * STRUCTURE functions ... all of these functions deal with pointers to + * ENGINE structures where the pointers have a "structural reference". This + * means that their reference is to allowed access to the structure but it + * does not imply that the structure is functional. To simply increment or + * decrement the structural reference count, use ENGINE_by_id and + * ENGINE_free. NB: This is not required when iterating using ENGINE_get_next + * as it will automatically decrement the structural reference count of the + * "current" ENGINE and increment the structural reference count of the + * ENGINE it returns (unless it is NULL). + */ + +/* Get the first/last "ENGINE" type available. */ +ENGINE *ENGINE_get_first(void); +ENGINE *ENGINE_get_last(void); +/* Iterate to the next/previous "ENGINE" type (NULL = end of the list). */ +ENGINE *ENGINE_get_next(ENGINE *e); +ENGINE *ENGINE_get_prev(ENGINE *e); +/* Add another "ENGINE" type into the array. */ +int ENGINE_add(ENGINE *e); +/* Remove an existing "ENGINE" type from the array. */ +int ENGINE_remove(ENGINE *e); +/* Retrieve an engine from the list by its unique "id" value. */ +ENGINE *ENGINE_by_id(const char *id); +/* Add all the built-in engines. */ +void ENGINE_load_openssl(void); +void ENGINE_load_dynamic(void); +# ifndef OPENSSL_NO_STATIC_ENGINE +void ENGINE_load_4758cca(void); +void ENGINE_load_aep(void); +void ENGINE_load_atalla(void); +void ENGINE_load_chil(void); +void ENGINE_load_cswift(void); +# ifndef OPENSSL_NO_GMP +void ENGINE_load_gmp(void); +# endif +void ENGINE_load_nuron(void); +void ENGINE_load_sureware(void); +void ENGINE_load_ubsec(void); +# ifdef OPENSSL_SYS_WIN32 +# ifndef OPENSSL_NO_CAPIENG +void ENGINE_load_capi(void); +# endif +# endif +# endif +void ENGINE_load_cryptodev(void); +void ENGINE_load_padlock(void); +void ENGINE_load_builtin_engines(void); + +/* + * Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation + * "registry" handling. + */ +unsigned int ENGINE_get_table_flags(void); +void ENGINE_set_table_flags(unsigned int flags); + +/*- Manage registration of ENGINEs per "table". For each type, there are 3 + * functions; + * ENGINE_register_***(e) - registers the implementation from 'e' (if it has one) + * ENGINE_unregister_***(e) - unregister the implementation from 'e' + * ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list + * Cleanup is automatically registered from each table when required, so + * ENGINE_cleanup() will reverse any "register" operations. + */ + +int ENGINE_register_RSA(ENGINE *e); +void ENGINE_unregister_RSA(ENGINE *e); +void ENGINE_register_all_RSA(void); + +int ENGINE_register_DSA(ENGINE *e); +void ENGINE_unregister_DSA(ENGINE *e); +void ENGINE_register_all_DSA(void); + +int ENGINE_register_ECDH(ENGINE *e); +void ENGINE_unregister_ECDH(ENGINE *e); +void ENGINE_register_all_ECDH(void); + +int ENGINE_register_ECDSA(ENGINE *e); +void ENGINE_unregister_ECDSA(ENGINE *e); +void ENGINE_register_all_ECDSA(void); + +int ENGINE_register_DH(ENGINE *e); +void ENGINE_unregister_DH(ENGINE *e); +void ENGINE_register_all_DH(void); + +int ENGINE_register_RAND(ENGINE *e); +void ENGINE_unregister_RAND(ENGINE *e); +void ENGINE_register_all_RAND(void); + +int ENGINE_register_STORE(ENGINE *e); +void ENGINE_unregister_STORE(ENGINE *e); +void ENGINE_register_all_STORE(void); + +int ENGINE_register_ciphers(ENGINE *e); +void ENGINE_unregister_ciphers(ENGINE *e); +void ENGINE_register_all_ciphers(void); + +int ENGINE_register_digests(ENGINE *e); +void ENGINE_unregister_digests(ENGINE *e); +void ENGINE_register_all_digests(void); + +/* + * These functions register all support from the above categories. Note, use + * of these functions can result in static linkage of code your application + * may not need. If you only need a subset of functionality, consider using + * more selective initialisation. + */ +int ENGINE_register_complete(ENGINE *e); +int ENGINE_register_all_complete(void); + +/* + * Send parametrised control commands to the engine. The possibilities to + * send down an integer, a pointer to data or a function pointer are + * provided. Any of the parameters may or may not be NULL, depending on the + * command number. In actuality, this function only requires a structural + * (rather than functional) reference to an engine, but many control commands + * may require the engine be functional. The caller should be aware of trying + * commands that require an operational ENGINE, and only use functional + * references in such situations. + */ +int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void)); + +/* + * This function tests if an ENGINE-specific command is usable as a + * "setting". Eg. in an application's config file that gets processed through + * ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to + * ENGINE_ctrl_cmd_string(), only ENGINE_ctrl(). + */ +int ENGINE_cmd_is_executable(ENGINE *e, int cmd); + +/* + * This function works like ENGINE_ctrl() with the exception of taking a + * command name instead of a command number, and can handle optional + * commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation + * on how to use the cmd_name and cmd_optional. + */ +int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, + long i, void *p, void (*f) (void), int cmd_optional); + +/* + * This function passes a command-name and argument to an ENGINE. The + * cmd_name is converted to a command number and the control command is + * called using 'arg' as an argument (unless the ENGINE doesn't support such + * a command, in which case no control command is called). The command is + * checked for input flags, and if necessary the argument will be converted + * to a numeric value. If cmd_optional is non-zero, then if the ENGINE + * doesn't support the given cmd_name the return value will be success + * anyway. This function is intended for applications to use so that users + * (or config files) can supply engine-specific config data to the ENGINE at + * run-time to control behaviour of specific engines. As such, it shouldn't + * be used for calling ENGINE_ctrl() functions that return data, deal with + * binary data, or that are otherwise supposed to be used directly through + * ENGINE_ctrl() in application code. Any "return" data from an ENGINE_ctrl() + * operation in this function will be lost - the return value is interpreted + * as failure if the return value is zero, success otherwise, and this + * function returns a boolean value as a result. In other words, vendors of + * 'ENGINE'-enabled devices should write ENGINE implementations with + * parameterisations that work in this scheme, so that compliant ENGINE-based + * applications can work consistently with the same configuration for the + * same ENGINE-enabled devices, across applications. + */ +int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, + int cmd_optional); + +/* + * These functions are useful for manufacturing new ENGINE structures. They + * don't address reference counting at all - one uses them to populate an + * ENGINE structure with personalised implementations of things prior to + * using it directly or adding it to the builtin ENGINE list in OpenSSL. + * These are also here so that the ENGINE structure doesn't have to be + * exposed and break binary compatibility! + */ +ENGINE *ENGINE_new(void); +int ENGINE_free(ENGINE *e); +int ENGINE_up_ref(ENGINE *e); +int ENGINE_set_id(ENGINE *e, const char *id); +int ENGINE_set_name(ENGINE *e, const char *name); +int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); +int ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth); +int ENGINE_set_ECDH(ENGINE *e, const ECDH_METHOD *ecdh_meth); +int ENGINE_set_ECDSA(ENGINE *e, const ECDSA_METHOD *ecdsa_meth); +int ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth); +int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth); +int ENGINE_set_STORE(ENGINE *e, const STORE_METHOD *store_meth); +int ENGINE_set_destroy_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR destroy_f); +int ENGINE_set_init_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR init_f); +int ENGINE_set_finish_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR finish_f); +int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); +int ENGINE_set_load_privkey_function(ENGINE *e, + ENGINE_LOAD_KEY_PTR loadpriv_f); +int ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f); +int ENGINE_set_load_ssl_client_cert_function(ENGINE *e, + ENGINE_SSL_CLIENT_CERT_PTR + loadssl_f); +int ENGINE_set_ciphers(ENGINE *e, ENGINE_CIPHERS_PTR f); +int ENGINE_set_digests(ENGINE *e, ENGINE_DIGESTS_PTR f); +int ENGINE_set_flags(ENGINE *e, int flags); +int ENGINE_set_cmd_defns(ENGINE *e, const ENGINE_CMD_DEFN *defns); +/* These functions allow control over any per-structure ENGINE data. */ +int ENGINE_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, + CRYPTO_EX_dup *dup_func, + CRYPTO_EX_free *free_func); +int ENGINE_set_ex_data(ENGINE *e, int idx, void *arg); +void *ENGINE_get_ex_data(const ENGINE *e, int idx); + +/* + * This function cleans up anything that needs it. Eg. the ENGINE_add() + * function automatically ensures the list cleanup function is registered to + * be called from ENGINE_cleanup(). Similarly, all ENGINE_register_*** + * functions ensure ENGINE_cleanup() will clean up after them. + */ +void ENGINE_cleanup(void); + +/* + * These return values from within the ENGINE structure. These can be useful + * with functional references as well as structural references - it depends + * which you obtained. Using the result for functional purposes if you only + * obtained a structural reference may be problematic! + */ +const char *ENGINE_get_id(const ENGINE *e); +const char *ENGINE_get_name(const ENGINE *e); +const RSA_METHOD *ENGINE_get_RSA(const ENGINE *e); +const DSA_METHOD *ENGINE_get_DSA(const ENGINE *e); +const ECDH_METHOD *ENGINE_get_ECDH(const ENGINE *e); +const ECDSA_METHOD *ENGINE_get_ECDSA(const ENGINE *e); +const DH_METHOD *ENGINE_get_DH(const ENGINE *e); +const RAND_METHOD *ENGINE_get_RAND(const ENGINE *e); +const STORE_METHOD *ENGINE_get_STORE(const ENGINE *e); +ENGINE_GEN_INT_FUNC_PTR ENGINE_get_destroy_function(const ENGINE *e); +ENGINE_GEN_INT_FUNC_PTR ENGINE_get_init_function(const ENGINE *e); +ENGINE_GEN_INT_FUNC_PTR ENGINE_get_finish_function(const ENGINE *e); +ENGINE_CTRL_FUNC_PTR ENGINE_get_ctrl_function(const ENGINE *e); +ENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e); +ENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e); +ENGINE_SSL_CLIENT_CERT_PTR ENGINE_get_ssl_client_cert_function(const ENGINE + *e); +ENGINE_CIPHERS_PTR ENGINE_get_ciphers(const ENGINE *e); +ENGINE_DIGESTS_PTR ENGINE_get_digests(const ENGINE *e); +const EVP_CIPHER *ENGINE_get_cipher(ENGINE *e, int nid); +const EVP_MD *ENGINE_get_digest(ENGINE *e, int nid); +const ENGINE_CMD_DEFN *ENGINE_get_cmd_defns(const ENGINE *e); +int ENGINE_get_flags(const ENGINE *e); + +/* + * FUNCTIONAL functions. These functions deal with ENGINE structures that + * have (or will) be initialised for use. Broadly speaking, the structural + * functions are useful for iterating the list of available engine types, + * creating new engine types, and other "list" operations. These functions + * actually deal with ENGINEs that are to be used. As such these functions + * can fail (if applicable) when particular engines are unavailable - eg. if + * a hardware accelerator is not attached or not functioning correctly. Each + * ENGINE has 2 reference counts; structural and functional. Every time a + * functional reference is obtained or released, a corresponding structural + * reference is automatically obtained or released too. + */ + +/* + * Initialise a engine type for use (or up its reference count if it's + * already in use). This will fail if the engine is not currently operational + * and cannot initialise. + */ +int ENGINE_init(ENGINE *e); +/* + * Free a functional reference to a engine type. This does not require a + * corresponding call to ENGINE_free as it also releases a structural + * reference. + */ +int ENGINE_finish(ENGINE *e); + +/* + * The following functions handle keys that are stored in some secondary + * location, handled by the engine. The storage may be on a card or + * whatever. + */ +EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, + UI_METHOD *ui_method, void *callback_data); +EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, + UI_METHOD *ui_method, void *callback_data); +int ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s, + STACK_OF(X509_NAME) *ca_dn, X509 **pcert, + EVP_PKEY **ppkey, STACK_OF(X509) **pother, + UI_METHOD *ui_method, void *callback_data); + +/* + * This returns a pointer for the current ENGINE structure that is (by + * default) performing any RSA operations. The value returned is an + * incremented reference, so it should be free'd (ENGINE_finish) before it is + * discarded. + */ +ENGINE *ENGINE_get_default_RSA(void); +/* Same for the other "methods" */ +ENGINE *ENGINE_get_default_DSA(void); +ENGINE *ENGINE_get_default_ECDH(void); +ENGINE *ENGINE_get_default_ECDSA(void); +ENGINE *ENGINE_get_default_DH(void); +ENGINE *ENGINE_get_default_RAND(void); +/* + * These functions can be used to get a functional reference to perform + * ciphering or digesting corresponding to "nid". + */ +ENGINE *ENGINE_get_cipher_engine(int nid); +ENGINE *ENGINE_get_digest_engine(int nid); + +/* + * This sets a new default ENGINE structure for performing RSA operations. If + * the result is non-zero (success) then the ENGINE structure will have had + * its reference count up'd so the caller should still free their own + * reference 'e'. + */ +int ENGINE_set_default_RSA(ENGINE *e); +int ENGINE_set_default_string(ENGINE *e, const char *def_list); +/* Same for the other "methods" */ +int ENGINE_set_default_DSA(ENGINE *e); +int ENGINE_set_default_ECDH(ENGINE *e); +int ENGINE_set_default_ECDSA(ENGINE *e); +int ENGINE_set_default_DH(ENGINE *e); +int ENGINE_set_default_RAND(ENGINE *e); +int ENGINE_set_default_ciphers(ENGINE *e); +int ENGINE_set_default_digests(ENGINE *e); + +/* + * The combination "set" - the flags are bitwise "OR"d from the + * ENGINE_METHOD_*** defines above. As with the "ENGINE_register_complete()" + * function, this function can result in unnecessary static linkage. If your + * application requires only specific functionality, consider using more + * selective functions. + */ +int ENGINE_set_default(ENGINE *e, unsigned int flags); + +void ENGINE_add_conf_module(void); + +/* Deprecated functions ... */ +/* int ENGINE_clear_defaults(void); */ + +/**************************/ +/* DYNAMIC ENGINE SUPPORT */ +/**************************/ + +/* Binary/behaviour compatibility levels */ +# define OSSL_DYNAMIC_VERSION (unsigned long)0x00020000 +/* + * Binary versions older than this are too old for us (whether we're a loader + * or a loadee) + */ +# define OSSL_DYNAMIC_OLDEST (unsigned long)0x00020000 + +/* + * When compiling an ENGINE entirely as an external shared library, loadable + * by the "dynamic" ENGINE, these types are needed. The 'dynamic_fns' + * structure type provides the calling application's (or library's) error + * functionality and memory management function pointers to the loaded + * library. These should be used/set in the loaded library code so that the + * loading application's 'state' will be used/changed in all operations. The + * 'static_state' pointer allows the loaded library to know if it shares the + * same static data as the calling application (or library), and thus whether + * these callbacks need to be set or not. + */ +typedef void *(*dyn_MEM_malloc_cb) (size_t); +typedef void *(*dyn_MEM_realloc_cb) (void *, size_t); +typedef void (*dyn_MEM_free_cb) (void *); +typedef struct st_dynamic_MEM_fns { + dyn_MEM_malloc_cb malloc_cb; + dyn_MEM_realloc_cb realloc_cb; + dyn_MEM_free_cb free_cb; +} dynamic_MEM_fns; +/* + * FIXME: Perhaps the memory and locking code (crypto.h) should declare and + * use these types so we (and any other dependant code) can simplify a bit?? + */ +typedef void (*dyn_lock_locking_cb) (int, int, const char *, int); +typedef int (*dyn_lock_add_lock_cb) (int *, int, int, const char *, int); +typedef struct CRYPTO_dynlock_value *(*dyn_dynlock_create_cb) (const char *, + int); +typedef void (*dyn_dynlock_lock_cb) (int, struct CRYPTO_dynlock_value *, + const char *, int); +typedef void (*dyn_dynlock_destroy_cb) (struct CRYPTO_dynlock_value *, + const char *, int); +typedef struct st_dynamic_LOCK_fns { + dyn_lock_locking_cb lock_locking_cb; + dyn_lock_add_lock_cb lock_add_lock_cb; + dyn_dynlock_create_cb dynlock_create_cb; + dyn_dynlock_lock_cb dynlock_lock_cb; + dyn_dynlock_destroy_cb dynlock_destroy_cb; +} dynamic_LOCK_fns; +/* The top-level structure */ +typedef struct st_dynamic_fns { + void *static_state; + const ERR_FNS *err_fns; + const CRYPTO_EX_DATA_IMPL *ex_data_fns; + dynamic_MEM_fns mem_fns; + dynamic_LOCK_fns lock_fns; +} dynamic_fns; + +/* + * The version checking function should be of this prototype. NB: The + * ossl_version value passed in is the OSSL_DYNAMIC_VERSION of the loading + * code. If this function returns zero, it indicates a (potential) version + * incompatibility and the loaded library doesn't believe it can proceed. + * Otherwise, the returned value is the (latest) version supported by the + * loading library. The loader may still decide that the loaded code's + * version is unsatisfactory and could veto the load. The function is + * expected to be implemented with the symbol name "v_check", and a default + * implementation can be fully instantiated with + * IMPLEMENT_DYNAMIC_CHECK_FN(). + */ +typedef unsigned long (*dynamic_v_check_fn) (unsigned long ossl_version); +# define IMPLEMENT_DYNAMIC_CHECK_FN() \ + OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \ + if(v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \ + return 0; } + +/* + * This function is passed the ENGINE structure to initialise with its own + * function and command settings. It should not adjust the structural or + * functional reference counts. If this function returns zero, (a) the load + * will be aborted, (b) the previous ENGINE state will be memcpy'd back onto + * the structure, and (c) the shared library will be unloaded. So + * implementations should do their own internal cleanup in failure + * circumstances otherwise they could leak. The 'id' parameter, if non-NULL, + * represents the ENGINE id that the loader is looking for. If this is NULL, + * the shared library can choose to return failure or to initialise a + * 'default' ENGINE. If non-NULL, the shared library must initialise only an + * ENGINE matching the passed 'id'. The function is expected to be + * implemented with the symbol name "bind_engine". A standard implementation + * can be instantiated with IMPLEMENT_DYNAMIC_BIND_FN(fn) where the parameter + * 'fn' is a callback function that populates the ENGINE structure and + * returns an int value (zero for failure). 'fn' should have prototype; + * [static] int fn(ENGINE *e, const char *id); + */ +typedef int (*dynamic_bind_engine) (ENGINE *e, const char *id, + const dynamic_fns *fns); +# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \ + OPENSSL_EXPORT \ + int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \ + if(ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \ + if(!CRYPTO_set_mem_functions(fns->mem_fns.malloc_cb, \ + fns->mem_fns.realloc_cb, fns->mem_fns.free_cb)) \ + return 0; \ + CRYPTO_set_locking_callback(fns->lock_fns.lock_locking_cb); \ + CRYPTO_set_add_lock_callback(fns->lock_fns.lock_add_lock_cb); \ + CRYPTO_set_dynlock_create_callback(fns->lock_fns.dynlock_create_cb); \ + CRYPTO_set_dynlock_lock_callback(fns->lock_fns.dynlock_lock_cb); \ + CRYPTO_set_dynlock_destroy_callback(fns->lock_fns.dynlock_destroy_cb); \ + if(!CRYPTO_set_ex_data_implementation(fns->ex_data_fns)) \ + return 0; \ + if(!ERR_set_implementation(fns->err_fns)) return 0; \ + skip_cbs: \ + if(!fn(e,id)) return 0; \ + return 1; } + +/* + * If the loading application (or library) and the loaded ENGINE library + * share the same static data (eg. they're both dynamically linked to the + * same libcrypto.so) we need a way to avoid trying to set system callbacks - + * this would fail, and for the same reason that it's unnecessary to try. If + * the loaded ENGINE has (or gets from through the loader) its own copy of + * the libcrypto static data, we will need to set the callbacks. The easiest + * way to detect this is to have a function that returns a pointer to some + * static data and let the loading application and loaded ENGINE compare + * their respective values. + */ +void *ENGINE_get_static_state(void); + +# if defined(__OpenBSD__) || defined(__FreeBSD__) +void ENGINE_setup_bsd_cryptodev(void); +# endif + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_ENGINE_strings(void); + +/* Error codes for the ENGINE functions. */ + +/* Function codes. */ +# define ENGINE_F_DYNAMIC_CTRL 180 +# define ENGINE_F_DYNAMIC_GET_DATA_CTX 181 +# define ENGINE_F_DYNAMIC_LOAD 182 +# define ENGINE_F_DYNAMIC_SET_DATA_CTX 183 +# define ENGINE_F_ENGINE_ADD 105 +# define ENGINE_F_ENGINE_BY_ID 106 +# define ENGINE_F_ENGINE_CMD_IS_EXECUTABLE 170 +# define ENGINE_F_ENGINE_CTRL 142 +# define ENGINE_F_ENGINE_CTRL_CMD 178 +# define ENGINE_F_ENGINE_CTRL_CMD_STRING 171 +# define ENGINE_F_ENGINE_FINISH 107 +# define ENGINE_F_ENGINE_FREE_UTIL 108 +# define ENGINE_F_ENGINE_GET_CIPHER 185 +# define ENGINE_F_ENGINE_GET_DEFAULT_TYPE 177 +# define ENGINE_F_ENGINE_GET_DIGEST 186 +# define ENGINE_F_ENGINE_GET_NEXT 115 +# define ENGINE_F_ENGINE_GET_PREV 116 +# define ENGINE_F_ENGINE_INIT 119 +# define ENGINE_F_ENGINE_LIST_ADD 120 +# define ENGINE_F_ENGINE_LIST_REMOVE 121 +# define ENGINE_F_ENGINE_LOAD_PRIVATE_KEY 150 +# define ENGINE_F_ENGINE_LOAD_PUBLIC_KEY 151 +# define ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT 192 +# define ENGINE_F_ENGINE_NEW 122 +# define ENGINE_F_ENGINE_REMOVE 123 +# define ENGINE_F_ENGINE_SET_DEFAULT_STRING 189 +# define ENGINE_F_ENGINE_SET_DEFAULT_TYPE 126 +# define ENGINE_F_ENGINE_SET_ID 129 +# define ENGINE_F_ENGINE_SET_NAME 130 +# define ENGINE_F_ENGINE_TABLE_REGISTER 184 +# define ENGINE_F_ENGINE_UNLOAD_KEY 152 +# define ENGINE_F_ENGINE_UNLOCKED_FINISH 191 +# define ENGINE_F_ENGINE_UP_REF 190 +# define ENGINE_F_INT_CTRL_HELPER 172 +# define ENGINE_F_INT_ENGINE_CONFIGURE 188 +# define ENGINE_F_INT_ENGINE_MODULE_INIT 187 +# define ENGINE_F_LOG_MESSAGE 141 + +/* Reason codes. */ +# define ENGINE_R_ALREADY_LOADED 100 +# define ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER 133 +# define ENGINE_R_CMD_NOT_EXECUTABLE 134 +# define ENGINE_R_COMMAND_TAKES_INPUT 135 +# define ENGINE_R_COMMAND_TAKES_NO_INPUT 136 +# define ENGINE_R_CONFLICTING_ENGINE_ID 103 +# define ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED 119 +# define ENGINE_R_DH_NOT_IMPLEMENTED 139 +# define ENGINE_R_DSA_NOT_IMPLEMENTED 140 +# define ENGINE_R_DSO_FAILURE 104 +# define ENGINE_R_DSO_NOT_FOUND 132 +# define ENGINE_R_ENGINES_SECTION_ERROR 148 +# define ENGINE_R_ENGINE_CONFIGURATION_ERROR 101 +# define ENGINE_R_ENGINE_IS_NOT_IN_LIST 105 +# define ENGINE_R_ENGINE_SECTION_ERROR 149 +# define ENGINE_R_FAILED_LOADING_PRIVATE_KEY 128 +# define ENGINE_R_FAILED_LOADING_PUBLIC_KEY 129 +# define ENGINE_R_FINISH_FAILED 106 +# define ENGINE_R_GET_HANDLE_FAILED 107 +# define ENGINE_R_ID_OR_NAME_MISSING 108 +# define ENGINE_R_INIT_FAILED 109 +# define ENGINE_R_INTERNAL_LIST_ERROR 110 +# define ENGINE_R_INVALID_ARGUMENT 143 +# define ENGINE_R_INVALID_CMD_NAME 137 +# define ENGINE_R_INVALID_CMD_NUMBER 138 +# define ENGINE_R_INVALID_INIT_VALUE 151 +# define ENGINE_R_INVALID_STRING 150 +# define ENGINE_R_NOT_INITIALISED 117 +# define ENGINE_R_NOT_LOADED 112 +# define ENGINE_R_NO_CONTROL_FUNCTION 120 +# define ENGINE_R_NO_INDEX 144 +# define ENGINE_R_NO_LOAD_FUNCTION 125 +# define ENGINE_R_NO_REFERENCE 130 +# define ENGINE_R_NO_SUCH_ENGINE 116 +# define ENGINE_R_NO_UNLOAD_FUNCTION 126 +# define ENGINE_R_PROVIDE_PARAMETERS 113 +# define ENGINE_R_RSA_NOT_IMPLEMENTED 141 +# define ENGINE_R_UNIMPLEMENTED_CIPHER 146 +# define ENGINE_R_UNIMPLEMENTED_DIGEST 147 +# define ENGINE_R_VERSION_INCOMPATIBILITY 145 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/err.h b/CryptoPkg/Include/openssl/err.h new file mode 100644 index 0000000..2a2ecc8 --- /dev/null +++ b/CryptoPkg/Include/openssl/err.h @@ -0,0 +1,339 @@ +/* crypto/err/err.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_ERR_H +# define HEADER_ERR_H + +# include + +# ifndef OPENSSL_NO_FP_API +# include +# include +# endif + +# include +# ifndef OPENSSL_NO_BIO +# include +# endif +# ifndef OPENSSL_NO_LHASH +# include +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +# ifndef OPENSSL_NO_ERR +# define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,d,e) +# else +# define ERR_PUT_error(a,b,c,d,e) ERR_put_error(a,b,c,NULL,0) +# endif + +# include + +# define ERR_TXT_MALLOCED 0x01 +# define ERR_TXT_STRING 0x02 + +# define ERR_FLAG_MARK 0x01 + +# define ERR_NUM_ERRORS 16 +typedef struct err_state_st { + unsigned long pid; + int err_flags[ERR_NUM_ERRORS]; + unsigned long err_buffer[ERR_NUM_ERRORS]; + char *err_data[ERR_NUM_ERRORS]; + int err_data_flags[ERR_NUM_ERRORS]; + const char *err_file[ERR_NUM_ERRORS]; + int err_line[ERR_NUM_ERRORS]; + int top, bottom; +} ERR_STATE; + +/* library */ +# define ERR_LIB_NONE 1 +# define ERR_LIB_SYS 2 +# define ERR_LIB_BN 3 +# define ERR_LIB_RSA 4 +# define ERR_LIB_DH 5 +# define ERR_LIB_EVP 6 +# define ERR_LIB_BUF 7 +# define ERR_LIB_OBJ 8 +# define ERR_LIB_PEM 9 +# define ERR_LIB_DSA 10 +# define ERR_LIB_X509 11 +/* #define ERR_LIB_METH 12 */ +# define ERR_LIB_ASN1 13 +# define ERR_LIB_CONF 14 +# define ERR_LIB_CRYPTO 15 +# define ERR_LIB_EC 16 +# define ERR_LIB_SSL 20 +/* #define ERR_LIB_SSL23 21 */ +/* #define ERR_LIB_SSL2 22 */ +/* #define ERR_LIB_SSL3 23 */ +/* #define ERR_LIB_RSAREF 30 */ +/* #define ERR_LIB_PROXY 31 */ +# define ERR_LIB_BIO 32 +# define ERR_LIB_PKCS7 33 +# define ERR_LIB_X509V3 34 +# define ERR_LIB_PKCS12 35 +# define ERR_LIB_RAND 36 +# define ERR_LIB_DSO 37 +# define ERR_LIB_ENGINE 38 +# define ERR_LIB_OCSP 39 +# define ERR_LIB_UI 40 +# define ERR_LIB_COMP 41 +# define ERR_LIB_ECDSA 42 +# define ERR_LIB_ECDH 43 +# define ERR_LIB_STORE 44 +# define ERR_LIB_FIPS 45 +# define ERR_LIB_CMS 46 +# define ERR_LIB_JPAKE 47 + +# define ERR_LIB_USER 128 + +# define SYSerr(f,r) ERR_PUT_error(ERR_LIB_SYS,(f),(r),__FILE__,__LINE__) +# define BNerr(f,r) ERR_PUT_error(ERR_LIB_BN,(f),(r),__FILE__,__LINE__) +# define RSAerr(f,r) ERR_PUT_error(ERR_LIB_RSA,(f),(r),__FILE__,__LINE__) +# define DHerr(f,r) ERR_PUT_error(ERR_LIB_DH,(f),(r),__FILE__,__LINE__) +# define EVPerr(f,r) ERR_PUT_error(ERR_LIB_EVP,(f),(r),__FILE__,__LINE__) +# define BUFerr(f,r) ERR_PUT_error(ERR_LIB_BUF,(f),(r),__FILE__,__LINE__) +# define OBJerr(f,r) ERR_PUT_error(ERR_LIB_OBJ,(f),(r),__FILE__,__LINE__) +# define PEMerr(f,r) ERR_PUT_error(ERR_LIB_PEM,(f),(r),__FILE__,__LINE__) +# define DSAerr(f,r) ERR_PUT_error(ERR_LIB_DSA,(f),(r),__FILE__,__LINE__) +# define X509err(f,r) ERR_PUT_error(ERR_LIB_X509,(f),(r),__FILE__,__LINE__) +# define ASN1err(f,r) ERR_PUT_error(ERR_LIB_ASN1,(f),(r),__FILE__,__LINE__) +# define CONFerr(f,r) ERR_PUT_error(ERR_LIB_CONF,(f),(r),__FILE__,__LINE__) +# define CRYPTOerr(f,r) ERR_PUT_error(ERR_LIB_CRYPTO,(f),(r),__FILE__,__LINE__) +# define ECerr(f,r) ERR_PUT_error(ERR_LIB_EC,(f),(r),__FILE__,__LINE__) +# define SSLerr(f,r) ERR_PUT_error(ERR_LIB_SSL,(f),(r),__FILE__,__LINE__) +# define BIOerr(f,r) ERR_PUT_error(ERR_LIB_BIO,(f),(r),__FILE__,__LINE__) +# define PKCS7err(f,r) ERR_PUT_error(ERR_LIB_PKCS7,(f),(r),__FILE__,__LINE__) +# define X509V3err(f,r) ERR_PUT_error(ERR_LIB_X509V3,(f),(r),__FILE__,__LINE__) +# define PKCS12err(f,r) ERR_PUT_error(ERR_LIB_PKCS12,(f),(r),__FILE__,__LINE__) +# define RANDerr(f,r) ERR_PUT_error(ERR_LIB_RAND,(f),(r),__FILE__,__LINE__) +# define DSOerr(f,r) ERR_PUT_error(ERR_LIB_DSO,(f),(r),__FILE__,__LINE__) +# define ENGINEerr(f,r) ERR_PUT_error(ERR_LIB_ENGINE,(f),(r),__FILE__,__LINE__) +# define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),__FILE__,__LINE__) +# define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),__FILE__,__LINE__) +# define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),__FILE__,__LINE__) +# define ECDSAerr(f,r) ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),__FILE__,__LINE__) +# define ECDHerr(f,r) ERR_PUT_error(ERR_LIB_ECDH,(f),(r),__FILE__,__LINE__) +# define STOREerr(f,r) ERR_PUT_error(ERR_LIB_STORE,(f),(r),__FILE__,__LINE__) +# define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),__FILE__,__LINE__) +# define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),__FILE__,__LINE__) +# define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__) + +/* + * Borland C seems too stupid to be able to shift and do longs in the + * pre-processor :-( + */ +# define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)*0x1000000)| \ + ((((unsigned long)f)&0xfffL)*0x1000)| \ + ((((unsigned long)r)&0xfffL))) +# define ERR_GET_LIB(l) (int)((((unsigned long)l)>>24L)&0xffL) +# define ERR_GET_FUNC(l) (int)((((unsigned long)l)>>12L)&0xfffL) +# define ERR_GET_REASON(l) (int)((l)&0xfffL) +# define ERR_FATAL_ERROR(l) (int)((l)&ERR_R_FATAL) + +/* OS functions */ +# define SYS_F_FOPEN 1 +# define SYS_F_CONNECT 2 +# define SYS_F_GETSERVBYNAME 3 +# define SYS_F_SOCKET 4 +# define SYS_F_IOCTLSOCKET 5 +# define SYS_F_BIND 6 +# define SYS_F_LISTEN 7 +# define SYS_F_ACCEPT 8 +# define SYS_F_WSASTARTUP 9/* Winsock stuff */ +# define SYS_F_OPENDIR 10 +# define SYS_F_FREAD 11 + +/* reasons */ +# define ERR_R_SYS_LIB ERR_LIB_SYS/* 2 */ +# define ERR_R_BN_LIB ERR_LIB_BN/* 3 */ +# define ERR_R_RSA_LIB ERR_LIB_RSA/* 4 */ +# define ERR_R_DH_LIB ERR_LIB_DH/* 5 */ +# define ERR_R_EVP_LIB ERR_LIB_EVP/* 6 */ +# define ERR_R_BUF_LIB ERR_LIB_BUF/* 7 */ +# define ERR_R_OBJ_LIB ERR_LIB_OBJ/* 8 */ +# define ERR_R_PEM_LIB ERR_LIB_PEM/* 9 */ +# define ERR_R_DSA_LIB ERR_LIB_DSA/* 10 */ +# define ERR_R_X509_LIB ERR_LIB_X509/* 11 */ +# define ERR_R_ASN1_LIB ERR_LIB_ASN1/* 13 */ +# define ERR_R_CONF_LIB ERR_LIB_CONF/* 14 */ +# define ERR_R_CRYPTO_LIB ERR_LIB_CRYPTO/* 15 */ +# define ERR_R_EC_LIB ERR_LIB_EC/* 16 */ +# define ERR_R_SSL_LIB ERR_LIB_SSL/* 20 */ +# define ERR_R_BIO_LIB ERR_LIB_BIO/* 32 */ +# define ERR_R_PKCS7_LIB ERR_LIB_PKCS7/* 33 */ +# define ERR_R_X509V3_LIB ERR_LIB_X509V3/* 34 */ +# define ERR_R_PKCS12_LIB ERR_LIB_PKCS12/* 35 */ +# define ERR_R_RAND_LIB ERR_LIB_RAND/* 36 */ +# define ERR_R_DSO_LIB ERR_LIB_DSO/* 37 */ +# define ERR_R_ENGINE_LIB ERR_LIB_ENGINE/* 38 */ +# define ERR_R_OCSP_LIB ERR_LIB_OCSP/* 39 */ +# define ERR_R_UI_LIB ERR_LIB_UI/* 40 */ +# define ERR_R_COMP_LIB ERR_LIB_COMP/* 41 */ +# define ERR_R_ECDSA_LIB ERR_LIB_ECDSA/* 42 */ +# define ERR_R_ECDH_LIB ERR_LIB_ECDH/* 43 */ +# define ERR_R_STORE_LIB ERR_LIB_STORE/* 44 */ + +# define ERR_R_NESTED_ASN1_ERROR 58 +# define ERR_R_BAD_ASN1_OBJECT_HEADER 59 +# define ERR_R_BAD_GET_ASN1_OBJECT_CALL 60 +# define ERR_R_EXPECTING_AN_ASN1_SEQUENCE 61 +# define ERR_R_ASN1_LENGTH_MISMATCH 62 +# define ERR_R_MISSING_ASN1_EOS 63 + +/* fatal error */ +# define ERR_R_FATAL 64 +# define ERR_R_MALLOC_FAILURE (1|ERR_R_FATAL) +# define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED (2|ERR_R_FATAL) +# define ERR_R_PASSED_NULL_PARAMETER (3|ERR_R_FATAL) +# define ERR_R_INTERNAL_ERROR (4|ERR_R_FATAL) +# define ERR_R_DISABLED (5|ERR_R_FATAL) + +/* + * 99 is the maximum possible ERR_R_... code, higher values are reserved for + * the individual libraries + */ + +typedef struct ERR_string_data_st { + unsigned long error; + const char *string; +} ERR_STRING_DATA; + +void ERR_put_error(int lib, int func, int reason, const char *file, int line); +void ERR_set_error_data(char *data, int flags); + +unsigned long ERR_get_error(void); +unsigned long ERR_get_error_line(const char **file, int *line); +unsigned long ERR_get_error_line_data(const char **file, int *line, + const char **data, int *flags); +unsigned long ERR_peek_error(void); +unsigned long ERR_peek_error_line(const char **file, int *line); +unsigned long ERR_peek_error_line_data(const char **file, int *line, + const char **data, int *flags); +unsigned long ERR_peek_last_error(void); +unsigned long ERR_peek_last_error_line(const char **file, int *line); +unsigned long ERR_peek_last_error_line_data(const char **file, int *line, + const char **data, int *flags); +void ERR_clear_error(void); +char *ERR_error_string(unsigned long e, char *buf); +void ERR_error_string_n(unsigned long e, char *buf, size_t len); +const char *ERR_lib_error_string(unsigned long e); +const char *ERR_func_error_string(unsigned long e); +const char *ERR_reason_error_string(unsigned long e); +void ERR_print_errors_cb(int (*cb) (const char *str, size_t len, void *u), + void *u); +# ifndef OPENSSL_NO_FP_API +void ERR_print_errors_fp(FILE *fp); +# endif +# ifndef OPENSSL_NO_BIO +void ERR_print_errors(BIO *bp); + +/* Add EFIAPI for UEFI version. */ +#if defined(OPENSSL_SYS_UEFI) +void EFIAPI ERR_add_error_data(int num, ...); +#else +void ERR_add_error_data(int num, ...); +#endif +# endif +void ERR_load_strings(int lib, ERR_STRING_DATA str[]); +void ERR_unload_strings(int lib, ERR_STRING_DATA str[]); +void ERR_load_ERR_strings(void); +void ERR_load_crypto_strings(void); +void ERR_free_strings(void); + +void ERR_remove_state(unsigned long pid); /* if zero we look it up */ +ERR_STATE *ERR_get_state(void); + +# ifndef OPENSSL_NO_LHASH +LHASH *ERR_get_string_table(void); +LHASH *ERR_get_err_state_table(void); +void ERR_release_err_state_table(LHASH **hash); +# endif + +int ERR_get_next_error_library(void); + +int ERR_set_mark(void); +int ERR_pop_to_mark(void); + +# ifdef OPENSSL_FIPS +void int_ERR_set_state_func(ERR_STATE *(*get_func) (void), + void (*remove_func) (unsigned long pid)); +void int_ERR_lib_init(void); +# endif + +/* Already defined in ossl_typ.h */ +/* typedef struct st_ERR_FNS ERR_FNS; */ +/* + * An application can use this function and provide the return value to + * loaded modules that should use the application's ERR state/functionality + */ +const ERR_FNS *ERR_get_implementation(void); +/* + * A loaded module should call this function prior to any ERR operations + * using the application's "ERR_FNS". + */ +int ERR_set_implementation(const ERR_FNS *fns); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/evp.h b/CryptoPkg/Include/openssl/evp.h new file mode 100644 index 0000000..df838d0 --- /dev/null +++ b/CryptoPkg/Include/openssl/evp.h @@ -0,0 +1,1072 @@ +/* crypto/evp/evp.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_ENVELOPE_H +# define HEADER_ENVELOPE_H + +# ifdef OPENSSL_ALGORITHM_DEFINES +# include +# else +# define OPENSSL_ALGORITHM_DEFINES +# include +# undef OPENSSL_ALGORITHM_DEFINES +# endif + +# include + +# include + +# ifndef OPENSSL_NO_BIO +# include +# endif + +# ifdef OPENSSL_FIPS +# include +# endif + +/*- +#define EVP_RC2_KEY_SIZE 16 +#define EVP_RC4_KEY_SIZE 16 +#define EVP_BLOWFISH_KEY_SIZE 16 +#define EVP_CAST5_KEY_SIZE 16 +#define EVP_RC5_32_12_16_KEY_SIZE 16 +*/ +# define EVP_MAX_MD_SIZE 64/* longest known is SHA512 */ +# define EVP_MAX_KEY_LENGTH 32 +# define EVP_MAX_IV_LENGTH 16 +# define EVP_MAX_BLOCK_LENGTH 32 + +# define PKCS5_SALT_LEN 8 +/* Default PKCS#5 iteration count */ +# define PKCS5_DEFAULT_ITER 2048 + +# include + +# define EVP_PK_RSA 0x0001 +# define EVP_PK_DSA 0x0002 +# define EVP_PK_DH 0x0004 +# define EVP_PK_EC 0x0008 +# define EVP_PKT_SIGN 0x0010 +# define EVP_PKT_ENC 0x0020 +# define EVP_PKT_EXCH 0x0040 +# define EVP_PKS_RSA 0x0100 +# define EVP_PKS_DSA 0x0200 +# define EVP_PKS_EC 0x0400 +# define EVP_PKT_EXP 0x1000 /* <= 512 bit key */ + +# define EVP_PKEY_NONE NID_undef +# define EVP_PKEY_RSA NID_rsaEncryption +# define EVP_PKEY_RSA2 NID_rsa +# define EVP_PKEY_DSA NID_dsa +# define EVP_PKEY_DSA1 NID_dsa_2 +# define EVP_PKEY_DSA2 NID_dsaWithSHA +# define EVP_PKEY_DSA3 NID_dsaWithSHA1 +# define EVP_PKEY_DSA4 NID_dsaWithSHA1_2 +# define EVP_PKEY_DH NID_dhKeyAgreement +# define EVP_PKEY_EC NID_X9_62_id_ecPublicKey + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Type needs to be a bit field Sub-type needs to be for variations on the + * method, as in, can it do arbitrary encryption.... + */ +struct evp_pkey_st { + int type; + int save_type; + int references; + union { + char *ptr; +# ifndef OPENSSL_NO_RSA + struct rsa_st *rsa; /* RSA */ +# endif +# ifndef OPENSSL_NO_DSA + struct dsa_st *dsa; /* DSA */ +# endif +# ifndef OPENSSL_NO_DH + struct dh_st *dh; /* DH */ +# endif +# ifndef OPENSSL_NO_EC + struct ec_key_st *ec; /* ECC */ +# endif + } pkey; + int save_parameters; + STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */ +} /* EVP_PKEY */ ; + +# define EVP_PKEY_MO_SIGN 0x0001 +# define EVP_PKEY_MO_VERIFY 0x0002 +# define EVP_PKEY_MO_ENCRYPT 0x0004 +# define EVP_PKEY_MO_DECRYPT 0x0008 + +# if 0 +/* + * This structure is required to tie the message digest and signing together. + * The lookup can be done by md/pkey_method, oid, oid/pkey_method, or oid, md + * and pkey. This is required because for various smart-card perform the + * digest and signing/verification on-board. To handle this case, the + * specific EVP_MD and EVP_PKEY_METHODs need to be closely associated. When a + * PKEY is created, it will have a EVP_PKEY_METHOD associated with it. This + * can either be software or a token to provide the required low level + * routines. + */ +typedef struct evp_pkey_md_st { + int oid; + EVP_MD *md; + EVP_PKEY_METHOD *pkey; +} EVP_PKEY_MD; + +# define EVP_rsa_md2() \ + EVP_PKEY_MD_add(NID_md2WithRSAEncryption,\ + EVP_rsa_pkcs1(),EVP_md2()) +# define EVP_rsa_md5() \ + EVP_PKEY_MD_add(NID_md5WithRSAEncryption,\ + EVP_rsa_pkcs1(),EVP_md5()) +# define EVP_rsa_sha0() \ + EVP_PKEY_MD_add(NID_shaWithRSAEncryption,\ + EVP_rsa_pkcs1(),EVP_sha()) +# define EVP_rsa_sha1() \ + EVP_PKEY_MD_add(NID_sha1WithRSAEncryption,\ + EVP_rsa_pkcs1(),EVP_sha1()) +# define EVP_rsa_ripemd160() \ + EVP_PKEY_MD_add(NID_ripemd160WithRSA,\ + EVP_rsa_pkcs1(),EVP_ripemd160()) +# define EVP_rsa_mdc2() \ + EVP_PKEY_MD_add(NID_mdc2WithRSA,\ + EVP_rsa_octet_string(),EVP_mdc2()) +# define EVP_dsa_sha() \ + EVP_PKEY_MD_add(NID_dsaWithSHA,\ + EVP_dsa(),EVP_sha()) +# define EVP_dsa_sha1() \ + EVP_PKEY_MD_add(NID_dsaWithSHA1,\ + EVP_dsa(),EVP_sha1()) + +typedef struct evp_pkey_method_st { + char *name; + int flags; + int type; /* RSA, DSA, an SSLeay specific constant */ + int oid; /* For the pub-key type */ + int encrypt_oid; /* pub/priv key encryption */ + int (*sign) (); + int (*verify) (); + struct { + int (*set) (); /* get and/or set the underlying type */ + int (*get) (); + int (*encrypt) (); + int (*decrypt) (); + int (*i2d) (); + int (*d2i) (); + int (*dup) (); + } pub, priv; + int (*set_asn1_parameters) (); + int (*get_asn1_parameters) (); +} EVP_PKEY_METHOD; +# endif + +# ifndef EVP_MD +struct env_md_st { + int type; + int pkey_type; + int md_size; + unsigned long flags; + int (*init) (EVP_MD_CTX *ctx); + int (*update) (EVP_MD_CTX *ctx, const void *data, size_t count); + int (*final) (EVP_MD_CTX *ctx, unsigned char *md); + int (*copy) (EVP_MD_CTX *to, const EVP_MD_CTX *from); + int (*cleanup) (EVP_MD_CTX *ctx); + /* FIXME: prototype these some day */ + int (*sign) (int type, const unsigned char *m, unsigned int m_length, + unsigned char *sigret, unsigned int *siglen, void *key); + int (*verify) (int type, const unsigned char *m, unsigned int m_length, + const unsigned char *sigbuf, unsigned int siglen, + void *key); + int required_pkey_type[5]; /* EVP_PKEY_xxx */ + int block_size; + int ctx_size; /* how big does the ctx->md_data need to be */ +} /* EVP_MD */ ; + +typedef int evp_sign_method(int type, const unsigned char *m, + unsigned int m_length, unsigned char *sigret, + unsigned int *siglen, void *key); +typedef int evp_verify_method(int type, const unsigned char *m, + unsigned int m_length, + const unsigned char *sigbuf, + unsigned int siglen, void *key); + +typedef struct { + EVP_MD_CTX *mctx; + void *key; +} EVP_MD_SVCTX; + +/* digest can only handle a single block */ +# define EVP_MD_FLAG_ONESHOT 0x0001 + +/* Note if suitable for use in FIPS mode */ +# define EVP_MD_FLAG_FIPS 0x0400 + +# define EVP_MD_FLAG_SVCTX 0x0800 + /* pass EVP_MD_SVCTX to sign/verify */ + +# define EVP_PKEY_NULL_method NULL,NULL,{0,0,0,0} + +# ifndef OPENSSL_NO_DSA +# define EVP_PKEY_DSA_method (evp_sign_method *)DSA_sign, \ + (evp_verify_method *)DSA_verify, \ + {EVP_PKEY_DSA,EVP_PKEY_DSA2,EVP_PKEY_DSA3, \ + EVP_PKEY_DSA4,0} +# else +# define EVP_PKEY_DSA_method EVP_PKEY_NULL_method +# endif + +# ifndef OPENSSL_NO_ECDSA +# define EVP_PKEY_ECDSA_method (evp_sign_method *)ECDSA_sign, \ + (evp_verify_method *)ECDSA_verify, \ + {EVP_PKEY_EC,0,0,0} +# else +# define EVP_PKEY_ECDSA_method EVP_PKEY_NULL_method +# endif + +# ifndef OPENSSL_NO_RSA +# define EVP_PKEY_RSA_method (evp_sign_method *)RSA_sign, \ + (evp_verify_method *)RSA_verify, \ + {EVP_PKEY_RSA,EVP_PKEY_RSA2,0,0} +# define EVP_PKEY_RSA_ASN1_OCTET_STRING_method \ + (evp_sign_method *)RSA_sign_ASN1_OCTET_STRING, \ + (evp_verify_method *)RSA_verify_ASN1_OCTET_STRING, \ + {EVP_PKEY_RSA,EVP_PKEY_RSA2,0,0} +# else +# define EVP_PKEY_RSA_method EVP_PKEY_NULL_method +# define EVP_PKEY_RSA_ASN1_OCTET_STRING_method EVP_PKEY_NULL_method +# endif + +# endif /* !EVP_MD */ + +struct env_md_ctx_st { + const EVP_MD *digest; + ENGINE *engine; /* functional reference if 'digest' is + * ENGINE-provided */ + unsigned long flags; + void *md_data; +} /* EVP_MD_CTX */ ; + +/* values for EVP_MD_CTX flags */ + +# define EVP_MD_CTX_FLAG_ONESHOT 0x0001/* digest update will be + * called once only */ +# define EVP_MD_CTX_FLAG_CLEANED 0x0002/* context has already been + * cleaned */ +# define EVP_MD_CTX_FLAG_REUSE 0x0004/* Don't free up ctx->md_data + * in EVP_MD_CTX_cleanup */ +# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW 0x0008/* Allow use of non FIPS + * digest in FIPS mode */ + +# define EVP_MD_CTX_FLAG_PAD_MASK 0xF0/* RSA mode to use */ +# define EVP_MD_CTX_FLAG_PAD_PKCS1 0x00/* PKCS#1 v1.5 mode */ +# define EVP_MD_CTX_FLAG_PAD_X931 0x10/* X9.31 mode */ +# define EVP_MD_CTX_FLAG_PAD_PSS 0x20/* PSS mode */ +# define M_EVP_MD_CTX_FLAG_PSS_SALT(ctx) \ + ((ctx->flags>>16) &0xFFFF) /* seed length */ +# define EVP_MD_CTX_FLAG_PSS_MDLEN 0xFFFF/* salt len same as digest */ +# define EVP_MD_CTX_FLAG_PSS_MREC 0xFFFE/* salt max or auto recovered */ + +struct evp_cipher_st { + int nid; + int block_size; + /* Default value for variable length ciphers */ + int key_len; + int iv_len; + /* Various flags */ + unsigned long flags; + /* init key */ + int (*init) (EVP_CIPHER_CTX *ctx, const unsigned char *key, + const unsigned char *iv, int enc); + /* encrypt/decrypt data */ + int (*do_cipher) (EVP_CIPHER_CTX *ctx, unsigned char *out, + const unsigned char *in, unsigned int inl); + /* cleanup ctx */ + int (*cleanup) (EVP_CIPHER_CTX *); + /* how big ctx->cipher_data needs to be */ + int ctx_size; + /* Populate a ASN1_TYPE with parameters */ + int (*set_asn1_parameters) (EVP_CIPHER_CTX *, ASN1_TYPE *); + /* Get parameters from a ASN1_TYPE */ + int (*get_asn1_parameters) (EVP_CIPHER_CTX *, ASN1_TYPE *); + /* Miscellaneous operations */ + int (*ctrl) (EVP_CIPHER_CTX *, int type, int arg, void *ptr); + /* Application data */ + void *app_data; +} /* EVP_CIPHER */ ; + +/* Values for cipher flags */ + +/* Modes for ciphers */ + +# define EVP_CIPH_STREAM_CIPHER 0x0 +# define EVP_CIPH_ECB_MODE 0x1 +# define EVP_CIPH_CBC_MODE 0x2 +# define EVP_CIPH_CFB_MODE 0x3 +# define EVP_CIPH_OFB_MODE 0x4 +# define EVP_CIPH_MODE 0x7 +/* Set if variable length cipher */ +# define EVP_CIPH_VARIABLE_LENGTH 0x8 +/* Set if the iv handling should be done by the cipher itself */ +# define EVP_CIPH_CUSTOM_IV 0x10 +/* Set if the cipher's init() function should be called if key is NULL */ +# define EVP_CIPH_ALWAYS_CALL_INIT 0x20 +/* Call ctrl() to init cipher parameters */ +# define EVP_CIPH_CTRL_INIT 0x40 +/* Don't use standard key length function */ +# define EVP_CIPH_CUSTOM_KEY_LENGTH 0x80 +/* Don't use standard block padding */ +# define EVP_CIPH_NO_PADDING 0x100 +/* cipher handles random key generation */ +# define EVP_CIPH_RAND_KEY 0x200 +/* Note if suitable for use in FIPS mode */ +# define EVP_CIPH_FLAG_FIPS 0x400 +/* Allow non FIPS cipher in FIPS mode */ +# define EVP_CIPH_FLAG_NON_FIPS_ALLOW 0x800 +/* Allow use default ASN1 get/set iv */ +# define EVP_CIPH_FLAG_DEFAULT_ASN1 0x1000 +/* Buffer length in bits not bytes: CFB1 mode only */ +# define EVP_CIPH_FLAG_LENGTH_BITS 0x2000 + +/* ctrl() values */ + +# define EVP_CTRL_INIT 0x0 +# define EVP_CTRL_SET_KEY_LENGTH 0x1 +# define EVP_CTRL_GET_RC2_KEY_BITS 0x2 +# define EVP_CTRL_SET_RC2_KEY_BITS 0x3 +# define EVP_CTRL_GET_RC5_ROUNDS 0x4 +# define EVP_CTRL_SET_RC5_ROUNDS 0x5 +# define EVP_CTRL_RAND_KEY 0x6 + +typedef struct evp_cipher_info_st { + const EVP_CIPHER *cipher; + unsigned char iv[EVP_MAX_IV_LENGTH]; +} EVP_CIPHER_INFO; + +struct evp_cipher_ctx_st { + const EVP_CIPHER *cipher; + ENGINE *engine; /* functional reference if 'cipher' is + * ENGINE-provided */ + int encrypt; /* encrypt or decrypt */ + int buf_len; /* number we have left */ + unsigned char oiv[EVP_MAX_IV_LENGTH]; /* original iv */ + unsigned char iv[EVP_MAX_IV_LENGTH]; /* working iv */ + unsigned char buf[EVP_MAX_BLOCK_LENGTH]; /* saved partial block */ + int num; /* used by cfb/ofb mode */ + void *app_data; /* application stuff */ + int key_len; /* May change for variable length cipher */ + unsigned long flags; /* Various flags */ + void *cipher_data; /* per EVP data */ + int final_used; + int block_mask; + unsigned char final[EVP_MAX_BLOCK_LENGTH]; /* possible final block */ +} /* EVP_CIPHER_CTX */ ; + +typedef struct evp_Encode_Ctx_st { + /* number saved in a partial encode/decode */ + int num; + /* + * The length is either the output line length (in input bytes) or the + * shortest input line length that is ok. Once decoding begins, the + * length is adjusted up each time a longer line is decoded + */ + int length; + /* data to encode */ + unsigned char enc_data[80]; + /* number read on current line */ + int line_num; + int expect_nl; +} EVP_ENCODE_CTX; + +/* Password based encryption function */ +typedef int (EVP_PBE_KEYGEN) (EVP_CIPHER_CTX *ctx, const char *pass, + int passlen, ASN1_TYPE *param, + const EVP_CIPHER *cipher, const EVP_MD *md, + int en_de); + +# ifndef OPENSSL_NO_RSA +# define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\ + (char *)(rsa)) +# endif + +# ifndef OPENSSL_NO_DSA +# define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\ + (char *)(dsa)) +# endif + +# ifndef OPENSSL_NO_DH +# define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,\ + (char *)(dh)) +# endif + +# ifndef OPENSSL_NO_EC +# define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\ + (char *)(eckey)) +# endif + +/* Add some extra combinations */ +# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a)) +# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a)) +# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a)) +# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a)) + +/* Macros to reduce FIPS dependencies: do NOT use in applications */ +# define M_EVP_MD_size(e) ((e)->md_size) +# define M_EVP_MD_block_size(e) ((e)->block_size) +# define M_EVP_MD_CTX_set_flags(ctx,flgs) ((ctx)->flags|=(flgs)) +# define M_EVP_MD_CTX_clear_flags(ctx,flgs) ((ctx)->flags&=~(flgs)) +# define M_EVP_MD_CTX_test_flags(ctx,flgs) ((ctx)->flags&(flgs)) +# define M_EVP_MD_type(e) ((e)->type) +# define M_EVP_MD_CTX_type(e) M_EVP_MD_type(M_EVP_MD_CTX_md(e)) +# define M_EVP_MD_CTX_md(e) ((e)->digest) + +# define M_EVP_CIPHER_CTX_set_flags(ctx,flgs) ((ctx)->flags|=(flgs)) + +int EVP_MD_type(const EVP_MD *md); +# define EVP_MD_nid(e) EVP_MD_type(e) +# define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_nid(e)) +int EVP_MD_pkey_type(const EVP_MD *md); +int EVP_MD_size(const EVP_MD *md); +int EVP_MD_block_size(const EVP_MD *md); + +const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); +# define EVP_MD_CTX_size(e) EVP_MD_size(EVP_MD_CTX_md(e)) +# define EVP_MD_CTX_block_size(e) EVP_MD_block_size(EVP_MD_CTX_md(e)) +# define EVP_MD_CTX_type(e) EVP_MD_type(EVP_MD_CTX_md(e)) + +int EVP_CIPHER_nid(const EVP_CIPHER *cipher); +# define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e)) +int EVP_CIPHER_block_size(const EVP_CIPHER *cipher); +int EVP_CIPHER_key_length(const EVP_CIPHER *cipher); +int EVP_CIPHER_iv_length(const EVP_CIPHER *cipher); +unsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher); +# define EVP_CIPHER_mode(e) (EVP_CIPHER_flags(e) & EVP_CIPH_MODE) + +const EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx); +int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx); +int EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx); +int EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx); +int EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx); +void *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx); +void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data); +# define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)) +unsigned long EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx); +# define EVP_CIPHER_CTX_mode(e) (EVP_CIPHER_CTX_flags(e) & EVP_CIPH_MODE) + +# define EVP_ENCODE_LENGTH(l) (((l+2)/3*4)+(l/48+1)*2+80) +# define EVP_DECODE_LENGTH(l) ((l+3)/4*3+80) + +# define EVP_SignInit_ex(a,b,c) EVP_DigestInit_ex(a,b,c) +# define EVP_SignInit(a,b) EVP_DigestInit(a,b) +# define EVP_SignUpdate(a,b,c) EVP_DigestUpdate(a,b,c) +# define EVP_VerifyInit_ex(a,b,c) EVP_DigestInit_ex(a,b,c) +# define EVP_VerifyInit(a,b) EVP_DigestInit(a,b) +# define EVP_VerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c) +# define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e) +# define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e) + +# ifdef CONST_STRICT +void BIO_set_md(BIO *, const EVP_MD *md); +# else +# define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,0,(char *)md) +# endif +# define BIO_get_md(b,mdp) BIO_ctrl(b,BIO_C_GET_MD,0,(char *)mdp) +# define BIO_get_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(char *)mdcp) +# define BIO_set_md_ctx(b,mdcp) BIO_ctrl(b,BIO_C_SET_MD_CTX,0,(char *)mdcp) +# define BIO_get_cipher_status(b) BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL) +# define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(char *)c_pp) + +int EVP_Cipher(EVP_CIPHER_CTX *c, + unsigned char *out, const unsigned char *in, unsigned int inl); + +# define EVP_add_cipher_alias(n,alias) \ + OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n)) +# define EVP_add_digest_alias(n,alias) \ + OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n)) +# define EVP_delete_cipher_alias(alias) \ + OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS); +# define EVP_delete_digest_alias(alias) \ + OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS); + +void EVP_MD_CTX_init(EVP_MD_CTX *ctx); +int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx); +EVP_MD_CTX *EVP_MD_CTX_create(void); +void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx); +int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in); +void EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags); +void EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags); +int EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags); +int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl); +int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d, size_t cnt); +int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s); +int EVP_Digest(const void *data, size_t count, + unsigned char *md, unsigned int *size, const EVP_MD *type, + ENGINE *impl); + +int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in); +int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type); +int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s); + +int EVP_read_pw_string(char *buf, int length, const char *prompt, int verify); +void EVP_set_pw_prompt(const char *prompt); +char *EVP_get_pw_prompt(void); + +int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, + const unsigned char *salt, const unsigned char *data, + int datal, int count, unsigned char *key, + unsigned char *iv); + +void EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags); +void EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags); +int EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags); + +int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, + const unsigned char *key, const unsigned char *iv); +int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, + ENGINE *impl, const unsigned char *key, + const unsigned char *iv); +int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, + const unsigned char *in, int inl); +int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); +int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); + +int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, + const unsigned char *key, const unsigned char *iv); +int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, + ENGINE *impl, const unsigned char *key, + const unsigned char *iv); +int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, + const unsigned char *in, int inl); +int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl); +int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl); + +int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, + const unsigned char *key, const unsigned char *iv, + int enc); +int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, + ENGINE *impl, const unsigned char *key, + const unsigned char *iv, int enc); +int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, + const unsigned char *in, int inl); +int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl); +int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl); + +int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s, + EVP_PKEY *pkey); + +int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, + unsigned int siglen, EVP_PKEY *pkey); + +int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, + const unsigned char *ek, int ekl, const unsigned char *iv, + EVP_PKEY *priv); +int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); + +int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, + unsigned char **ek, int *ekl, unsigned char *iv, + EVP_PKEY **pubk, int npubk); +int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); + +void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); +void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, + const unsigned char *in, int inl); +void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); +int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n); + +void EVP_DecodeInit(EVP_ENCODE_CTX *ctx); +int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, + const unsigned char *in, int inl); +int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned + char *out, int *outl); +int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n); + +void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a); +int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a); +EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); +void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *a); +int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen); +int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad); +int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr); +int EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key); + +# ifndef OPENSSL_NO_BIO +BIO_METHOD *BIO_f_md(void); +BIO_METHOD *BIO_f_base64(void); +BIO_METHOD *BIO_f_cipher(void); +BIO_METHOD *BIO_f_reliable(void); +void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, + const unsigned char *i, int enc); +# endif + +const EVP_MD *EVP_md_null(void); +# ifndef OPENSSL_NO_MD2 +const EVP_MD *EVP_md2(void); +# endif +# ifndef OPENSSL_NO_MD4 +const EVP_MD *EVP_md4(void); +# endif +# ifndef OPENSSL_NO_MD5 +const EVP_MD *EVP_md5(void); +# endif +# ifndef OPENSSL_NO_SHA +const EVP_MD *EVP_sha(void); +const EVP_MD *EVP_sha1(void); +const EVP_MD *EVP_dss(void); +const EVP_MD *EVP_dss1(void); +const EVP_MD *EVP_ecdsa(void); +# endif +# ifndef OPENSSL_NO_SHA256 +const EVP_MD *EVP_sha224(void); +const EVP_MD *EVP_sha256(void); +# endif +# ifndef OPENSSL_NO_SHA512 +const EVP_MD *EVP_sha384(void); +const EVP_MD *EVP_sha512(void); +# endif +# ifndef OPENSSL_NO_MDC2 +const EVP_MD *EVP_mdc2(void); +# endif +# ifndef OPENSSL_NO_RIPEMD +const EVP_MD *EVP_ripemd160(void); +# endif +const EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */ +# ifndef OPENSSL_NO_DES +const EVP_CIPHER *EVP_des_ecb(void); +const EVP_CIPHER *EVP_des_ede(void); +const EVP_CIPHER *EVP_des_ede3(void); +const EVP_CIPHER *EVP_des_ede_ecb(void); +const EVP_CIPHER *EVP_des_ede3_ecb(void); +const EVP_CIPHER *EVP_des_cfb64(void); +# define EVP_des_cfb EVP_des_cfb64 +const EVP_CIPHER *EVP_des_cfb1(void); +const EVP_CIPHER *EVP_des_cfb8(void); +const EVP_CIPHER *EVP_des_ede_cfb64(void); +# define EVP_des_ede_cfb EVP_des_ede_cfb64 +# if 0 +const EVP_CIPHER *EVP_des_ede_cfb1(void); +const EVP_CIPHER *EVP_des_ede_cfb8(void); +# endif +const EVP_CIPHER *EVP_des_ede3_cfb64(void); +# define EVP_des_ede3_cfb EVP_des_ede3_cfb64 +const EVP_CIPHER *EVP_des_ede3_cfb1(void); +const EVP_CIPHER *EVP_des_ede3_cfb8(void); +const EVP_CIPHER *EVP_des_ofb(void); +const EVP_CIPHER *EVP_des_ede_ofb(void); +const EVP_CIPHER *EVP_des_ede3_ofb(void); +const EVP_CIPHER *EVP_des_cbc(void); +const EVP_CIPHER *EVP_des_ede_cbc(void); +const EVP_CIPHER *EVP_des_ede3_cbc(void); +const EVP_CIPHER *EVP_desx_cbc(void); +/* + * This should now be supported through the dev_crypto ENGINE. But also, why + * are rc4 and md5 declarations made here inside a "NO_DES" precompiler + * branch? + */ +# if 0 +# ifdef OPENSSL_OPENBSD_DEV_CRYPTO +const EVP_CIPHER *EVP_dev_crypto_des_ede3_cbc(void); +const EVP_CIPHER *EVP_dev_crypto_rc4(void); +const EVP_MD *EVP_dev_crypto_md5(void); +# endif +# endif +# endif +# ifndef OPENSSL_NO_RC4 +const EVP_CIPHER *EVP_rc4(void); +const EVP_CIPHER *EVP_rc4_40(void); +# endif +# ifndef OPENSSL_NO_IDEA +const EVP_CIPHER *EVP_idea_ecb(void); +const EVP_CIPHER *EVP_idea_cfb64(void); +# define EVP_idea_cfb EVP_idea_cfb64 +const EVP_CIPHER *EVP_idea_ofb(void); +const EVP_CIPHER *EVP_idea_cbc(void); +# endif +# ifndef OPENSSL_NO_RC2 +const EVP_CIPHER *EVP_rc2_ecb(void); +const EVP_CIPHER *EVP_rc2_cbc(void); +const EVP_CIPHER *EVP_rc2_40_cbc(void); +const EVP_CIPHER *EVP_rc2_64_cbc(void); +const EVP_CIPHER *EVP_rc2_cfb64(void); +# define EVP_rc2_cfb EVP_rc2_cfb64 +const EVP_CIPHER *EVP_rc2_ofb(void); +# endif +# ifndef OPENSSL_NO_BF +const EVP_CIPHER *EVP_bf_ecb(void); +const EVP_CIPHER *EVP_bf_cbc(void); +const EVP_CIPHER *EVP_bf_cfb64(void); +# define EVP_bf_cfb EVP_bf_cfb64 +const EVP_CIPHER *EVP_bf_ofb(void); +# endif +# ifndef OPENSSL_NO_CAST +const EVP_CIPHER *EVP_cast5_ecb(void); +const EVP_CIPHER *EVP_cast5_cbc(void); +const EVP_CIPHER *EVP_cast5_cfb64(void); +# define EVP_cast5_cfb EVP_cast5_cfb64 +const EVP_CIPHER *EVP_cast5_ofb(void); +# endif +# ifndef OPENSSL_NO_RC5 +const EVP_CIPHER *EVP_rc5_32_12_16_cbc(void); +const EVP_CIPHER *EVP_rc5_32_12_16_ecb(void); +const EVP_CIPHER *EVP_rc5_32_12_16_cfb64(void); +# define EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64 +const EVP_CIPHER *EVP_rc5_32_12_16_ofb(void); +# endif +# ifndef OPENSSL_NO_AES +const EVP_CIPHER *EVP_aes_128_ecb(void); +const EVP_CIPHER *EVP_aes_128_cbc(void); +const EVP_CIPHER *EVP_aes_128_cfb1(void); +const EVP_CIPHER *EVP_aes_128_cfb8(void); +const EVP_CIPHER *EVP_aes_128_cfb128(void); +# define EVP_aes_128_cfb EVP_aes_128_cfb128 +const EVP_CIPHER *EVP_aes_128_ofb(void); +# if 0 +const EVP_CIPHER *EVP_aes_128_ctr(void); +# endif +const EVP_CIPHER *EVP_aes_192_ecb(void); +const EVP_CIPHER *EVP_aes_192_cbc(void); +const EVP_CIPHER *EVP_aes_192_cfb1(void); +const EVP_CIPHER *EVP_aes_192_cfb8(void); +const EVP_CIPHER *EVP_aes_192_cfb128(void); +# define EVP_aes_192_cfb EVP_aes_192_cfb128 +const EVP_CIPHER *EVP_aes_192_ofb(void); +# if 0 +const EVP_CIPHER *EVP_aes_192_ctr(void); +# endif +const EVP_CIPHER *EVP_aes_256_ecb(void); +const EVP_CIPHER *EVP_aes_256_cbc(void); +const EVP_CIPHER *EVP_aes_256_cfb1(void); +const EVP_CIPHER *EVP_aes_256_cfb8(void); +const EVP_CIPHER *EVP_aes_256_cfb128(void); +# define EVP_aes_256_cfb EVP_aes_256_cfb128 +const EVP_CIPHER *EVP_aes_256_ofb(void); +# if 0 +const EVP_CIPHER *EVP_aes_256_ctr(void); +# endif +# endif +# ifndef OPENSSL_NO_CAMELLIA +const EVP_CIPHER *EVP_camellia_128_ecb(void); +const EVP_CIPHER *EVP_camellia_128_cbc(void); +const EVP_CIPHER *EVP_camellia_128_cfb1(void); +const EVP_CIPHER *EVP_camellia_128_cfb8(void); +const EVP_CIPHER *EVP_camellia_128_cfb128(void); +# define EVP_camellia_128_cfb EVP_camellia_128_cfb128 +const EVP_CIPHER *EVP_camellia_128_ofb(void); +const EVP_CIPHER *EVP_camellia_192_ecb(void); +const EVP_CIPHER *EVP_camellia_192_cbc(void); +const EVP_CIPHER *EVP_camellia_192_cfb1(void); +const EVP_CIPHER *EVP_camellia_192_cfb8(void); +const EVP_CIPHER *EVP_camellia_192_cfb128(void); +# define EVP_camellia_192_cfb EVP_camellia_192_cfb128 +const EVP_CIPHER *EVP_camellia_192_ofb(void); +const EVP_CIPHER *EVP_camellia_256_ecb(void); +const EVP_CIPHER *EVP_camellia_256_cbc(void); +const EVP_CIPHER *EVP_camellia_256_cfb1(void); +const EVP_CIPHER *EVP_camellia_256_cfb8(void); +const EVP_CIPHER *EVP_camellia_256_cfb128(void); +# define EVP_camellia_256_cfb EVP_camellia_256_cfb128 +const EVP_CIPHER *EVP_camellia_256_ofb(void); +# endif + +# ifndef OPENSSL_NO_SEED +const EVP_CIPHER *EVP_seed_ecb(void); +const EVP_CIPHER *EVP_seed_cbc(void); +const EVP_CIPHER *EVP_seed_cfb128(void); +# define EVP_seed_cfb EVP_seed_cfb128 +const EVP_CIPHER *EVP_seed_ofb(void); +# endif + +void OPENSSL_add_all_algorithms_noconf(void); +void OPENSSL_add_all_algorithms_conf(void); + +# ifdef OPENSSL_LOAD_CONF +# define OpenSSL_add_all_algorithms() \ + OPENSSL_add_all_algorithms_conf() +# else +# define OpenSSL_add_all_algorithms() \ + OPENSSL_add_all_algorithms_noconf() +# endif + +void OpenSSL_add_all_ciphers(void); +void OpenSSL_add_all_digests(void); +# define SSLeay_add_all_algorithms() OpenSSL_add_all_algorithms() +# define SSLeay_add_all_ciphers() OpenSSL_add_all_ciphers() +# define SSLeay_add_all_digests() OpenSSL_add_all_digests() + +int EVP_add_cipher(const EVP_CIPHER *cipher); +int EVP_add_digest(const EVP_MD *digest); + +const EVP_CIPHER *EVP_get_cipherbyname(const char *name); +const EVP_MD *EVP_get_digestbyname(const char *name); +void EVP_cleanup(void); + +int EVP_PKEY_decrypt(unsigned char *dec_key, + const unsigned char *enc_key, int enc_key_len, + EVP_PKEY *private_key); +int EVP_PKEY_encrypt(unsigned char *enc_key, + const unsigned char *key, int key_len, + EVP_PKEY *pub_key); +int EVP_PKEY_type(int type); +int EVP_PKEY_bits(EVP_PKEY *pkey); +int EVP_PKEY_size(EVP_PKEY *pkey); +int EVP_PKEY_assign(EVP_PKEY *pkey, int type, char *key); + +# ifndef OPENSSL_NO_RSA +struct rsa_st; +int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key); +struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey); +# endif +# ifndef OPENSSL_NO_DSA +struct dsa_st; +int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, struct dsa_st *key); +struct dsa_st *EVP_PKEY_get1_DSA(EVP_PKEY *pkey); +# endif +# ifndef OPENSSL_NO_DH +struct dh_st; +int EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key); +struct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey); +# endif +# ifndef OPENSSL_NO_EC +struct ec_key_st; +int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key); +struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey); +# endif + +EVP_PKEY *EVP_PKEY_new(void); +void EVP_PKEY_free(EVP_PKEY *pkey); + +EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, + long length); +int i2d_PublicKey(EVP_PKEY *a, unsigned char **pp); + +EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp, + long length); +EVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp, + long length); +int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp); + +int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from); +int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey); +int EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode); +int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b); + +int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b); + +int EVP_CIPHER_type(const EVP_CIPHER *ctx); + +/* calls methods */ +int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type); +int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type); + +/* These are used by EVP_CIPHER methods */ +int EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type); +int EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type); + +/* PKCS5 password based encryption */ +int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, + ASN1_TYPE *param, const EVP_CIPHER *cipher, + const EVP_MD *md, int en_de); +int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, + const unsigned char *salt, int saltlen, int iter, + int keylen, unsigned char *out); +int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, + ASN1_TYPE *param, const EVP_CIPHER *cipher, + const EVP_MD *md, int en_de); + +void PKCS5_PBE_add(void); + +int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, + ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de); +int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md, + EVP_PBE_KEYGEN *keygen); +void EVP_PBE_cleanup(void); + +# ifdef OPENSSL_FIPS +# ifndef OPENSSL_NO_ENGINE +void int_EVP_MD_set_engine_callbacks(int (*eng_md_init) (ENGINE *impl), + int (*eng_md_fin) (ENGINE *impl), + int (*eng_md_evp) + (EVP_MD_CTX *ctx, const EVP_MD **ptype, + ENGINE *impl)); +void int_EVP_MD_init_engine_callbacks(void); +void int_EVP_CIPHER_set_engine_callbacks(int (*eng_ciph_fin) (ENGINE *impl), + int (*eng_ciph_evp) + (EVP_CIPHER_CTX *ctx, + const EVP_CIPHER **pciph, + ENGINE *impl)); +void int_EVP_CIPHER_init_engine_callbacks(void); +# endif +# endif + +void EVP_add_alg_module(void); + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ +void ERR_load_EVP_strings(void); + +/* Error codes for the EVP functions. */ + +/* Function codes. */ +# define EVP_F_AES_INIT_KEY 133 +# define EVP_F_ALG_MODULE_INIT 138 +# define EVP_F_CAMELLIA_INIT_KEY 159 +# define EVP_F_D2I_PKEY 100 +# define EVP_F_DO_EVP_ENC_ENGINE 140 +# define EVP_F_DO_EVP_ENC_ENGINE_FULL 141 +# define EVP_F_DO_EVP_MD_ENGINE 139 +# define EVP_F_DO_EVP_MD_ENGINE_FULL 142 +# define EVP_F_DSAPKEY2PKCS8 134 +# define EVP_F_DSA_PKEY2PKCS8 135 +# define EVP_F_ECDSA_PKEY2PKCS8 129 +# define EVP_F_ECKEY_PKEY2PKCS8 132 +# define EVP_F_EVP_CIPHERINIT 137 +# define EVP_F_EVP_CIPHERINIT_EX 123 +# define EVP_F_EVP_CIPHER_CTX_CTRL 124 +# define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH 122 +# define EVP_F_EVP_DECRYPTFINAL_EX 101 +# define EVP_F_EVP_DIGESTINIT 136 +# define EVP_F_EVP_DIGESTINIT_EX 128 +# define EVP_F_EVP_ENCRYPTFINAL_EX 127 +# define EVP_F_EVP_MD_CTX_COPY_EX 110 +# define EVP_F_EVP_OPENINIT 102 +# define EVP_F_EVP_PBE_ALG_ADD 115 +# define EVP_F_EVP_PBE_CIPHERINIT 116 +# define EVP_F_EVP_PKCS82PKEY 111 +# define EVP_F_EVP_PKEY2PKCS8_BROKEN 113 +# define EVP_F_EVP_PKEY_COPY_PARAMETERS 103 +# define EVP_F_EVP_PKEY_DECRYPT 104 +# define EVP_F_EVP_PKEY_ENCRYPT 105 +# define EVP_F_EVP_PKEY_GET1_DH 119 +# define EVP_F_EVP_PKEY_GET1_DSA 120 +# define EVP_F_EVP_PKEY_GET1_ECDSA 130 +# define EVP_F_EVP_PKEY_GET1_EC_KEY 131 +# define EVP_F_EVP_PKEY_GET1_RSA 121 +# define EVP_F_EVP_PKEY_NEW 106 +# define EVP_F_EVP_RIJNDAEL 126 +# define EVP_F_EVP_SIGNFINAL 107 +# define EVP_F_EVP_VERIFYFINAL 108 +# define EVP_F_PKCS5_PBE_KEYIVGEN 117 +# define EVP_F_PKCS5_V2_PBE_KEYIVGEN 118 +# define EVP_F_PKCS8_SET_BROKEN 112 +# define EVP_F_RC2_MAGIC_TO_METH 109 +# define EVP_F_RC5_CTRL 125 + +/* Reason codes. */ +# define EVP_R_AES_KEY_SETUP_FAILED 143 +# define EVP_R_ASN1_LIB 140 +# define EVP_R_BAD_BLOCK_LENGTH 136 +# define EVP_R_BAD_DECRYPT 100 +# define EVP_R_BAD_KEY_LENGTH 137 +# define EVP_R_BN_DECODE_ERROR 112 +# define EVP_R_BN_PUBKEY_ERROR 113 +# define EVP_R_CAMELLIA_KEY_SETUP_FAILED 157 +# define EVP_R_CIPHER_PARAMETER_ERROR 122 +# define EVP_R_CTRL_NOT_IMPLEMENTED 132 +# define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED 133 +# define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH 138 +# define EVP_R_DECODE_ERROR 114 +# define EVP_R_DIFFERENT_KEY_TYPES 101 +# define EVP_R_DISABLED_FOR_FIPS 144 +# define EVP_R_ENCODE_ERROR 115 +# define EVP_R_ERROR_LOADING_SECTION 145 +# define EVP_R_ERROR_SETTING_FIPS_MODE 146 +# define EVP_R_EVP_PBE_CIPHERINIT_ERROR 119 +# define EVP_R_EXPECTING_AN_RSA_KEY 127 +# define EVP_R_EXPECTING_A_DH_KEY 128 +# define EVP_R_EXPECTING_A_DSA_KEY 129 +# define EVP_R_EXPECTING_A_ECDSA_KEY 141 +# define EVP_R_EXPECTING_A_EC_KEY 142 +# define EVP_R_FIPS_MODE_NOT_SUPPORTED 147 +# define EVP_R_INITIALIZATION_ERROR 134 +# define EVP_R_INPUT_NOT_INITIALIZED 111 +# define EVP_R_INVALID_FIPS_MODE 148 +# define EVP_R_INVALID_KEY_LENGTH 130 +# define EVP_R_IV_TOO_LARGE 102 +# define EVP_R_KEYGEN_FAILURE 120 +# define EVP_R_MISSING_PARAMETERS 103 +# define EVP_R_NO_CIPHER_SET 131 +# define EVP_R_NO_DIGEST_SET 139 +# define EVP_R_NO_DSA_PARAMETERS 116 +# define EVP_R_NO_SIGN_FUNCTION_CONFIGURED 104 +# define EVP_R_NO_VERIFY_FUNCTION_CONFIGURED 105 +# define EVP_R_PKCS8_UNKNOWN_BROKEN_TYPE 117 +# define EVP_R_PUBLIC_KEY_NOT_RSA 106 +# define EVP_R_UNKNOWN_OPTION 149 +# define EVP_R_UNKNOWN_PBE_ALGORITHM 121 +# define EVP_R_UNSUPORTED_NUMBER_OF_ROUNDS 135 +# define EVP_R_UNSUPPORTED_CIPHER 107 +# define EVP_R_UNSUPPORTED_KEYLENGTH 123 +# define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION 124 +# define EVP_R_UNSUPPORTED_KEY_SIZE 108 +# define EVP_R_UNSUPPORTED_PRF 125 +# define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM 118 +# define EVP_R_UNSUPPORTED_SALT_TYPE 126 +# define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109 +# define EVP_R_WRONG_PUBLIC_KEY_TYPE 110 +# define EVP_R_SEED_KEY_SETUP_FAILED 162 + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/hmac.h b/CryptoPkg/Include/openssl/hmac.h new file mode 100644 index 0000000..fcc2d0f --- /dev/null +++ b/CryptoPkg/Include/openssl/hmac.h @@ -0,0 +1,108 @@ +/* crypto/hmac/hmac.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ +#ifndef HEADER_HMAC_H +# define HEADER_HMAC_H + +# include + +# ifdef OPENSSL_NO_HMAC +# error HMAC is disabled. +# endif + +# include + +# define HMAC_MAX_MD_CBLOCK 128/* largest known is SHA512 */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct hmac_ctx_st { + const EVP_MD *md; + EVP_MD_CTX md_ctx; + EVP_MD_CTX i_ctx; + EVP_MD_CTX o_ctx; + unsigned int key_length; + unsigned char key[HMAC_MAX_MD_CBLOCK]; +} HMAC_CTX; + +# define HMAC_size(e) (EVP_MD_size((e)->md)) + +void HMAC_CTX_init(HMAC_CTX *ctx); +void HMAC_CTX_cleanup(HMAC_CTX *ctx); + +/* deprecated */ +# define HMAC_cleanup(ctx) HMAC_CTX_cleanup(ctx) + +/* deprecated */ +void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md); +void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, + const EVP_MD *md, ENGINE *impl); +void HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); +void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); +unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, + const unsigned char *d, size_t n, unsigned char *md, + unsigned int *md_len); + +void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/idea.h b/CryptoPkg/Include/openssl/idea.h new file mode 100644 index 0000000..60d2d95 --- /dev/null +++ b/CryptoPkg/Include/openssl/idea.h @@ -0,0 +1,105 @@ +/* crypto/idea/idea.h */ +/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_IDEA_H +# define HEADER_IDEA_H + +# include /* IDEA_INT, OPENSSL_NO_IDEA */ + +# ifdef OPENSSL_NO_IDEA +# error IDEA is disabled. +# endif + +# define IDEA_ENCRYPT 1 +# define IDEA_DECRYPT 0 + +# define IDEA_BLOCK 8 +# define IDEA_KEY_LENGTH 16 + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct idea_key_st { + IDEA_INT data[9][6]; +} IDEA_KEY_SCHEDULE; + +const char *idea_options(void); +void idea_ecb_encrypt(const unsigned char *in, unsigned char *out, + IDEA_KEY_SCHEDULE *ks); +# ifdef OPENSSL_FIPS +void private_idea_set_encrypt_key(const unsigned char *key, + IDEA_KEY_SCHEDULE *ks); +# endif +void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks); +void idea_set_decrypt_key(const IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); +void idea_cbc_encrypt(const unsigned char *in, unsigned char *out, + long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, + int enc); +void idea_cfb64_encrypt(const unsigned char *in, unsigned char *out, + long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, + int *num, int enc); +void idea_ofb64_encrypt(const unsigned char *in, unsigned char *out, + long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, + int *num); +void idea_encrypt(unsigned long *in, IDEA_KEY_SCHEDULE *ks); +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/krb5_asn.h b/CryptoPkg/Include/openssl/krb5_asn.h new file mode 100644 index 0000000..9cf5a26 --- /dev/null +++ b/CryptoPkg/Include/openssl/krb5_asn.h @@ -0,0 +1,240 @@ +/* krb5_asn.h */ +/* + * Written by Vern Staats for the OpenSSL project, ** + * using ocsp/{*.h,*asn*.c} as a starting point + */ + +/* ==================================================================== + * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + +#ifndef HEADER_KRB5_ASN_H +# define HEADER_KRB5_ASN_H + +/* + * #include + */ +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * ASN.1 from Kerberos RFC 1510 + */ + +/*- EncryptedData ::= SEQUENCE { + * etype[0] INTEGER, -- EncryptionType + * kvno[1] INTEGER OPTIONAL, + * cipher[2] OCTET STRING -- ciphertext + * } + */ +typedef struct krb5_encdata_st { + ASN1_INTEGER *etype; + ASN1_INTEGER *kvno; + ASN1_OCTET_STRING *cipher; +} KRB5_ENCDATA; + +DECLARE_STACK_OF(KRB5_ENCDATA) + +/*- PrincipalName ::= SEQUENCE { + * name-type[0] INTEGER, + * name-string[1] SEQUENCE OF GeneralString + * } + */ +typedef struct krb5_princname_st { + ASN1_INTEGER *nametype; + STACK_OF(ASN1_GENERALSTRING) *namestring; +} KRB5_PRINCNAME; + +DECLARE_STACK_OF(KRB5_PRINCNAME) + +/*- Ticket ::= [APPLICATION 1] SEQUENCE { + * tkt-vno[0] INTEGER, + * realm[1] Realm, + * sname[2] PrincipalName, + * enc-part[3] EncryptedData + * } + */ +typedef struct krb5_tktbody_st { + ASN1_INTEGER *tktvno; + ASN1_GENERALSTRING *realm; + KRB5_PRINCNAME *sname; + KRB5_ENCDATA *encdata; +} KRB5_TKTBODY; + +typedef STACK_OF(KRB5_TKTBODY) KRB5_TICKET; +DECLARE_STACK_OF(KRB5_TKTBODY) + +/*- AP-REQ ::= [APPLICATION 14] SEQUENCE { + * pvno[0] INTEGER, + * msg-type[1] INTEGER, + * ap-options[2] APOptions, + * ticket[3] Ticket, + * authenticator[4] EncryptedData + * } + * + * APOptions ::= BIT STRING { + * reserved(0), use-session-key(1), mutual-required(2) } + */ +typedef struct krb5_ap_req_st { + ASN1_INTEGER *pvno; + ASN1_INTEGER *msgtype; + ASN1_BIT_STRING *apoptions; + KRB5_TICKET *ticket; + KRB5_ENCDATA *authenticator; +} KRB5_APREQBODY; + +typedef STACK_OF(KRB5_APREQBODY) KRB5_APREQ; +DECLARE_STACK_OF(KRB5_APREQBODY) + +/* Authenticator Stuff */ + +/*- Checksum ::= SEQUENCE { + * cksumtype[0] INTEGER, + * checksum[1] OCTET STRING + * } + */ +typedef struct krb5_checksum_st { + ASN1_INTEGER *ctype; + ASN1_OCTET_STRING *checksum; +} KRB5_CHECKSUM; + +DECLARE_STACK_OF(KRB5_CHECKSUM) + +/*- EncryptionKey ::= SEQUENCE { + * keytype[0] INTEGER, + * keyvalue[1] OCTET STRING + * } + */ +typedef struct krb5_encryptionkey_st { + ASN1_INTEGER *ktype; + ASN1_OCTET_STRING *keyvalue; +} KRB5_ENCKEY; + +DECLARE_STACK_OF(KRB5_ENCKEY) + +/*- AuthorizationData ::= SEQUENCE OF SEQUENCE { + * ad-type[0] INTEGER, + * ad-data[1] OCTET STRING + * } + */ +typedef struct krb5_authorization_st { + ASN1_INTEGER *adtype; + ASN1_OCTET_STRING *addata; +} KRB5_AUTHDATA; + +DECLARE_STACK_OF(KRB5_AUTHDATA) + +/*- -- Unencrypted authenticator + * Authenticator ::= [APPLICATION 2] SEQUENCE { + * authenticator-vno[0] INTEGER, + * crealm[1] Realm, + * cname[2] PrincipalName, + * cksum[3] Checksum OPTIONAL, + * cusec[4] INTEGER, + * ctime[5] KerberosTime, + * subkey[6] EncryptionKey OPTIONAL, + * seq-number[7] INTEGER OPTIONAL, + * authorization-data[8] AuthorizationData OPTIONAL + * } + */ +typedef struct krb5_authenticator_st { + ASN1_INTEGER *avno; + ASN1_GENERALSTRING *crealm; + KRB5_PRINCNAME *cname; + KRB5_CHECKSUM *cksum; + ASN1_INTEGER *cusec; + ASN1_GENERALIZEDTIME *ctime; + KRB5_ENCKEY *subkey; + ASN1_INTEGER *seqnum; + KRB5_AUTHDATA *authorization; +} KRB5_AUTHENTBODY; + +typedef STACK_OF(KRB5_AUTHENTBODY) KRB5_AUTHENT; +DECLARE_STACK_OF(KRB5_AUTHENTBODY) + +/*- DECLARE_ASN1_FUNCTIONS(type) = DECLARE_ASN1_FUNCTIONS_name(type, type) = + * type *name##_new(void); + * void name##_free(type *a); + * DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name) = + * DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) = + * type *d2i_##name(type **a, const unsigned char **in, long len); + * int i2d_##name(type *a, unsigned char **out); + * DECLARE_ASN1_ITEM(itname) = OPENSSL_EXTERN const ASN1_ITEM itname##_it + */ + +DECLARE_ASN1_FUNCTIONS(KRB5_ENCDATA) +DECLARE_ASN1_FUNCTIONS(KRB5_PRINCNAME) +DECLARE_ASN1_FUNCTIONS(KRB5_TKTBODY) +DECLARE_ASN1_FUNCTIONS(KRB5_APREQBODY) +DECLARE_ASN1_FUNCTIONS(KRB5_TICKET) +DECLARE_ASN1_FUNCTIONS(KRB5_APREQ) + +DECLARE_ASN1_FUNCTIONS(KRB5_CHECKSUM) +DECLARE_ASN1_FUNCTIONS(KRB5_ENCKEY) +DECLARE_ASN1_FUNCTIONS(KRB5_AUTHDATA) +DECLARE_ASN1_FUNCTIONS(KRB5_AUTHENTBODY) +DECLARE_ASN1_FUNCTIONS(KRB5_AUTHENT) + +/* BEGIN ERROR CODES */ +/* + * The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ + +#ifdef __cplusplus +} +#endif +#endif diff --git a/CryptoPkg/Include/openssl/kssl.h b/CryptoPkg/Include/openssl/kssl.h new file mode 100644 index 0000000..931b4a7 --- /dev/null +++ b/CryptoPkg/Include/openssl/kssl.h @@ -0,0 +1,183 @@ +/* ssl/kssl.h -*- mode: C; c-file-style: "eay" -*- */ +/* + * Written by Vern Staats for the OpenSSL project + * 2000. project 2000. + */ +/* ==================================================================== + * Copyright (c) 2000 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * licensing@OpenSSL.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + +/* + ** 19990701 VRS Started. + */ + +#ifndef KSSL_H +# define KSSL_H + +# include + +# ifndef OPENSSL_NO_KRB5 + +# include +# include +# include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Depending on which KRB5 implementation used, some types from + * the other may be missing. Resolve that here and now + */ +# ifdef KRB5_HEIMDAL +typedef unsigned char krb5_octet; +# define FAR +# else + +# ifndef FAR +# define FAR +# endif + +# endif + +/*- + * Uncomment this to debug kssl problems or + * to trace usage of the Kerberos session key + * + * #define KSSL_DEBUG + */ + +# ifndef KRB5SVC +# define KRB5SVC "host" +# endif + +# ifndef KRB5KEYTAB +# define KRB5KEYTAB "/etc/krb5.keytab" +# endif + +# ifndef KRB5SENDAUTH +# define KRB5SENDAUTH 1 +# endif + +# ifndef KRB5CHECKAUTH +# define KRB5CHECKAUTH 1 +# endif + +# ifndef KSSL_CLOCKSKEW +# define KSSL_CLOCKSKEW 300; +# endif + +# define KSSL_ERR_MAX 255 +typedef struct kssl_err_st { + int reason; + char text[KSSL_ERR_MAX + 1]; +} KSSL_ERR; + +/*- Context for passing + * (1) Kerberos session key to SSL, and + * (2) Config data between application and SSL lib + */ +typedef struct kssl_ctx_st { + /* used by: disposition: */ + char *service_name; /* C,S default ok (kssl) */ + char *service_host; /* C input, REQUIRED */ + char *client_princ; /* S output from krb5 ticket */ + char *keytab_file; /* S NULL (/etc/krb5.keytab) */ + char *cred_cache; /* C NULL (default) */ + krb5_enctype enctype; + int length; + krb5_octet FAR *key; +} KSSL_CTX; + +# define KSSL_CLIENT 1 +# define KSSL_SERVER 2 +# define KSSL_SERVICE 3 +# define KSSL_KEYTAB 4 + +# define KSSL_CTX_OK 0 +# define KSSL_CTX_ERR 1 +# define KSSL_NOMEM 2 + +/* Public (for use by applications that use OpenSSL with Kerberos 5 support */ +krb5_error_code kssl_ctx_setstring(KSSL_CTX *kssl_ctx, int which, char *text); +KSSL_CTX *kssl_ctx_new(void); +KSSL_CTX *kssl_ctx_free(KSSL_CTX *kssl_ctx); +void kssl_ctx_show(KSSL_CTX *kssl_ctx); +krb5_error_code kssl_ctx_setprinc(KSSL_CTX *kssl_ctx, int which, + krb5_data *realm, krb5_data *entity, + int nentities); +krb5_error_code kssl_cget_tkt(KSSL_CTX *kssl_ctx, krb5_data **enc_tktp, + krb5_data *authenp, KSSL_ERR *kssl_err); +krb5_error_code kssl_sget_tkt(KSSL_CTX *kssl_ctx, krb5_data *indata, + krb5_ticket_times *ttimes, KSSL_ERR *kssl_err); +krb5_error_code kssl_ctx_setkey(KSSL_CTX *kssl_ctx, krb5_keyblock *session); +void kssl_err_set(KSSL_ERR *kssl_err, int reason, char *text); +void kssl_krb5_free_data_contents(krb5_context context, krb5_data *data); +krb5_error_code kssl_build_principal_2(krb5_context context, + krb5_principal *princ, int rlen, + const char *realm, int slen, + const char *svc, int hlen, + const char *host); +krb5_error_code kssl_validate_times(krb5_timestamp atime, + krb5_ticket_times *ttimes); +krb5_error_code kssl_check_authent(KSSL_CTX *kssl_ctx, krb5_data *authentp, + krb5_timestamp *atimep, + KSSL_ERR *kssl_err); +unsigned char *kssl_skip_confound(krb5_enctype enctype, unsigned char *authn); + +#ifdef __cplusplus +} +#endif +# endif /* OPENSSL_NO_KRB5 */ +#endif /* KSSL_H */ diff --git a/CryptoPkg/Include/openssl/lhash.h b/CryptoPkg/Include/openssl/lhash.h new file mode 100644 index 0000000..4374be2 --- /dev/null +++ b/CryptoPkg/Include/openssl/lhash.h @@ -0,0 +1,199 @@ +/* crypto/lhash/lhash.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +/* + * Header for dynamic hash table routines Author - Eric Young + */ + +#ifndef HEADER_LHASH_H +# define HEADER_LHASH_H + +# include +# ifndef OPENSSL_NO_FP_API +# include +# endif + +# ifndef OPENSSL_NO_BIO +# include +# endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct lhash_node_st { + void *data; + struct lhash_node_st *next; +# ifndef OPENSSL_NO_HASH_COMP + unsigned long hash; +# endif +} LHASH_NODE; + +typedef int (*LHASH_COMP_FN_TYPE) (const void *, const void *); +typedef unsigned long (*LHASH_HASH_FN_TYPE) (const void *); +typedef void (*LHASH_DOALL_FN_TYPE) (void *); +typedef void (*LHASH_DOALL_ARG_FN_TYPE) (void *, void *); + +/* + * Macros for declaring and implementing type-safe wrappers for LHASH + * callbacks. This way, callbacks can be provided to LHASH structures without + * function pointer casting and the macro-defined callbacks provide + * per-variable casting before deferring to the underlying type-specific + * callbacks. NB: It is possible to place a "static" in front of both the + * DECLARE and IMPLEMENT macros if the functions are strictly internal. + */ + +/* First: "hash" functions */ +# define DECLARE_LHASH_HASH_FN(f_name,o_type) \ + unsigned long f_name##_LHASH_HASH(const void *); +# define IMPLEMENT_LHASH_HASH_FN(f_name,o_type) \ + unsigned long f_name##_LHASH_HASH(const void *arg) { \ + o_type a = (o_type)arg; \ + return f_name(a); } +# define LHASH_HASH_FN(f_name) f_name##_LHASH_HASH + +/* Second: "compare" functions */ +# define DECLARE_LHASH_COMP_FN(f_name,o_type) \ + int f_name##_LHASH_COMP(const void *, const void *); +# define IMPLEMENT_LHASH_COMP_FN(f_name,o_type) \ + int f_name##_LHASH_COMP(const void *arg1, const void *arg2) { \ + o_type a = (o_type)arg1; \ + o_type b = (o_type)arg2; \ + return f_name(a,b); } +# define LHASH_COMP_FN(f_name) f_name##_LHASH_COMP + +/* Third: "doall" functions */ +# define DECLARE_LHASH_DOALL_FN(f_name,o_type) \ + void f_name##_LHASH_DOALL(void *); +# define IMPLEMENT_LHASH_DOALL_FN(f_name,o_type) \ + void f_name##_LHASH_DOALL(void *arg) { \ + o_type a = (o_type)arg; \ + f_name(a); } +# define LHASH_DOALL_FN(f_name) f_name##_LHASH_DOALL + +/* Fourth: "doall_arg" functions */ +# define DECLARE_LHASH_DOALL_ARG_FN(f_name,o_type,a_type) \ + void f_name##_LHASH_DOALL_ARG(void *, void *); +# define IMPLEMENT_LHASH_DOALL_ARG_FN(f_name,o_type,a_type) \ + void f_name##_LHASH_DOALL_ARG(void *arg1, void *arg2) { \ + o_type a = (o_type)arg1; \ + a_type b = (a_type)arg2; \ + f_name(a,b); } +# define LHASH_DOALL_ARG_FN(f_name) f_name##_LHASH_DOALL_ARG + +typedef struct lhash_st { + LHASH_NODE **b; + LHASH_COMP_FN_TYPE comp; + LHASH_HASH_FN_TYPE hash; + unsigned int num_nodes; + unsigned int num_alloc_nodes; + unsigned int p; + unsigned int pmax; + unsigned long up_load; /* load times 256 */ + unsigned long down_load; /* load times 256 */ + unsigned long num_items; + unsigned long num_expands; + unsigned long num_expand_reallocs; + unsigned long num_contracts; + unsigned long num_contract_reallocs; + unsigned long num_hash_calls; + unsigned long num_comp_calls; + unsigned long num_insert; + unsigned long num_replace; + unsigned long num_delete; + unsigned long num_no_delete; + unsigned long num_retrieve; + unsigned long num_retrieve_miss; + unsigned long num_hash_comps; + int error; +} LHASH; + +# define LH_LOAD_MULT 256 + +/* + * Indicates a malloc() error in the last call, this is only bad in + * lh_insert(). + */ +# define lh_error(lh) ((lh)->error) + +LHASH *lh_new(LHASH_HASH_FN_TYPE h, LHASH_COMP_FN_TYPE c); +void lh_free(LHASH *lh); +void *lh_insert(LHASH *lh, void *data); +void *lh_delete(LHASH *lh, const void *data); +void *lh_retrieve(LHASH *lh, const void *data); +void lh_doall(LHASH *lh, LHASH_DOALL_FN_TYPE func); +void lh_doall_arg(LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg); +unsigned long lh_strhash(const char *c); +unsigned long lh_num_items(const LHASH *lh); + +# ifndef OPENSSL_NO_FP_API +void lh_stats(const LHASH *lh, FILE *out); +void lh_node_stats(const LHASH *lh, FILE *out); +void lh_node_usage_stats(const LHASH *lh, FILE *out); +# endif + +# ifndef OPENSSL_NO_BIO +void lh_stats_bio(const LHASH *lh, BIO *out); +void lh_node_stats_bio(const LHASH *lh, BIO *out); +void lh_node_usage_stats_bio(const LHASH *lh, BIO *out); +# endif +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/md2.h b/CryptoPkg/Include/openssl/md2.h new file mode 100644 index 0000000..b568d3f --- /dev/null +++ b/CryptoPkg/Include/openssl/md2.h @@ -0,0 +1,94 @@ +/* crypto/md/md2.h */ +/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_MD2_H +# define HEADER_MD2_H + +# include /* OPENSSL_NO_MD2, MD2_INT */ +# ifdef OPENSSL_NO_MD2 +# error MD2 is disabled. +# endif +# include + +# define MD2_DIGEST_LENGTH 16 +# define MD2_BLOCK 16 + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct MD2state_st { + unsigned int num; + unsigned char data[MD2_BLOCK]; + MD2_INT cksm[MD2_BLOCK]; + MD2_INT state[MD2_BLOCK]; +} MD2_CTX; + +const char *MD2_options(void); +# ifdef OPENSSL_FIPS +int private_MD2_Init(MD2_CTX *c); +# endif +int MD2_Init(MD2_CTX *c); +int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len); +int MD2_Final(unsigned char *md, MD2_CTX *c); +unsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md); +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/md4.h b/CryptoPkg/Include/openssl/md4.h new file mode 100644 index 0000000..a99d20a --- /dev/null +++ b/CryptoPkg/Include/openssl/md4.h @@ -0,0 +1,119 @@ +/* crypto/md4/md4.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_MD4_H +# define HEADER_MD4_H + +# include +# include + +#ifdef __cplusplus +extern "C" { +#endif + +# ifdef OPENSSL_NO_MD4 +# error MD4 is disabled. +# endif + +/*- + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * ! MD4_LONG has to be at least 32 bits wide. If it's wider, then ! + * ! MD4_LONG_LOG2 has to be defined along. ! + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + */ + +# if defined(OPENSSL_SYS_WIN16) || defined(__LP32__) +# define MD4_LONG unsigned long +# elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__) +# define MD4_LONG unsigned long +# define MD4_LONG_LOG2 3 +/* + * _CRAY note. I could declare short, but I have no idea what impact + * does it have on performance on none-T3E machines. I could declare + * int, but at least on C90 sizeof(int) can be chosen at compile time. + * So I've chosen long... + * + */ +# else +# define MD4_LONG unsigned int +# endif + +# define MD4_CBLOCK 64 +# define MD4_LBLOCK (MD4_CBLOCK/4) +# define MD4_DIGEST_LENGTH 16 + +typedef struct MD4state_st { + MD4_LONG A, B, C, D; + MD4_LONG Nl, Nh; + MD4_LONG data[MD4_LBLOCK]; + unsigned int num; +} MD4_CTX; + +# ifdef OPENSSL_FIPS +int private_MD4_Init(MD4_CTX *c); +# endif +int MD4_Init(MD4_CTX *c); +int MD4_Update(MD4_CTX *c, const void *data, size_t len); +int MD4_Final(unsigned char *md, MD4_CTX *c); +unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md); +void MD4_Transform(MD4_CTX *c, const unsigned char *b); +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/md5.h b/CryptoPkg/Include/openssl/md5.h new file mode 100644 index 0000000..87a9c9e --- /dev/null +++ b/CryptoPkg/Include/openssl/md5.h @@ -0,0 +1,119 @@ +/* crypto/md5/md5.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_MD5_H +# define HEADER_MD5_H + +# include +# include + +#ifdef __cplusplus +extern "C" { +#endif + +# ifdef OPENSSL_NO_MD5 +# error MD5 is disabled. +# endif + +/* + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * ! MD5_LONG has to be at least 32 bits wide. If it's wider, then ! + * ! MD5_LONG_LOG2 has to be defined along. ! + * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + */ + +# if defined(OPENSSL_SYS_WIN16) || defined(__LP32__) +# define MD5_LONG unsigned long +# elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__) +# define MD5_LONG unsigned long +# define MD5_LONG_LOG2 3 +/* + * _CRAY note. I could declare short, but I have no idea what impact + * does it have on performance on none-T3E machines. I could declare + * int, but at least on C90 sizeof(int) can be chosen at compile time. + * So I've chosen long... + * + */ +# else +# define MD5_LONG unsigned int +# endif + +# define MD5_CBLOCK 64 +# define MD5_LBLOCK (MD5_CBLOCK/4) +# define MD5_DIGEST_LENGTH 16 + +typedef struct MD5state_st { + MD5_LONG A, B, C, D; + MD5_LONG Nl, Nh; + MD5_LONG data[MD5_LBLOCK]; + unsigned int num; +} MD5_CTX; + +# ifdef OPENSSL_FIPS +int private_MD5_Init(MD5_CTX *c); +# endif +int MD5_Init(MD5_CTX *c); +int MD5_Update(MD5_CTX *c, const void *data, size_t len); +int MD5_Final(unsigned char *md, MD5_CTX *c); +unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); +void MD5_Transform(MD5_CTX *c, const unsigned char *b); +#ifdef __cplusplus +} +#endif + +#endif diff --git a/CryptoPkg/Include/openssl/obj_mac.h b/CryptoPkg/Include/openssl/obj_mac.h new file mode 100644 index 0000000..ec6c8ea --- /dev/null +++ b/CryptoPkg/Include/openssl/obj_mac.h @@ -0,0 +1,3913 @@ +/* crypto/objects/obj_mac.h */ + +/* + * THIS FILE IS GENERATED FROM objects.txt by objects.pl via the following + * command: perl objects.pl objects.txt obj_mac.num obj_mac.h + */ + +/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#define SN_undef "UNDEF" +#define LN_undef "undefined" +#define NID_undef 0 +#define OBJ_undef 0L + +#define SN_itu_t "ITU-T" +#define LN_itu_t "itu-t" +#define NID_itu_t 645 +#define OBJ_itu_t 0L + +#define NID_ccitt 404 +#define OBJ_ccitt OBJ_itu_t + +#define SN_iso "ISO" +#define LN_iso "iso" +#define NID_iso 181 +#define OBJ_iso 1L + +#define SN_joint_iso_itu_t "JOINT-ISO-ITU-T" +#define LN_joint_iso_itu_t "joint-iso-itu-t" +#define NID_joint_iso_itu_t 646 +#define OBJ_joint_iso_itu_t 2L + +#define NID_joint_iso_ccitt 393 +#define OBJ_joint_iso_ccitt OBJ_joint_iso_itu_t + +#define SN_member_body "member-body" +#define LN_member_body "ISO Member Body" +#define NID_member_body 182 +#define OBJ_member_body OBJ_iso,2L + +#define SN_identified_organization "identified-organization" +#define NID_identified_organization 676 +#define OBJ_identified_organization OBJ_iso,3L + +#define SN_hmac_md5 "HMAC-MD5" +#define LN_hmac_md5 "hmac-md5" +#define NID_hmac_md5 780 +#define OBJ_hmac_md5 OBJ_identified_organization,6L,1L,5L,5L,8L,1L,1L + +#define SN_hmac_sha1 "HMAC-SHA1" +#define LN_hmac_sha1 "hmac-sha1" +#define NID_hmac_sha1 781 +#define OBJ_hmac_sha1 OBJ_identified_organization,6L,1L,5L,5L,8L,1L,2L + +#define SN_certicom_arc "certicom-arc" +#define NID_certicom_arc 677 +#define OBJ_certicom_arc OBJ_identified_organization,132L + +#define SN_international_organizations "international-organizations" +#define LN_international_organizations "International Organizations" +#define NID_international_organizations 647 +#define OBJ_international_organizations OBJ_joint_iso_itu_t,23L + +#define SN_wap "wap" +#define NID_wap 678 +#define OBJ_wap OBJ_international_organizations,43L + +#define SN_wap_wsg "wap-wsg" +#define NID_wap_wsg 679 +#define OBJ_wap_wsg OBJ_wap,1L + +#define SN_selected_attribute_types "selected-attribute-types" +#define LN_selected_attribute_types "Selected Attribute Types" +#define NID_selected_attribute_types 394 +#define OBJ_selected_attribute_types OBJ_joint_iso_itu_t,5L,1L,5L + +#define SN_clearance "clearance" +#define NID_clearance 395 +#define OBJ_clearance OBJ_selected_attribute_types,55L + +#define SN_ISO_US "ISO-US" +#define LN_ISO_US "ISO US Member Body" +#define NID_ISO_US 183 +#define OBJ_ISO_US OBJ_member_body,840L + +#define SN_X9_57 "X9-57" +#define LN_X9_57 "X9.57" +#define NID_X9_57 184 +#define OBJ_X9_57 OBJ_ISO_US,10040L + +#define SN_X9cm "X9cm" +#define LN_X9cm "X9.57 CM ?" +#define NID_X9cm 185 +#define OBJ_X9cm OBJ_X9_57,4L + +#define SN_dsa "DSA" +#define LN_dsa "dsaEncryption" +#define NID_dsa 116 +#define OBJ_dsa OBJ_X9cm,1L + +#define SN_dsaWithSHA1 "DSA-SHA1" +#define LN_dsaWithSHA1 "dsaWithSHA1" +#define NID_dsaWithSHA1 113 +#define OBJ_dsaWithSHA1 OBJ_X9cm,3L + +#define SN_ansi_X9_62 "ansi-X9-62" +#define LN_ansi_X9_62 "ANSI X9.62" +#define NID_ansi_X9_62 405 +#define OBJ_ansi_X9_62 OBJ_ISO_US,10045L + +#define OBJ_X9_62_id_fieldType OBJ_ansi_X9_62,1L + +#define SN_X9_62_prime_field "prime-field" +#define NID_X9_62_prime_field 406 +#define OBJ_X9_62_prime_field OBJ_X9_62_id_fieldType,1L + +#define SN_X9_62_characteristic_two_field "characteristic-two-field" +#define NID_X9_62_characteristic_two_field 407 +#define OBJ_X9_62_characteristic_two_field OBJ_X9_62_id_fieldType,2L + +#define SN_X9_62_id_characteristic_two_basis "id-characteristic-two-basis" +#define NID_X9_62_id_characteristic_two_basis 680 +#define OBJ_X9_62_id_characteristic_two_basis OBJ_X9_62_characteristic_two_field,3L + +#define SN_X9_62_onBasis "onBasis" +#define NID_X9_62_onBasis 681 +#define OBJ_X9_62_onBasis OBJ_X9_62_id_characteristic_two_basis,1L + +#define SN_X9_62_tpBasis "tpBasis" +#define NID_X9_62_tpBasis 682 +#define OBJ_X9_62_tpBasis OBJ_X9_62_id_characteristic_two_basis,2L + +#define SN_X9_62_ppBasis "ppBasis" +#define NID_X9_62_ppBasis 683 +#define OBJ_X9_62_ppBasis OBJ_X9_62_id_characteristic_two_basis,3L + +#define OBJ_X9_62_id_publicKeyType OBJ_ansi_X9_62,2L + +#define SN_X9_62_id_ecPublicKey "id-ecPublicKey" +#define NID_X9_62_id_ecPublicKey 408 +#define OBJ_X9_62_id_ecPublicKey OBJ_X9_62_id_publicKeyType,1L + +#define OBJ_X9_62_ellipticCurve OBJ_ansi_X9_62,3L + +#define OBJ_X9_62_c_TwoCurve OBJ_X9_62_ellipticCurve,0L + +#define SN_X9_62_c2pnb163v1 "c2pnb163v1" +#define NID_X9_62_c2pnb163v1 684 +#define OBJ_X9_62_c2pnb163v1 OBJ_X9_62_c_TwoCurve,1L + +#define SN_X9_62_c2pnb163v2 "c2pnb163v2" +#define NID_X9_62_c2pnb163v2 685 +#define OBJ_X9_62_c2pnb163v2 OBJ_X9_62_c_TwoCurve,2L + +#define SN_X9_62_c2pnb163v3 "c2pnb163v3" +#define NID_X9_62_c2pnb163v3 686 +#define OBJ_X9_62_c2pnb163v3 OBJ_X9_62_c_TwoCurve,3L + +#define SN_X9_62_c2pnb176v1 "c2pnb176v1" +#define NID_X9_62_c2pnb176v1 687 +#define OBJ_X9_62_c2pnb176v1 OBJ_X9_62_c_TwoCurve,4L + +#define SN_X9_62_c2tnb191v1 "c2tnb191v1" +#define NID_X9_62_c2tnb191v1 688 +#define OBJ_X9_62_c2tnb191v1 OBJ_X9_62_c_TwoCurve,5L + +#define SN_X9_62_c2tnb191v2 "c2tnb191v2" +#define NID_X9_62_c2tnb191v2 689 +#define OBJ_X9_62_c2tnb191v2 OBJ_X9_62_c_TwoCurve,6L + +#define SN_X9_62_c2tnb191v3 "c2tnb191v3" +#define NID_X9_62_c2tnb191v3 690 +#define OBJ_X9_62_c2tnb191v3 OBJ_X9_62_c_TwoCurve,7L + +#define SN_X9_62_c2onb191v4 "c2onb191v4" +#define NID_X9_62_c2onb191v4 691 +#define OBJ_X9_62_c2onb191v4 OBJ_X9_62_c_TwoCurve,8L + +#define SN_X9_62_c2onb191v5 "c2onb191v5" +#define NID_X9_62_c2onb191v5 692 +#define OBJ_X9_62_c2onb191v5 OBJ_X9_62_c_TwoCurve,9L + +#define SN_X9_62_c2pnb208w1 "c2pnb208w1" +#define NID_X9_62_c2pnb208w1 693 +#define OBJ_X9_62_c2pnb208w1 OBJ_X9_62_c_TwoCurve,10L + +#define SN_X9_62_c2tnb239v1 "c2tnb239v1" +#define NID_X9_62_c2tnb239v1 694 +#define OBJ_X9_62_c2tnb239v1 OBJ_X9_62_c_TwoCurve,11L + +#define SN_X9_62_c2tnb239v2 "c2tnb239v2" +#define NID_X9_62_c2tnb239v2 695 +#define OBJ_X9_62_c2tnb239v2 OBJ_X9_62_c_TwoCurve,12L + +#define SN_X9_62_c2tnb239v3 "c2tnb239v3" +#define NID_X9_62_c2tnb239v3 696 +#define OBJ_X9_62_c2tnb239v3 OBJ_X9_62_c_TwoCurve,13L + +#define SN_X9_62_c2onb239v4 "c2onb239v4" +#define NID_X9_62_c2onb239v4 697 +#define OBJ_X9_62_c2onb239v4 OBJ_X9_62_c_TwoCurve,14L + +#define SN_X9_62_c2onb239v5 "c2onb239v5" +#define NID_X9_62_c2onb239v5 698 +#define OBJ_X9_62_c2onb239v5 OBJ_X9_62_c_TwoCurve,15L + +#define SN_X9_62_c2pnb272w1 "c2pnb272w1" +#define NID_X9_62_c2pnb272w1 699 +#define OBJ_X9_62_c2pnb272w1 OBJ_X9_62_c_TwoCurve,16L + +#define SN_X9_62_c2pnb304w1 "c2pnb304w1" +#define NID_X9_62_c2pnb304w1 700 +#define OBJ_X9_62_c2pnb304w1 OBJ_X9_62_c_TwoCurve,17L + +#define SN_X9_62_c2tnb359v1 "c2tnb359v1" +#define NID_X9_62_c2tnb359v1 701 +#define OBJ_X9_62_c2tnb359v1 OBJ_X9_62_c_TwoCurve,18L + +#define SN_X9_62_c2pnb368w1 "c2pnb368w1" +#define NID_X9_62_c2pnb368w1 702 +#define OBJ_X9_62_c2pnb368w1 OBJ_X9_62_c_TwoCurve,19L + +#define SN_X9_62_c2tnb431r1 "c2tnb431r1" +#define NID_X9_62_c2tnb431r1 703 +#define OBJ_X9_62_c2tnb431r1 OBJ_X9_62_c_TwoCurve,20L + +#define OBJ_X9_62_primeCurve OBJ_X9_62_ellipticCurve,1L + +#define SN_X9_62_prime192v1 "prime192v1" +#define NID_X9_62_prime192v1 409 +#define OBJ_X9_62_prime192v1 OBJ_X9_62_primeCurve,1L + +#define SN_X9_62_prime192v2 "prime192v2" +#define NID_X9_62_prime192v2 410 +#define OBJ_X9_62_prime192v2 OBJ_X9_62_primeCurve,2L + +#define SN_X9_62_prime192v3 "prime192v3" +#define NID_X9_62_prime192v3 411 +#define OBJ_X9_62_prime192v3 OBJ_X9_62_primeCurve,3L + +#define SN_X9_62_prime239v1 "prime239v1" +#define NID_X9_62_prime239v1 412 +#define OBJ_X9_62_prime239v1 OBJ_X9_62_primeCurve,4L + +#define SN_X9_62_prime239v2 "prime239v2" +#define NID_X9_62_prime239v2 413 +#define OBJ_X9_62_prime239v2 OBJ_X9_62_primeCurve,5L + +#define SN_X9_62_prime239v3 "prime239v3" +#define NID_X9_62_prime239v3 414 +#define OBJ_X9_62_prime239v3 OBJ_X9_62_primeCurve,6L + +#define SN_X9_62_prime256v1 "prime256v1" +#define NID_X9_62_prime256v1 415 +#define OBJ_X9_62_prime256v1 OBJ_X9_62_primeCurve,7L + +#define OBJ_X9_62_id_ecSigType OBJ_ansi_X9_62,4L + +#define SN_ecdsa_with_SHA1 "ecdsa-with-SHA1" +#define NID_ecdsa_with_SHA1 416 +#define OBJ_ecdsa_with_SHA1 OBJ_X9_62_id_ecSigType,1L + +#define SN_ecdsa_with_Recommended "ecdsa-with-Recommended" +#define NID_ecdsa_with_Recommended 791 +#define OBJ_ecdsa_with_Recommended OBJ_X9_62_id_ecSigType,2L + +#define SN_ecdsa_with_Specified "ecdsa-with-Specified" +#define NID_ecdsa_with_Specified 792 +#define OBJ_ecdsa_with_Specified OBJ_X9_62_id_ecSigType,3L + +#define SN_ecdsa_with_SHA224 "ecdsa-with-SHA224" +#define NID_ecdsa_with_SHA224 793 +#define OBJ_ecdsa_with_SHA224 OBJ_ecdsa_with_Specified,1L + +#define SN_ecdsa_with_SHA256 "ecdsa-with-SHA256" +#define NID_ecdsa_with_SHA256 794 +#define OBJ_ecdsa_with_SHA256 OBJ_ecdsa_with_Specified,2L + +#define SN_ecdsa_with_SHA384 "ecdsa-with-SHA384" +#define NID_ecdsa_with_SHA384 795 +#define OBJ_ecdsa_with_SHA384 OBJ_ecdsa_with_Specified,3L + +#define SN_ecdsa_with_SHA512 "ecdsa-with-SHA512" +#define NID_ecdsa_with_SHA512 796 +#define OBJ_ecdsa_with_SHA512 OBJ_ecdsa_with_Specified,4L + +#define OBJ_secg_ellipticCurve OBJ_certicom_arc,0L + +#define SN_secp112r1 "secp112r1" +#define NID_secp112r1 704 +#define OBJ_secp112r1 OBJ_secg_ellipticCurve,6L + +#define SN_secp112r2 "secp112r2" +#define NID_secp112r2 705 +#define OBJ_secp112r2 OBJ_secg_ellipticCurve,7L + +#define SN_secp128r1 "secp128r1" +#define NID_secp128r1 706 +#define OBJ_secp128r1 OBJ_secg_ellipticCurve,28L + +#define SN_secp128r2 "secp128r2" +#define NID_secp128r2 707 +#define OBJ_secp128r2 OBJ_secg_ellipticCurve,29L + +#define SN_secp160k1 "secp160k1" +#define NID_secp160k1 708 +#define OBJ_secp160k1 OBJ_secg_ellipticCurve,9L + +#define SN_secp160r1 "secp160r1" +#define NID_secp160r1 709 +#define OBJ_secp160r1 OBJ_secg_ellipticCurve,8L + +#define SN_secp160r2 "secp160r2" +#define NID_secp160r2 710 +#define OBJ_secp160r2 OBJ_secg_ellipticCurve,30L + +#define SN_secp192k1 "secp192k1" +#define NID_secp192k1 711 +#define OBJ_secp192k1 OBJ_secg_ellipticCurve,31L + +#define SN_secp224k1 "secp224k1" +#define NID_secp224k1 712 +#define OBJ_secp224k1 OBJ_secg_ellipticCurve,32L + +#define SN_secp224r1 "secp224r1" +#define NID_secp224r1 713 +#define OBJ_secp224r1 OBJ_secg_ellipticCurve,33L + +#define SN_secp256k1 "secp256k1" +#define NID_secp256k1 714 +#define OBJ_secp256k1 OBJ_secg_ellipticCurve,10L + +#define SN_secp384r1 "secp384r1" +#define NID_secp384r1 715 +#define OBJ_secp384r1 OBJ_secg_ellipticCurve,34L + +#define SN_secp521r1 "secp521r1" +#define NID_secp521r1 716 +#define OBJ_secp521r1 OBJ_secg_ellipticCurve,35L + +#define SN_sect113r1 "sect113r1" +#define NID_sect113r1 717 +#define OBJ_sect113r1 OBJ_secg_ellipticCurve,4L + +#define SN_sect113r2 "sect113r2" +#define NID_sect113r2 718 +#define OBJ_sect113r2 OBJ_secg_ellipticCurve,5L + +#define SN_sect131r1 "sect131r1" +#define NID_sect131r1 719 +#define OBJ_sect131r1 OBJ_secg_ellipticCurve,22L + +#define SN_sect131r2 "sect131r2" +#define NID_sect131r2 720 +#define OBJ_sect131r2 OBJ_secg_ellipticCurve,23L + +#define SN_sect163k1 "sect163k1" +#define NID_sect163k1 721 +#define OBJ_sect163k1 OBJ_secg_ellipticCurve,1L + +#define SN_sect163r1 "sect163r1" +#define NID_sect163r1 722 +#define OBJ_sect163r1 OBJ_secg_ellipticCurve,2L + +#define SN_sect163r2 "sect163r2" +#define NID_sect163r2 723 +#define OBJ_sect163r2 OBJ_secg_ellipticCurve,15L + +#define SN_sect193r1 "sect193r1" +#define NID_sect193r1 724 +#define OBJ_sect193r1 OBJ_secg_ellipticCurve,24L + +#define SN_sect193r2 "sect193r2" +#define NID_sect193r2 725 +#define OBJ_sect193r2 OBJ_secg_ellipticCurve,25L + +#define SN_sect233k1 "sect233k1" +#define NID_sect233k1 726 +#define OBJ_sect233k1 OBJ_secg_ellipticCurve,26L + +#define SN_sect233r1 "sect233r1" +#define NID_sect233r1 727 +#define OBJ_sect233r1 OBJ_secg_ellipticCurve,27L + +#define SN_sect239k1 "sect239k1" +#define NID_sect239k1 728 +#define OBJ_sect239k1 OBJ_secg_ellipticCurve,3L + +#define SN_sect283k1 "sect283k1" +#define NID_sect283k1 729 +#define OBJ_sect283k1 OBJ_secg_ellipticCurve,16L + +#define SN_sect283r1 "sect283r1" +#define NID_sect283r1 730 +#define OBJ_sect283r1 OBJ_secg_ellipticCurve,17L + +#define SN_sect409k1 "sect409k1" +#define NID_sect409k1 731 +#define OBJ_sect409k1 OBJ_secg_ellipticCurve,36L + +#define SN_sect409r1 "sect409r1" +#define NID_sect409r1 732 +#define OBJ_sect409r1 OBJ_secg_ellipticCurve,37L + +#define SN_sect571k1 "sect571k1" +#define NID_sect571k1 733 +#define OBJ_sect571k1 OBJ_secg_ellipticCurve,38L + +#define SN_sect571r1 "sect571r1" +#define NID_sect571r1 734 +#define OBJ_sect571r1 OBJ_secg_ellipticCurve,39L + +#define OBJ_wap_wsg_idm_ecid OBJ_wap_wsg,4L + +#define SN_wap_wsg_idm_ecid_wtls1 "wap-wsg-idm-ecid-wtls1" +#define NID_wap_wsg_idm_ecid_wtls1 735 +#define OBJ_wap_wsg_idm_ecid_wtls1 OBJ_wap_wsg_idm_ecid,1L + +#define SN_wap_wsg_idm_ecid_wtls3 "wap-wsg-idm-ecid-wtls3" +#define NID_wap_wsg_idm_ecid_wtls3 736 +#define OBJ_wap_wsg_idm_ecid_wtls3 OBJ_wap_wsg_idm_ecid,3L + +#define SN_wap_wsg_idm_ecid_wtls4 "wap-wsg-idm-ecid-wtls4" +#define NID_wap_wsg_idm_ecid_wtls4 737 +#define OBJ_wap_wsg_idm_ecid_wtls4 OBJ_wap_wsg_idm_ecid,4L + +#define SN_wap_wsg_idm_ecid_wtls5 "wap-wsg-idm-ecid-wtls5" +#define NID_wap_wsg_idm_ecid_wtls5 738 +#define OBJ_wap_wsg_idm_ecid_wtls5 OBJ_wap_wsg_idm_ecid,5L + +#define SN_wap_wsg_idm_ecid_wtls6 "wap-wsg-idm-ecid-wtls6" +#define NID_wap_wsg_idm_ecid_wtls6 739 +#define OBJ_wap_wsg_idm_ecid_wtls6 OBJ_wap_wsg_idm_ecid,6L + +#define SN_wap_wsg_idm_ecid_wtls7 "wap-wsg-idm-ecid-wtls7" +#define NID_wap_wsg_idm_ecid_wtls7 740 +#define OBJ_wap_wsg_idm_ecid_wtls7 OBJ_wap_wsg_idm_ecid,7L + +#define SN_wap_wsg_idm_ecid_wtls8 "wap-wsg-idm-ecid-wtls8" +#define NID_wap_wsg_idm_ecid_wtls8 741 +#define OBJ_wap_wsg_idm_ecid_wtls8 OBJ_wap_wsg_idm_ecid,8L + +#define SN_wap_wsg_idm_ecid_wtls9 "wap-wsg-idm-ecid-wtls9" +#define NID_wap_wsg_idm_ecid_wtls9 742 +#define OBJ_wap_wsg_idm_ecid_wtls9 OBJ_wap_wsg_idm_ecid,9L + +#define SN_wap_wsg_idm_ecid_wtls10 "wap-wsg-idm-ecid-wtls10" +#define NID_wap_wsg_idm_ecid_wtls10 743 +#define OBJ_wap_wsg_idm_ecid_wtls10 OBJ_wap_wsg_idm_ecid,10L + +#define SN_wap_wsg_idm_ecid_wtls11 "wap-wsg-idm-ecid-wtls11" +#define NID_wap_wsg_idm_ecid_wtls11 744 +#define OBJ_wap_wsg_idm_ecid_wtls11 OBJ_wap_wsg_idm_ecid,11L + +#define SN_wap_wsg_idm_ecid_wtls12 "wap-wsg-idm-ecid-wtls12" +#define NID_wap_wsg_idm_ecid_wtls12 745 +#define OBJ_wap_wsg_idm_ecid_wtls12 OBJ_wap_wsg_idm_ecid,12L + +#define SN_cast5_cbc "CAST5-CBC" +#define LN_cast5_cbc "cast5-cbc" +#define NID_cast5_cbc 108 +#define OBJ_cast5_cbc OBJ_ISO_US,113533L,7L,66L,10L + +#define SN_cast5_ecb "CAST5-ECB" +#define LN_cast5_ecb "cast5-ecb" +#define NID_cast5_ecb 109 + +#define SN_cast5_cfb64 "CAST5-CFB" +#define LN_cast5_cfb64 "cast5-cfb" +#define NID_cast5_cfb64 110 + +#define SN_cast5_ofb64 "CAST5-OFB" +#define LN_cast5_ofb64 "cast5-ofb" +#define NID_cast5_ofb64 111 + +#define LN_pbeWithMD5AndCast5_CBC "pbeWithMD5AndCast5CBC" +#define NID_pbeWithMD5AndCast5_CBC 112 +#define OBJ_pbeWithMD5AndCast5_CBC OBJ_ISO_US,113533L,7L,66L,12L + +#define SN_id_PasswordBasedMAC "id-PasswordBasedMAC" +#define LN_id_PasswordBasedMAC "password based MAC" +#define NID_id_PasswordBasedMAC 782 +#define OBJ_id_PasswordBasedMAC OBJ_ISO_US,113533L,7L,66L,13L + +#define SN_id_DHBasedMac "id-DHBasedMac" +#define LN_id_DHBasedMac "Diffie-Hellman based MAC" +#define NID_id_DHBasedMac 783 +#define OBJ_id_DHBasedMac OBJ_ISO_US,113533L,7L,66L,30L + +#define SN_rsadsi "rsadsi" +#define LN_rsadsi "RSA Data Security, Inc." +#define NID_rsadsi 1 +#define OBJ_rsadsi OBJ_ISO_US,113549L + +#define SN_pkcs "pkcs" +#define LN_pkcs "RSA Data Security, Inc. PKCS" +#define NID_pkcs 2 +#define OBJ_pkcs OBJ_rsadsi,1L + +#define SN_pkcs1 "pkcs1" +#define NID_pkcs1 186 +#define OBJ_pkcs1 OBJ_pkcs,1L + +#define LN_rsaEncryption "rsaEncryption" +#define NID_rsaEncryption 6 +#define OBJ_rsaEncryption OBJ_pkcs1,1L + +#define SN_md2WithRSAEncryption "RSA-MD2" +#define LN_md2WithRSAEncryption "md2WithRSAEncryption" +#define NID_md2WithRSAEncryption 7 +#define OBJ_md2WithRSAEncryption OBJ_pkcs1,2L + +#define SN_md4WithRSAEncryption "RSA-MD4" +#define LN_md4WithRSAEncryption "md4WithRSAEncryption" +#define NID_md4WithRSAEncryption 396 +#define OBJ_md4WithRSAEncryption OBJ_pkcs1,3L + +#define SN_md5WithRSAEncryption "RSA-MD5" +#define LN_md5WithRSAEncryption "md5WithRSAEncryption" +#define NID_md5WithRSAEncryption 8 +#define OBJ_md5WithRSAEncryption OBJ_pkcs1,4L + +#define SN_sha1WithRSAEncryption "RSA-SHA1" +#define LN_sha1WithRSAEncryption "sha1WithRSAEncryption" +#define NID_sha1WithRSAEncryption 65 +#define OBJ_sha1WithRSAEncryption OBJ_pkcs1,5L + +#define SN_sha256WithRSAEncryption "RSA-SHA256" +#define LN_sha256WithRSAEncryption "sha256WithRSAEncryption" +#define NID_sha256WithRSAEncryption 668 +#define OBJ_sha256WithRSAEncryption OBJ_pkcs1,11L + +#define SN_sha384WithRSAEncryption "RSA-SHA384" +#define LN_sha384WithRSAEncryption "sha384WithRSAEncryption" +#define NID_sha384WithRSAEncryption 669 +#define OBJ_sha384WithRSAEncryption OBJ_pkcs1,12L + +#define SN_sha512WithRSAEncryption "RSA-SHA512" +#define LN_sha512WithRSAEncryption "sha512WithRSAEncryption" +#define NID_sha512WithRSAEncryption 670 +#define OBJ_sha512WithRSAEncryption OBJ_pkcs1,13L + +#define SN_sha224WithRSAEncryption "RSA-SHA224" +#define LN_sha224WithRSAEncryption "sha224WithRSAEncryption" +#define NID_sha224WithRSAEncryption 671 +#define OBJ_sha224WithRSAEncryption OBJ_pkcs1,14L + +#define SN_pkcs3 "pkcs3" +#define NID_pkcs3 27 +#define OBJ_pkcs3 OBJ_pkcs,3L + +#define LN_dhKeyAgreement "dhKeyAgreement" +#define NID_dhKeyAgreement 28 +#define OBJ_dhKeyAgreement OBJ_pkcs3,1L + +#define SN_pkcs5 "pkcs5" +#define NID_pkcs5 187 +#define OBJ_pkcs5 OBJ_pkcs,5L + +#define SN_pbeWithMD2AndDES_CBC "PBE-MD2-DES" +#define LN_pbeWithMD2AndDES_CBC "pbeWithMD2AndDES-CBC" +#define NID_pbeWithMD2AndDES_CBC 9 +#define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs5,1L + +#define SN_pbeWithMD5AndDES_CBC "PBE-MD5-DES" +#define LN_pbeWithMD5AndDES_CBC "pbeWithMD5AndDES-CBC" +#define NID_pbeWithMD5AndDES_CBC 10 +#define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs5,3L + +#define SN_pbeWithMD2AndRC2_CBC "PBE-MD2-RC2-64" +#define LN_pbeWithMD2AndRC2_CBC "pbeWithMD2AndRC2-CBC" +#define NID_pbeWithMD2AndRC2_CBC 168 +#define OBJ_pbeWithMD2AndRC2_CBC OBJ_pkcs5,4L + +#define SN_pbeWithMD5AndRC2_CBC "PBE-MD5-RC2-64" +#define LN_pbeWithMD5AndRC2_CBC "pbeWithMD5AndRC2-CBC" +#define NID_pbeWithMD5AndRC2_CBC 169 +#define OBJ_pbeWithMD5AndRC2_CBC OBJ_pkcs5,6L + +#define SN_pbeWithSHA1AndDES_CBC "PBE-SHA1-DES" +#define LN_pbeWithSHA1AndDES_CBC "pbeWithSHA1AndDES-CBC" +#define NID_pbeWithSHA1AndDES_CBC 170 +#define OBJ_pbeWithSHA1AndDES_CBC OBJ_pkcs5,10L + +#define SN_pbeWithSHA1AndRC2_CBC "PBE-SHA1-RC2-64" +#define LN_pbeWithSHA1AndRC2_CBC "pbeWithSHA1AndRC2-CBC" +#define NID_pbeWithSHA1AndRC2_CBC 68 +#define OBJ_pbeWithSHA1AndRC2_CBC OBJ_pkcs5,11L + +#define LN_id_pbkdf2 "PBKDF2" +#define NID_id_pbkdf2 69 +#define OBJ_id_pbkdf2 OBJ_pkcs5,12L + +#define LN_pbes2 "PBES2" +#define NID_pbes2 161 +#define OBJ_pbes2 OBJ_pkcs5,13L + +#define LN_pbmac1 "PBMAC1" +#define NID_pbmac1 162 +#define OBJ_pbmac1 OBJ_pkcs5,14L + +#define SN_pkcs7 "pkcs7" +#define NID_pkcs7 20 +#define OBJ_pkcs7 OBJ_pkcs,7L + +#define LN_pkcs7_data "pkcs7-data" +#define NID_pkcs7_data 21 +#define OBJ_pkcs7_data OBJ_pkcs7,1L + +#define LN_pkcs7_signed "pkcs7-signedData" +#define NID_pkcs7_signed 22 +#define OBJ_pkcs7_signed OBJ_pkcs7,2L + +#define LN_pkcs7_enveloped "pkcs7-envelopedData" +#define NID_pkcs7_enveloped 23 +#define OBJ_pkcs7_enveloped OBJ_pkcs7,3L + +#define LN_pkcs7_signedAndEnveloped "pkcs7-signedAndEnvelopedData" +#define NID_pkcs7_signedAndEnveloped 24 +#define OBJ_pkcs7_signedAndEnveloped OBJ_pkcs7,4L + +#define LN_pkcs7_digest "pkcs7-digestData" +#define NID_pkcs7_digest 25 +#define OBJ_pkcs7_digest OBJ_pkcs7,5L + +#define LN_pkcs7_encrypted "pkcs7-encryptedData" +#define NID_pkcs7_encrypted 26 +#define OBJ_pkcs7_encrypted OBJ_pkcs7,6L + +#define SN_pkcs9 "pkcs9" +#define NID_pkcs9 47 +#define OBJ_pkcs9 OBJ_pkcs,9L + +#define LN_pkcs9_emailAddress "emailAddress" +#define NID_pkcs9_emailAddress 48 +#define OBJ_pkcs9_emailAddress OBJ_pkcs9,1L + +#define LN_pkcs9_unstructuredName "unstructuredName" +#define NID_pkcs9_unstructuredName 49 +#define OBJ_pkcs9_unstructuredName OBJ_pkcs9,2L + +#define LN_pkcs9_contentType "contentType" +#define NID_pkcs9_contentType 50 +#define OBJ_pkcs9_contentType OBJ_pkcs9,3L + +#define LN_pkcs9_messageDigest "messageDigest" +#define NID_pkcs9_messageDigest 51 +#define OBJ_pkcs9_messageDigest OBJ_pkcs9,4L + +#define LN_pkcs9_signingTime "signingTime" +#define NID_pkcs9_signingTime 52 +#define OBJ_pkcs9_signingTime OBJ_pkcs9,5L + +#define LN_pkcs9_countersignature "countersignature" +#define NID_pkcs9_countersignature 53 +#define OBJ_pkcs9_countersignature OBJ_pkcs9,6L + +#define LN_pkcs9_challengePassword "challengePassword" +#define NID_pkcs9_challengePassword 54 +#define OBJ_pkcs9_challengePassword OBJ_pkcs9,7L + +#define LN_pkcs9_unstructuredAddress "unstructuredAddress" +#define NID_pkcs9_unstructuredAddress 55 +#define OBJ_pkcs9_unstructuredAddress OBJ_pkcs9,8L + +#define LN_pkcs9_extCertAttributes "extendedCertificateAttributes" +#define NID_pkcs9_extCertAttributes 56 +#define OBJ_pkcs9_extCertAttributes OBJ_pkcs9,9L + +#define SN_ext_req "extReq" +#define LN_ext_req "Extension Request" +#define NID_ext_req 172 +#define OBJ_ext_req OBJ_pkcs9,14L + +#define SN_SMIMECapabilities "SMIME-CAPS" +#define LN_SMIMECapabilities "S/MIME Capabilities" +#define NID_SMIMECapabilities 167 +#define OBJ_SMIMECapabilities OBJ_pkcs9,15L + +#define SN_SMIME "SMIME" +#define LN_SMIME "S/MIME" +#define NID_SMIME 188 +#define OBJ_SMIME OBJ_pkcs9,16L + +#define SN_id_smime_mod "id-smime-mod" +#define NID_id_smime_mod 189 +#define OBJ_id_smime_mod OBJ_SMIME,0L + +#define SN_id_smime_ct "id-smime-ct" +#define NID_id_smime_ct 190 +#define OBJ_id_smime_ct OBJ_SMIME,1L + +#define SN_id_smime_aa "id-smime-aa" +#define NID_id_smime_aa 191 +#define OBJ_id_smime_aa OBJ_SMIME,2L + +#define SN_id_smime_alg "id-smime-alg" +#define NID_id_smime_alg 192 +#define OBJ_id_smime_alg OBJ_SMIME,3L + +#define SN_id_smime_cd "id-smime-cd" +#define NID_id_smime_cd 193 +#define OBJ_id_smime_cd OBJ_SMIME,4L + +#define SN_id_smime_spq "id-smime-spq" +#define NID_id_smime_spq 194 +#define OBJ_id_smime_spq OBJ_SMIME,5L + +#define SN_id_smime_cti "id-smime-cti" +#define NID_id_smime_cti 195 +#define OBJ_id_smime_cti OBJ_SMIME,6L + +#define SN_id_smime_mod_cms "id-smime-mod-cms" +#define NID_id_smime_mod_cms 196 +#define OBJ_id_smime_mod_cms OBJ_id_smime_mod,1L + +#define SN_id_smime_mod_ess "id-smime-mod-ess" +#define NID_id_smime_mod_ess 197 +#define OBJ_id_smime_mod_ess OBJ_id_smime_mod,2L + +#define SN_id_smime_mod_oid "id-smime-mod-oid" +#define NID_id_smime_mod_oid 198 +#define OBJ_id_smime_mod_oid OBJ_id_smime_mod,3L + +#define SN_id_smime_mod_msg_v3 "id-smime-mod-msg-v3" +#define NID_id_smime_mod_msg_v3 199 +#define OBJ_id_smime_mod_msg_v3 OBJ_id_smime_mod,4L + +#define SN_id_smime_mod_ets_eSignature_88 "id-smime-mod-ets-eSignature-88" +#define NID_id_smime_mod_ets_eSignature_88 200 +#define OBJ_id_smime_mod_ets_eSignature_88 OBJ_id_smime_mod,5L + +#define SN_id_smime_mod_ets_eSignature_97 "id-smime-mod-ets-eSignature-97" +#define NID_id_smime_mod_ets_eSignature_97 201 +#define OBJ_id_smime_mod_ets_eSignature_97 OBJ_id_smime_mod,6L + +#define SN_id_smime_mod_ets_eSigPolicy_88 "id-smime-mod-ets-eSigPolicy-88" +#define NID_id_smime_mod_ets_eSigPolicy_88 202 +#define OBJ_id_smime_mod_ets_eSigPolicy_88 OBJ_id_smime_mod,7L + +#define SN_id_smime_mod_ets_eSigPolicy_97 "id-smime-mod-ets-eSigPolicy-97" +#define NID_id_smime_mod_ets_eSigPolicy_97 203 +#define OBJ_id_smime_mod_ets_eSigPolicy_97 OBJ_id_smime_mod,8L + +#define SN_id_smime_ct_receipt "id-smime-ct-receipt" +#define NID_id_smime_ct_receipt 204 +#define OBJ_id_smime_ct_receipt OBJ_id_smime_ct,1L + +#define SN_id_smime_ct_authData "id-smime-ct-authData" +#define NID_id_smime_ct_authData 205 +#define OBJ_id_smime_ct_authData OBJ_id_smime_ct,2L + +#define SN_id_smime_ct_publishCert "id-smime-ct-publishCert" +#define NID_id_smime_ct_publishCert 206 +#define OBJ_id_smime_ct_publishCert OBJ_id_smime_ct,3L + +#define SN_id_smime_ct_TSTInfo "id-smime-ct-TSTInfo" +#define NID_id_smime_ct_TSTInfo 207 +#define OBJ_id_smime_ct_TSTInfo OBJ_id_smime_ct,4L + +#define SN_id_smime_ct_TDTInfo "id-smime-ct-TDTInfo" +#define NID_id_smime_ct_TDTInfo 208 +#define OBJ_id_smime_ct_TDTInfo OBJ_id_smime_ct,5L + +#define SN_id_smime_ct_contentInfo "id-smime-ct-contentInfo" +#define NID_id_smime_ct_contentInfo 209 +#define OBJ_id_smime_ct_contentInfo OBJ_id_smime_ct,6L + +#define SN_id_smime_ct_DVCSRequestData "id-smime-ct-DVCSRequestData" +#define NID_id_smime_ct_DVCSRequestData 210 +#define OBJ_id_smime_ct_DVCSRequestData OBJ_id_smime_ct,7L + +#define SN_id_smime_ct_DVCSResponseData "id-smime-ct-DVCSResponseData" +#define NID_id_smime_ct_DVCSResponseData 211 +#define OBJ_id_smime_ct_DVCSResponseData OBJ_id_smime_ct,8L + +#define SN_id_smime_ct_compressedData "id-smime-ct-compressedData" +#define NID_id_smime_ct_compressedData 786 +#define OBJ_id_smime_ct_compressedData OBJ_id_smime_ct,9L + +#define SN_id_ct_asciiTextWithCRLF "id-ct-asciiTextWithCRLF" +#define NID_id_ct_asciiTextWithCRLF 787 +#define OBJ_id_ct_asciiTextWithCRLF OBJ_id_smime_ct,27L + +#define SN_id_smime_aa_receiptRequest "id-smime-aa-receiptRequest" +#define NID_id_smime_aa_receiptRequest 212 +#define OBJ_id_smime_aa_receiptRequest OBJ_id_smime_aa,1L + +#define SN_id_smime_aa_securityLabel "id-smime-aa-securityLabel" +#define NID_id_smime_aa_securityLabel 213 +#define OBJ_id_smime_aa_securityLabel OBJ_id_smime_aa,2L + +#define SN_id_smime_aa_mlExpandHistory "id-smime-aa-mlExpandHistory" +#define NID_id_smime_aa_mlExpandHistory 214 +#define OBJ_id_smime_aa_mlExpandHistory OBJ_id_smime_aa,3L + +#define SN_id_smime_aa_contentHint "id-smime-aa-contentHint" +#define NID_id_smime_aa_contentHint 215 +#define OBJ_id_smime_aa_contentHint OBJ_id_smime_aa,4L + +#define SN_id_smime_aa_msgSigDigest "id-smime-aa-msgSigDigest" +#define NID_id_smime_aa_msgSigDigest 216 +#define OBJ_id_smime_aa_msgSigDigest OBJ_id_smime_aa,5L + +#define SN_id_smime_aa_encapContentType "id-smime-aa-encapContentType" +#define NID_id_smime_aa_encapContentType 217 +#define OBJ_id_smime_aa_encapContentType OBJ_id_smime_aa,6L + +#define SN_id_smime_aa_contentIdentifier "id-smime-aa-contentIdentifier" +#define NID_id_smime_aa_contentIdentifier 218 +#define OBJ_id_smime_aa_contentIdentifier OBJ_id_smime_aa,7L + +#define SN_id_smime_aa_macValue "id-smime-aa-macValue" +#define NID_id_smime_aa_macValue 219 +#define OBJ_id_smime_aa_macValue OBJ_id_smime_aa,8L + +#define SN_id_smime_aa_equivalentLabels "id-smime-aa-equivalentLabels" +#define NID_id_smime_aa_equivalentLabels 220 +#define OBJ_id_smime_aa_equivalentLabels OBJ_id_smime_aa,9L + +#define SN_id_smime_aa_contentReference "id-smime-aa-contentReference" +#define NID_id_smime_aa_contentReference 221 +#define OBJ_id_smime_aa_contentReference OBJ_id_smime_aa,10L + +#define SN_id_smime_aa_encrypKeyPref "id-smime-aa-encrypKeyPref" +#define NID_id_smime_aa_encrypKeyPref 222 +#define OBJ_id_smime_aa_encrypKeyPref OBJ_id_smime_aa,11L + +#define SN_id_smime_aa_signingCertificate "id-smime-aa-signingCertificate" +#define NID_id_smime_aa_signingCertificate 223 +#define OBJ_id_smime_aa_signingCertificate OBJ_id_smime_aa,12L + +#define SN_id_smime_aa_smimeEncryptCerts "id-smime-aa-smimeEncryptCerts" +#define NID_id_smime_aa_smimeEncryptCerts 224 +#define OBJ_id_smime_aa_smimeEncryptCerts OBJ_id_smime_aa,13L + +#define SN_id_smime_aa_timeStampToken "id-smime-aa-timeStampToken" +#define NID_id_smime_aa_timeStampToken 225 +#define OBJ_id_smime_aa_timeStampToken OBJ_id_smime_aa,14L + +#define SN_id_smime_aa_ets_sigPolicyId "id-smime-aa-ets-sigPolicyId" +#define NID_id_smime_aa_ets_sigPolicyId 226 +#define OBJ_id_smime_aa_ets_sigPolicyId OBJ_id_smime_aa,15L + +#define SN_id_smime_aa_ets_commitmentType "id-smime-aa-ets-commitmentType" +#define NID_id_smime_aa_ets_commitmentType 227 +#define OBJ_id_smime_aa_ets_commitmentType OBJ_id_smime_aa,16L + +#define SN_id_smime_aa_ets_signerLocation "id-smime-aa-ets-signerLocation" +#define NID_id_smime_aa_ets_signerLocation 228 +#define OBJ_id_smime_aa_ets_signerLocation OBJ_id_smime_aa,17L + +#define SN_id_smime_aa_ets_signerAttr "id-smime-aa-ets-signerAttr" +#define NID_id_smime_aa_ets_signerAttr 229 +#define OBJ_id_smime_aa_ets_signerAttr OBJ_id_smime_aa,18L + +#define SN_id_smime_aa_ets_otherSigCert "id-smime-aa-ets-otherSigCert" +#define NID_id_smime_aa_ets_otherSigCert 230 +#define OBJ_id_smime_aa_ets_otherSigCert OBJ_id_smime_aa,19L + +#define SN_id_smime_aa_ets_contentTimestamp "id-smime-aa-ets-contentTimestamp" +#define NID_id_smime_aa_ets_contentTimestamp 231 +#define OBJ_id_smime_aa_ets_contentTimestamp OBJ_id_smime_aa,20L + +#define SN_id_smime_aa_ets_CertificateRefs "id-smime-aa-ets-CertificateRefs" +#define NID_id_smime_aa_ets_CertificateRefs 232 +#define OBJ_id_smime_aa_ets_CertificateRefs OBJ_id_smime_aa,21L + +#define SN_id_smime_aa_ets_RevocationRefs "id-smime-aa-ets-RevocationRefs" +#define NID_id_smime_aa_ets_RevocationRefs 233 +#define OBJ_id_smime_aa_ets_RevocationRefs OBJ_id_smime_aa,22L + +#define SN_id_smime_aa_ets_certValues "id-smime-aa-ets-certValues" +#define NID_id_smime_aa_ets_certValues 234 +#define OBJ_id_smime_aa_ets_certValues OBJ_id_smime_aa,23L + +#define SN_id_smime_aa_ets_revocationValues "id-smime-aa-ets-revocationValues" +#define NID_id_smime_aa_ets_revocationValues 235 +#define OBJ_id_smime_aa_ets_revocationValues OBJ_id_smime_aa,24L + +#define SN_id_smime_aa_ets_escTimeStamp "id-smime-aa-ets-escTimeStamp" +#define NID_id_smime_aa_ets_escTimeStamp 236 +#define OBJ_id_smime_aa_ets_escTimeStamp OBJ_id_smime_aa,25L + +#define SN_id_smime_aa_ets_certCRLTimestamp "id-smime-aa-ets-certCRLTimestamp" +#define NID_id_smime_aa_ets_certCRLTimestamp 237 +#define OBJ_id_smime_aa_ets_certCRLTimestamp OBJ_id_smime_aa,26L + +#define SN_id_smime_aa_ets_archiveTimeStamp "id-smime-aa-ets-archiveTimeStamp" +#define NID_id_smime_aa_ets_archiveTimeStamp 238 +#define OBJ_id_smime_aa_ets_archiveTimeStamp OBJ_id_smime_aa,27L + +#define SN_id_smime_aa_signatureType "id-smime-aa-signatureType" +#define NID_id_smime_aa_signatureType 239 +#define OBJ_id_smime_aa_signatureType OBJ_id_smime_aa,28L + +#define SN_id_smime_aa_dvcs_dvc "id-smime-aa-dvcs-dvc" +#define NID_id_smime_aa_dvcs_dvc 240 +#define OBJ_id_smime_aa_dvcs_dvc OBJ_id_smime_aa,29L + +#define SN_id_smime_alg_ESDHwith3DES "id-smime-alg-ESDHwith3DES" +#define NID_id_smime_alg_ESDHwith3DES 241 +#define OBJ_id_smime_alg_ESDHwith3DES OBJ_id_smime_alg,1L + +#define SN_id_smime_alg_ESDHwithRC2 "id-smime-alg-ESDHwithRC2" +#define NID_id_smime_alg_ESDHwithRC2 242 +#define OBJ_id_smime_alg_ESDHwithRC2 OBJ_id_smime_alg,2L + +#define SN_id_smime_alg_3DESwrap "id-smime-alg-3DESwrap" +#define NID_id_smime_alg_3DESwrap 243 +#define OBJ_id_smime_alg_3DESwrap OBJ_id_smime_alg,3L + +#define SN_id_smime_alg_RC2wrap "id-smime-alg-RC2wrap" +#define NID_id_smime_alg_RC2wrap 244 +#define OBJ_id_smime_alg_RC2wrap OBJ_id_smime_alg,4L + +#define SN_id_smime_alg_ESDH "id-smime-alg-ESDH" +#define NID_id_smime_alg_ESDH 245 +#define OBJ_id_smime_alg_ESDH OBJ_id_smime_alg,5L + +#define SN_id_smime_alg_CMS3DESwrap "id-smime-alg-CMS3DESwrap" +#define NID_id_smime_alg_CMS3DESwrap 246 +#define OBJ_id_smime_alg_CMS3DESwrap OBJ_id_smime_alg,6L + +#define SN_id_smime_alg_CMSRC2wrap "id-smime-alg-CMSRC2wrap" +#define NID_id_smime_alg_CMSRC2wrap 247 +#define OBJ_id_smime_alg_CMSRC2wrap OBJ_id_smime_alg,7L + +#define SN_id_smime_cd_ldap "id-smime-cd-ldap" +#define NID_id_smime_cd_ldap 248 +#define OBJ_id_smime_cd_ldap OBJ_id_smime_cd,1L + +#define SN_id_smime_spq_ets_sqt_uri "id-smime-spq-ets-sqt-uri" +#define NID_id_smime_spq_ets_sqt_uri 249 +#define OBJ_id_smime_spq_ets_sqt_uri OBJ_id_smime_spq,1L + +#define SN_id_smime_spq_ets_sqt_unotice "id-smime-spq-ets-sqt-unotice" +#define NID_id_smime_spq_ets_sqt_unotice 250 +#define OBJ_id_smime_spq_ets_sqt_unotice OBJ_id_smime_spq,2L + +#define SN_id_smime_cti_ets_proofOfOrigin "id-smime-cti-ets-proofOfOrigin" +#define NID_id_smime_cti_ets_proofOfOrigin 251 +#define OBJ_id_smime_cti_ets_proofOfOrigin OBJ_id_smime_cti,1L + +#define SN_id_smime_cti_ets_proofOfReceipt "id-smime-cti-ets-proofOfReceipt" +#define NID_id_smime_cti_ets_proofOfReceipt 252 +#define OBJ_id_smime_cti_ets_proofOfReceipt OBJ_id_smime_cti,2L + +#define SN_id_smime_cti_ets_proofOfDelivery "id-smime-cti-ets-proofOfDelivery" +#define NID_id_smime_cti_ets_proofOfDelivery 253 +#define OBJ_id_smime_cti_ets_proofOfDelivery OBJ_id_smime_cti,3L + +#define SN_id_smime_cti_ets_proofOfSender "id-smime-cti-ets-proofOfSender" +#define NID_id_smime_cti_ets_proofOfSender 254 +#define OBJ_id_smime_cti_ets_proofOfSender OBJ_id_smime_cti,4L + +#define SN_id_smime_cti_ets_proofOfApproval "id-smime-cti-ets-proofOfApproval" +#define NID_id_smime_cti_ets_proofOfApproval 255 +#define OBJ_id_smime_cti_ets_proofOfApproval OBJ_id_smime_cti,5L + +#define SN_id_smime_cti_ets_proofOfCreation "id-smime-cti-ets-proofOfCreation" +#define NID_id_smime_cti_ets_proofOfCreation 256 +#define OBJ_id_smime_cti_ets_proofOfCreation OBJ_id_smime_cti,6L + +#define LN_friendlyName "friendlyName" +#define NID_friendlyName 156 +#define OBJ_friendlyName OBJ_pkcs9,20L + +#define LN_localKeyID "localKeyID" +#define NID_localKeyID 157 +#define OBJ_localKeyID OBJ_pkcs9,21L + +#define SN_ms_csp_name "CSPName" +#define LN_ms_csp_name "Microsoft CSP Name" +#define NID_ms_csp_name 417 +#define OBJ_ms_csp_name 1L,3L,6L,1L,4L,1L,311L,17L,1L + +#define SN_LocalKeySet "LocalKeySet" +#define LN_LocalKeySet "Microsoft Local Key set" +#define NID_LocalKeySet 856 +#define OBJ_LocalKeySet 1L,3L,6L,1L,4L,1L,311L,17L,2L + +#define OBJ_certTypes OBJ_pkcs9,22L + +#define LN_x509Certificate "x509Certificate" +#define NID_x509Certificate 158 +#define OBJ_x509Certificate OBJ_certTypes,1L + +#define LN_sdsiCertificate "sdsiCertificate" +#define NID_sdsiCertificate 159 +#define OBJ_sdsiCertificate OBJ_certTypes,2L + +#define OBJ_crlTypes OBJ_pkcs9,23L + +#define LN_x509Crl "x509Crl" +#define NID_x509Crl 160 +#define OBJ_x509Crl OBJ_crlTypes,1L + +#define OBJ_pkcs12 OBJ_pkcs,12L + +#define OBJ_pkcs12_pbeids OBJ_pkcs12,1L + +#define SN_pbe_WithSHA1And128BitRC4 "PBE-SHA1-RC4-128" +#define LN_pbe_WithSHA1And128BitRC4 "pbeWithSHA1And128BitRC4" +#define NID_pbe_WithSHA1And128BitRC4 144 +#define OBJ_pbe_WithSHA1And128BitRC4 OBJ_pkcs12_pbeids,1L + +#define SN_pbe_WithSHA1And40BitRC4 "PBE-SHA1-RC4-40" +#define LN_pbe_WithSHA1And40BitRC4 "pbeWithSHA1And40BitRC4" +#define NID_pbe_WithSHA1And40BitRC4 145 +#define OBJ_pbe_WithSHA1And40BitRC4 OBJ_pkcs12_pbeids,2L + +#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC "PBE-SHA1-3DES" +#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC "pbeWithSHA1And3-KeyTripleDES-CBC" +#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC 146 +#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC OBJ_pkcs12_pbeids,3L + +#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC "PBE-SHA1-2DES" +#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC "pbeWithSHA1And2-KeyTripleDES-CBC" +#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC 147 +#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC OBJ_pkcs12_pbeids,4L + +#define SN_pbe_WithSHA1And128BitRC2_CBC "PBE-SHA1-RC2-128" +#define LN_pbe_WithSHA1And128BitRC2_CBC "pbeWithSHA1And128BitRC2-CBC" +#define NID_pbe_WithSHA1And128BitRC2_CBC 148 +#define OBJ_pbe_WithSHA1And128BitRC2_CBC OBJ_pkcs12_pbeids,5L + +#define SN_pbe_WithSHA1And40BitRC2_CBC "PBE-SHA1-RC2-40" +#define LN_pbe_WithSHA1And40BitRC2_CBC "pbeWithSHA1And40BitRC2-CBC" +#define NID_pbe_WithSHA1And40BitRC2_CBC 149 +#define OBJ_pbe_WithSHA1And40BitRC2_CBC OBJ_pkcs12_pbeids,6L + +#define OBJ_pkcs12_Version1 OBJ_pkcs12,10L + +#define OBJ_pkcs12_BagIds OBJ_pkcs12_Version1,1L + +#define LN_keyBag "keyBag" +#define NID_keyBag 150 +#define OBJ_keyBag OBJ_pkcs12_BagIds,1L + +#define LN_pkcs8ShroudedKeyBag "pkcs8ShroudedKeyBag" +#define NID_pkcs8ShroudedKeyBag 151 +#define OBJ_pkcs8ShroudedKeyBag OBJ_pkcs12_BagIds,2L + +#define LN_certBag "certBag" +#define NID_certBag 152 +#define OBJ_certBag OBJ_pkcs12_BagIds,3L + +#define LN_crlBag "crlBag" +#define NID_crlBag 153 +#define OBJ_crlBag OBJ_pkcs12_BagIds,4L + +#define LN_secretBag "secretBag" +#define NID_secretBag 154 +#define OBJ_secretBag OBJ_pkcs12_BagIds,5L + +#define LN_safeContentsBag "safeContentsBag" +#define NID_safeContentsBag 155 +#define OBJ_safeContentsBag OBJ_pkcs12_BagIds,6L + +#define SN_md2 "MD2" +#define LN_md2 "md2" +#define NID_md2 3 +#define OBJ_md2 OBJ_rsadsi,2L,2L + +#define SN_md4 "MD4" +#define LN_md4 "md4" +#define NID_md4 257 +#define OBJ_md4 OBJ_rsadsi,2L,4L + +#define SN_md5 "MD5" +#define LN_md5 "md5" +#define NID_md5 4 +#define OBJ_md5 OBJ_rsadsi,2L,5L + +#define SN_md5_sha1 "MD5-SHA1" +#define LN_md5_sha1 "md5-sha1" +#define NID_md5_sha1 114 + +#define LN_hmacWithMD5 "hmacWithMD5" +#define NID_hmacWithMD5 797 +#define OBJ_hmacWithMD5 OBJ_rsadsi,2L,6L + +#define LN_hmacWithSHA1 "hmacWithSHA1" +#define NID_hmacWithSHA1 163 +#define OBJ_hmacWithSHA1 OBJ_rsadsi,2L,7L + +#define LN_hmacWithSHA224 "hmacWithSHA224" +#define NID_hmacWithSHA224 798 +#define OBJ_hmacWithSHA224 OBJ_rsadsi,2L,8L + +#define LN_hmacWithSHA256 "hmacWithSHA256" +#define NID_hmacWithSHA256 799 +#define OBJ_hmacWithSHA256 OBJ_rsadsi,2L,9L + +#define LN_hmacWithSHA384 "hmacWithSHA384" +#define NID_hmacWithSHA384 800 +#define OBJ_hmacWithSHA384 OBJ_rsadsi,2L,10L + +#define LN_hmacWithSHA512 "hmacWithSHA512" +#define NID_hmacWithSHA512 801 +#define OBJ_hmacWithSHA512 OBJ_rsadsi,2L,11L + +#define SN_rc2_cbc "RC2-CBC" +#define LN_rc2_cbc "rc2-cbc" +#define NID_rc2_cbc 37 +#define OBJ_rc2_cbc OBJ_rsadsi,3L,2L + +#define SN_rc2_ecb "RC2-ECB" +#define LN_rc2_ecb "rc2-ecb" +#define NID_rc2_ecb 38 + +#define SN_rc2_cfb64 "RC2-CFB" +#define LN_rc2_cfb64 "rc2-cfb" +#define NID_rc2_cfb64 39 + +#define SN_rc2_ofb64 "RC2-OFB" +#define LN_rc2_ofb64 "rc2-ofb" +#define NID_rc2_ofb64 40 + +#define SN_rc2_40_cbc "RC2-40-CBC" +#define LN_rc2_40_cbc "rc2-40-cbc" +#define NID_rc2_40_cbc 98 + +#define SN_rc2_64_cbc "RC2-64-CBC" +#define LN_rc2_64_cbc "rc2-64-cbc" +#define NID_rc2_64_cbc 166 + +#define SN_rc4 "RC4" +#define LN_rc4 "rc4" +#define NID_rc4 5 +#define OBJ_rc4 OBJ_rsadsi,3L,4L + +#define SN_rc4_40 "RC4-40" +#define LN_rc4_40 "rc4-40" +#define NID_rc4_40 97 + +#define SN_des_ede3_cbc "DES-EDE3-CBC" +#define LN_des_ede3_cbc "des-ede3-cbc" +#define NID_des_ede3_cbc 44 +#define OBJ_des_ede3_cbc OBJ_rsadsi,3L,7L + +#define SN_rc5_cbc "RC5-CBC" +#define LN_rc5_cbc "rc5-cbc" +#define NID_rc5_cbc 120 +#define OBJ_rc5_cbc OBJ_rsadsi,3L,8L + +#define SN_rc5_ecb "RC5-ECB" +#define LN_rc5_ecb "rc5-ecb" +#define NID_rc5_ecb 121 + +#define SN_rc5_cfb64 "RC5-CFB" +#define LN_rc5_cfb64 "rc5-cfb" +#define NID_rc5_cfb64 122 + +#define SN_rc5_ofb64 "RC5-OFB" +#define LN_rc5_ofb64 "rc5-ofb" +#define NID_rc5_ofb64 123 + +#define SN_ms_ext_req "msExtReq" +#define LN_ms_ext_req "Microsoft Extension Request" +#define NID_ms_ext_req 171 +#define OBJ_ms_ext_req 1L,3L,6L,1L,4L,1L,311L,2L,1L,14L + +#define SN_ms_code_ind "msCodeInd" +#define LN_ms_code_ind "Microsoft Individual Code Signing" +#define NID_ms_code_ind 134 +#define OBJ_ms_code_ind 1L,3L,6L,1L,4L,1L,311L,2L,1L,21L + +#define SN_ms_code_com "msCodeCom" +#define LN_ms_code_com "Microsoft Commercial Code Signing" +#define NID_ms_code_com 135 +#define OBJ_ms_code_com 1L,3L,6L,1L,4L,1L,311L,2L,1L,22L + +#define SN_ms_ctl_sign "msCTLSign" +#define LN_ms_ctl_sign "Microsoft Trust List Signing" +#define NID_ms_ctl_sign 136 +#define OBJ_ms_ctl_sign 1L,3L,6L,1L,4L,1L,311L,10L,3L,1L + +#define SN_ms_sgc "msSGC" +#define LN_ms_sgc "Microsoft Server Gated Crypto" +#define NID_ms_sgc 137 +#define OBJ_ms_sgc 1L,3L,6L,1L,4L,1L,311L,10L,3L,3L + +#define SN_ms_efs "msEFS" +#define LN_ms_efs "Microsoft Encrypted File System" +#define NID_ms_efs 138 +#define OBJ_ms_efs 1L,3L,6L,1L,4L,1L,311L,10L,3L,4L + +#define SN_ms_smartcard_login "msSmartcardLogin" +#define LN_ms_smartcard_login "Microsoft Smartcardlogin" +#define NID_ms_smartcard_login 648 +#define OBJ_ms_smartcard_login 1L,3L,6L,1L,4L,1L,311L,20L,2L,2L + +#define SN_ms_upn "msUPN" +#define LN_ms_upn "Microsoft Universal Principal Name" +#define NID_ms_upn 649 +#define OBJ_ms_upn 1L,3L,6L,1L,4L,1L,311L,20L,2L,3L + +#define SN_idea_cbc "IDEA-CBC" +#define LN_idea_cbc "idea-cbc" +#define NID_idea_cbc 34 +#define OBJ_idea_cbc 1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L + +#define SN_idea_ecb "IDEA-ECB" +#define LN_idea_ecb "idea-ecb" +#define NID_idea_ecb 36 + +#define SN_idea_cfb64 "IDEA-CFB" +#define LN_idea_cfb64 "idea-cfb" +#define NID_idea_cfb64 35 + +#define SN_idea_ofb64 "IDEA-OFB" +#define LN_idea_ofb64 "idea-ofb" +#define NID_idea_ofb64 46 + +#define SN_bf_cbc "BF-CBC" +#define LN_bf_cbc "bf-cbc" +#define NID_bf_cbc 91 +#define OBJ_bf_cbc 1L,3L,6L,1L,4L,1L,3029L,1L,2L + +#define SN_bf_ecb "BF-ECB" +#define LN_bf_ecb "bf-ecb" +#define NID_bf_ecb 92 + +#define SN_bf_cfb64 "BF-CFB" +#define LN_bf_cfb64 "bf-cfb" +#define NID_bf_cfb64 93 + +#define SN_bf_ofb64 "BF-OFB" +#define LN_bf_ofb64 "bf-ofb" +#define NID_bf_ofb64 94 + +#define SN_id_pkix "PKIX" +#define NID_id_pkix 127 +#define OBJ_id_pkix 1L,3L,6L,1L,5L,5L,7L + +#define SN_id_pkix_mod "id-pkix-mod" +#define NID_id_pkix_mod 258 +#define OBJ_id_pkix_mod OBJ_id_pkix,0L + +#define SN_id_pe "id-pe" +#define NID_id_pe 175 +#define OBJ_id_pe OBJ_id_pkix,1L + +#define SN_id_qt "id-qt" +#define NID_id_qt 259 +#define OBJ_id_qt OBJ_id_pkix,2L + +#define SN_id_kp "id-kp" +#define NID_id_kp 128 +#define OBJ_id_kp OBJ_id_pkix,3L + +#define SN_id_it "id-it" +#define NID_id_it 260 +#define OBJ_id_it OBJ_id_pkix,4L + +#define SN_id_pkip "id-pkip" +#define NID_id_pkip 261 +#define OBJ_id_pkip OBJ_id_pkix,5L + +#define SN_id_alg "id-alg" +#define NID_id_alg 262 +#define OBJ_id_alg OBJ_id_pkix,6L + +#define SN_id_cmc "id-cmc" +#define NID_id_cmc 263 +#define OBJ_id_cmc OBJ_id_pkix,7L + +#define SN_id_on "id-on" +#define NID_id_on 264 +#define OBJ_id_on OBJ_id_pkix,8L + +#define SN_id_pda "id-pda" +#define NID_id_pda 265 +#define OBJ_id_pda OBJ_id_pkix,9L + +#define SN_id_aca "id-aca" +#define NID_id_aca 266 +#define OBJ_id_aca OBJ_id_pkix,10L + +#define SN_id_qcs "id-qcs" +#define NID_id_qcs 267 +#define OBJ_id_qcs OBJ_id_pkix,11L + +#define SN_id_cct "id-cct" +#define NID_id_cct 268 +#define OBJ_id_cct OBJ_id_pkix,12L + +#define SN_id_ppl "id-ppl" +#define NID_id_ppl 662 +#define OBJ_id_ppl OBJ_id_pkix,21L + +#define SN_id_ad "id-ad" +#define NID_id_ad 176 +#define OBJ_id_ad OBJ_id_pkix,48L + +#define SN_id_pkix1_explicit_88 "id-pkix1-explicit-88" +#define NID_id_pkix1_explicit_88 269 +#define OBJ_id_pkix1_explicit_88 OBJ_id_pkix_mod,1L + +#define SN_id_pkix1_implicit_88 "id-pkix1-implicit-88" +#define NID_id_pkix1_implicit_88 270 +#define OBJ_id_pkix1_implicit_88 OBJ_id_pkix_mod,2L + +#define SN_id_pkix1_explicit_93 "id-pkix1-explicit-93" +#define NID_id_pkix1_explicit_93 271 +#define OBJ_id_pkix1_explicit_93 OBJ_id_pkix_mod,3L + +#define SN_id_pkix1_implicit_93 "id-pkix1-implicit-93" +#define NID_id_pkix1_implicit_93 272 +#define OBJ_id_pkix1_implicit_93 OBJ_id_pkix_mod,4L + +#define SN_id_mod_crmf "id-mod-crmf" +#define NID_id_mod_crmf 273 +#define OBJ_id_mod_crmf OBJ_id_pkix_mod,5L + +#define SN_id_mod_cmc "id-mod-cmc" +#define NID_id_mod_cmc 274 +#define OBJ_id_mod_cmc OBJ_id_pkix_mod,6L + +#define SN_id_mod_kea_profile_88 "id-mod-kea-profile-88" +#define NID_id_mod_kea_profile_88 275 +#define OBJ_id_mod_kea_profile_88 OBJ_id_pkix_mod,7L + +#define SN_id_mod_kea_profile_93 "id-mod-kea-profile-93" +#define NID_id_mod_kea_profile_93 276 +#define OBJ_id_mod_kea_profile_93 OBJ_id_pkix_mod,8L + +#define SN_id_mod_cmp "id-mod-cmp" +#define NID_id_mod_cmp 277 +#define OBJ_id_mod_cmp OBJ_id_pkix_mod,9L + +#define SN_id_mod_qualified_cert_88 "id-mod-qualified-cert-88" +#define NID_id_mod_qualified_cert_88 278 +#define OBJ_id_mod_qualified_cert_88 OBJ_id_pkix_mod,10L + +#define SN_id_mod_qualified_cert_93 "id-mod-qualified-cert-93" +#define NID_id_mod_qualified_cert_93 279 +#define OBJ_id_mod_qualified_cert_93 OBJ_id_pkix_mod,11L + +#define SN_id_mod_attribute_cert "id-mod-attribute-cert" +#define NID_id_mod_attribute_cert 280 +#define OBJ_id_mod_attribute_cert OBJ_id_pkix_mod,12L + +#define SN_id_mod_timestamp_protocol "id-mod-timestamp-protocol" +#define NID_id_mod_timestamp_protocol 281 +#define OBJ_id_mod_timestamp_protocol OBJ_id_pkix_mod,13L + +#define SN_id_mod_ocsp "id-mod-ocsp" +#define NID_id_mod_ocsp 282 +#define OBJ_id_mod_ocsp OBJ_id_pkix_mod,14L + +#define SN_id_mod_dvcs "id-mod-dvcs" +#define NID_id_mod_dvcs 283 +#define OBJ_id_mod_dvcs OBJ_id_pkix_mod,15L + +#define SN_id_mod_cmp2000 "id-mod-cmp2000" +#define NID_id_mod_cmp2000 284 +#define OBJ_id_mod_cmp2000 OBJ_id_pkix_mod,16L + +#define SN_info_access "authorityInfoAccess" +#define LN_info_access "Authority Information Access" +#define NID_info_access 177 +#define OBJ_info_access OBJ_id_pe,1L + +#define SN_biometricInfo "biometricInfo" +#define LN_biometricInfo "Biometric Info" +#define NID_biometricInfo 285 +#define OBJ_biometricInfo OBJ_id_pe,2L + +#define SN_qcStatements "qcStatements" +#define NID_qcStatements 286 +#define OBJ_qcStatements OBJ_id_pe,3L + +#define SN_ac_auditEntity "ac-auditEntity" +#define NID_ac_auditEntity 287 +#define OBJ_ac_auditEntity OBJ_id_pe,4L + +#define SN_ac_targeting "ac-targeting" +#define NID_ac_targeting 288 +#define OBJ_ac_targeting OBJ_id_pe,5L + +#define SN_aaControls "aaControls" +#define NID_aaControls 289 +#define OBJ_aaControls OBJ_id_pe,6L + +#define SN_sbgp_ipAddrBlock "sbgp-ipAddrBlock" +#define NID_sbgp_ipAddrBlock 290 +#define OBJ_sbgp_ipAddrBlock OBJ_id_pe,7L + +#define SN_sbgp_autonomousSysNum "sbgp-autonomousSysNum" +#define NID_sbgp_autonomousSysNum 291 +#define OBJ_sbgp_autonomousSysNum OBJ_id_pe,8L + +#define SN_sbgp_routerIdentifier "sbgp-routerIdentifier" +#define NID_sbgp_routerIdentifier 292 +#define OBJ_sbgp_routerIdentifier OBJ_id_pe,9L + +#define SN_ac_proxying "ac-proxying" +#define NID_ac_proxying 397 +#define OBJ_ac_proxying OBJ_id_pe,10L + +#define SN_sinfo_access "subjectInfoAccess" +#define LN_sinfo_access "Subject Information Access" +#define NID_sinfo_access 398 +#define OBJ_sinfo_access OBJ_id_pe,11L + +#define SN_proxyCertInfo "proxyCertInfo" +#define LN_proxyCertInfo "Proxy Certificate Information" +#define NID_proxyCertInfo 663 +#define OBJ_proxyCertInfo OBJ_id_pe,14L + +#define SN_id_qt_cps "id-qt-cps" +#define LN_id_qt_cps "Policy Qualifier CPS" +#define NID_id_qt_cps 164 +#define OBJ_id_qt_cps OBJ_id_qt,1L + +#define SN_id_qt_unotice "id-qt-unotice" +#define LN_id_qt_unotice "Policy Qualifier User Notice" +#define NID_id_qt_unotice 165 +#define OBJ_id_qt_unotice OBJ_id_qt,2L + +#define SN_textNotice "textNotice" +#define NID_textNotice 293 +#define OBJ_textNotice OBJ_id_qt,3L + +#define SN_server_auth "serverAuth" +#define LN_server_auth "TLS Web Server Authentication" +#define NID_server_auth 129 +#define OBJ_server_auth OBJ_id_kp,1L + +#define SN_client_auth "clientAuth" +#define LN_client_auth "TLS Web Client Authentication" +#define NID_client_auth 130 +#define OBJ_client_auth OBJ_id_kp,2L + +#define SN_code_sign "codeSigning" +#define LN_code_sign "Code Signing" +#define NID_code_sign 131 +#define OBJ_code_sign OBJ_id_kp,3L + +#define SN_email_protect "emailProtection" +#define LN_email_protect "E-mail Protection" +#define NID_email_protect 132 +#define OBJ_email_protect OBJ_id_kp,4L + +#define SN_ipsecEndSystem "ipsecEndSystem" +#define LN_ipsecEndSystem "IPSec End System" +#define NID_ipsecEndSystem 294 +#define OBJ_ipsecEndSystem OBJ_id_kp,5L + +#define SN_ipsecTunnel "ipsecTunnel" +#define LN_ipsecTunnel "IPSec Tunnel" +#define NID_ipsecTunnel 295 +#define OBJ_ipsecTunnel OBJ_id_kp,6L + +#define SN_ipsecUser "ipsecUser" +#define LN_ipsecUser "IPSec User" +#define NID_ipsecUser 296 +#define OBJ_ipsecUser OBJ_id_kp,7L + +#define SN_time_stamp "timeStamping" +#define LN_time_stamp "Time Stamping" +#define NID_time_stamp 133 +#define OBJ_time_stamp OBJ_id_kp,8L + +#define SN_OCSP_sign "OCSPSigning" +#define LN_OCSP_sign "OCSP Signing" +#define NID_OCSP_sign 180 +#define OBJ_OCSP_sign OBJ_id_kp,9L + +#define SN_dvcs "DVCS" +#define LN_dvcs "dvcs" +#define NID_dvcs 297 +#define OBJ_dvcs OBJ_id_kp,10L + +#define SN_id_it_caProtEncCert "id-it-caProtEncCert" +#define NID_id_it_caProtEncCert 298 +#define OBJ_id_it_caProtEncCert OBJ_id_it,1L + +#define SN_id_it_signKeyPairTypes "id-it-signKeyPairTypes" +#define NID_id_it_signKeyPairTypes 299 +#define OBJ_id_it_signKeyPairTypes OBJ_id_it,2L + +#define SN_id_it_encKeyPairTypes "id-it-encKeyPairTypes" +#define NID_id_it_encKeyPairTypes 300 +#define OBJ_id_it_encKeyPairTypes OBJ_id_it,3L + +#define SN_id_it_preferredSymmAlg "id-it-preferredSymmAlg" +#define NID_id_it_preferredSymmAlg 301 +#define OBJ_id_it_preferredSymmAlg OBJ_id_it,4L + +#define SN_id_it_caKeyUpdateInfo "id-it-caKeyUpdateInfo" +#define NID_id_it_caKeyUpdateInfo 302 +#define OBJ_id_it_caKeyUpdateInfo OBJ_id_it,5L + +#define SN_id_it_currentCRL "id-it-currentCRL" +#define NID_id_it_currentCRL 303 +#define OBJ_id_it_currentCRL OBJ_id_it,6L + +#define SN_id_it_unsupportedOIDs "id-it-unsupportedOIDs" +#define NID_id_it_unsupportedOIDs 304 +#define OBJ_id_it_unsupportedOIDs OBJ_id_it,7L + +#define SN_id_it_subscriptionRequest "id-it-subscriptionRequest" +#define NID_id_it_subscriptionRequest 305 +#define OBJ_id_it_subscriptionRequest OBJ_id_it,8L + +#define SN_id_it_subscriptionResponse "id-it-subscriptionResponse" +#define NID_id_it_subscriptionResponse 306 +#define OBJ_id_it_subscriptionResponse OBJ_id_it,9L + +#define SN_id_it_keyPairParamReq "id-it-keyPairParamReq" +#define NID_id_it_keyPairParamReq 307 +#define OBJ_id_it_keyPairParamReq OBJ_id_it,10L + +#define SN_id_it_keyPairParamRep "id-it-keyPairParamRep" +#define NID_id_it_keyPairParamRep 308 +#define OBJ_id_it_keyPairParamRep OBJ_id_it,11L + +#define SN_id_it_revPassphrase "id-it-revPassphrase" +#define NID_id_it_revPassphrase 309 +#define OBJ_id_it_revPassphrase OBJ_id_it,12L + +#define SN_id_it_implicitConfirm "id-it-implicitConfirm" +#define NID_id_it_implicitConfirm 310 +#define OBJ_id_it_implicitConfirm OBJ_id_it,13L + +#define SN_id_it_confirmWaitTime "id-it-confirmWaitTime" +#define NID_id_it_confirmWaitTime 311 +#define OBJ_id_it_confirmWaitTime OBJ_id_it,14L + +#define SN_id_it_origPKIMessage "id-it-origPKIMessage" +#define NID_id_it_origPKIMessage 312 +#define OBJ_id_it_origPKIMessage OBJ_id_it,15L + +#define SN_id_it_suppLangTags "id-it-suppLangTags" +#define NID_id_it_suppLangTags 784 +#define OBJ_id_it_suppLangTags OBJ_id_it,16L + +#define SN_id_regCtrl "id-regCtrl" +#define NID_id_regCtrl 313 +#define OBJ_id_regCtrl OBJ_id_pkip,1L + +#define SN_id_regInfo "id-regInfo" +#define NID_id_regInfo 314 +#define OBJ_id_regInfo OBJ_id_pkip,2L + +#define SN_id_regCtrl_regToken "id-regCtrl-regToken" +#define NID_id_regCtrl_regToken 315 +#define OBJ_id_regCtrl_regToken OBJ_id_regCtrl,1L + +#define SN_id_regCtrl_authenticator "id-regCtrl-authenticator" +#define NID_id_regCtrl_authenticator 316 +#define OBJ_id_regCtrl_authenticator OBJ_id_regCtrl,2L + +#define SN_id_regCtrl_pkiPublicationInfo "id-regCtrl-pkiPublicationInfo" +#define NID_id_regCtrl_pkiPublicationInfo 317 +#define OBJ_id_regCtrl_pkiPublicationInfo OBJ_id_regCtrl,3L + +#define SN_id_regCtrl_pkiArchiveOptions "id-regCtrl-pkiArchiveOptions" +#define NID_id_regCtrl_pkiArchiveOptions 318 +#define OBJ_id_regCtrl_pkiArchiveOptions OBJ_id_regCtrl,4L + +#define SN_id_regCtrl_oldCertID "id-regCtrl-oldCertID" +#define NID_id_regCtrl_oldCertID 319 +#define OBJ_id_regCtrl_oldCertID OBJ_id_regCtrl,5L + +#define SN_id_regCtrl_protocolEncrKey "id-regCtrl-protocolEncrKey" +#define NID_id_regCtrl_protocolEncrKey 320 +#define OBJ_id_regCtrl_protocolEncrKey OBJ_id_regCtrl,6L + +#define SN_id_regInfo_utf8Pairs "id-regInfo-utf8Pairs" +#define NID_id_regInfo_utf8Pairs 321 +#define OBJ_id_regInfo_utf8Pairs OBJ_id_regInfo,1L + +#define SN_id_regInfo_certReq "id-regInfo-certReq" +#define NID_id_regInfo_certReq 322 +#define OBJ_id_regInfo_certReq OBJ_id_regInfo,2L + +#define SN_id_alg_des40 "id-alg-des40" +#define NID_id_alg_des40 323 +#define OBJ_id_alg_des40 OBJ_id_alg,1L + +#define SN_id_alg_noSignature "id-alg-noSignature" +#define NID_id_alg_noSignature 324 +#define OBJ_id_alg_noSignature OBJ_id_alg,2L + +#define SN_id_alg_dh_sig_hmac_sha1 "id-alg-dh-sig-hmac-sha1" +#define NID_id_alg_dh_sig_hmac_sha1 325 +#define OBJ_id_alg_dh_sig_hmac_sha1 OBJ_id_alg,3L + +#define SN_id_alg_dh_pop "id-alg-dh-pop" +#define NID_id_alg_dh_pop 326 +#define OBJ_id_alg_dh_pop OBJ_id_alg,4L + +#define SN_id_cmc_statusInfo "id-cmc-statusInfo" +#define NID_id_cmc_statusInfo 327 +#define OBJ_id_cmc_statusInfo OBJ_id_cmc,1L + +#define SN_id_cmc_identification "id-cmc-identification" +#define NID_id_cmc_identification 328 +#define OBJ_id_cmc_identification OBJ_id_cmc,2L + +#define SN_id_cmc_identityProof "id-cmc-identityProof" +#define NID_id_cmc_identityProof 329 +#define OBJ_id_cmc_identityProof OBJ_id_cmc,3L + +#define SN_id_cmc_dataReturn "id-cmc-dataReturn" +#define NID_id_cmc_dataReturn 330 +#define OBJ_id_cmc_dataReturn OBJ_id_cmc,4L + +#define SN_id_cmc_transactionId "id-cmc-transactionId" +#define NID_id_cmc_transactionId 331 +#define OBJ_id_cmc_transactionId OBJ_id_cmc,5L + +#define SN_id_cmc_senderNonce "id-cmc-senderNonce" +#define NID_id_cmc_senderNonce 332 +#define OBJ_id_cmc_senderNonce OBJ_id_cmc,6L + +#define SN_id_cmc_recipientNonce "id-cmc-recipientNonce" +#define NID_id_cmc_recipientNonce 333 +#define OBJ_id_cmc_recipientNonce OBJ_id_cmc,7L + +#define SN_id_cmc_addExtensions "id-cmc-addExtensions" +#define NID_id_cmc_addExtensions 334 +#define OBJ_id_cmc_addExtensions OBJ_id_cmc,8L + +#define SN_id_cmc_encryptedPOP "id-cmc-encryptedPOP" +#define NID_id_cmc_encryptedPOP 335 +#define OBJ_id_cmc_encryptedPOP OBJ_id_cmc,9L + +#define SN_id_cmc_decryptedPOP "id-cmc-decryptedPOP" +#define NID_id_cmc_decryptedPOP 336 +#define OBJ_id_cmc_decryptedPOP OBJ_id_cmc,10L + +#define SN_id_cmc_lraPOPWitness "id-cmc-lraPOPWitness" +#define NID_id_cmc_lraPOPWitness 337 +#define OBJ_id_cmc_lraPOPWitness OBJ_id_cmc,11L + +#define SN_id_cmc_getCert "id-cmc-getCert" +#define NID_id_cmc_getCert 338 +#define OBJ_id_cmc_getCert OBJ_id_cmc,15L + +#define SN_id_cmc_getCRL "id-cmc-getCRL" +#define NID_id_cmc_getCRL 339 +#define OBJ_id_cmc_getCRL OBJ_id_cmc,16L + +#define SN_id_cmc_revokeRequest "id-cmc-revokeRequest" +#define NID_id_cmc_revokeRequest 340 +#define OBJ_id_cmc_revokeRequest OBJ_id_cmc,17L + +#define SN_id_cmc_regInfo "id-cmc-regInfo" +#define NID_id_cmc_regInfo 341 +#define OBJ_id_cmc_regInfo OBJ_id_cmc,18L + +#define SN_id_cmc_responseInfo "id-cmc-responseInfo" +#define NID_id_cmc_responseInfo 342 +#define OBJ_id_cmc_responseInfo OBJ_id_cmc,19L + +#define SN_id_cmc_queryPending "id-cmc-queryPending" +#define NID_id_cmc_queryPending 343 +#define OBJ_id_cmc_queryPending OBJ_id_cmc,21L + +#define SN_id_cmc_popLinkRandom "id-cmc-popLinkRandom" +#define NID_id_cmc_popLinkRandom 344 +#define OBJ_id_cmc_popLinkRandom OBJ_id_cmc,22L + +#define SN_id_cmc_popLinkWitness "id-cmc-popLinkWitness" +#define NID_id_cmc_popLinkWitness 345 +#define OBJ_id_cmc_popLinkWitness OBJ_id_cmc,23L + +#define SN_id_cmc_confirmCertAcceptance "id-cmc-confirmCertAcceptance" +#define NID_id_cmc_confirmCertAcceptance 346 +#define OBJ_id_cmc_confirmCertAcceptance OBJ_id_cmc,24L + +#define SN_id_on_personalData "id-on-personalData" +#define NID_id_on_personalData 347 +#define OBJ_id_on_personalData OBJ_id_on,1L + +#define SN_id_on_permanentIdentifier "id-on-permanentIdentifier" +#define LN_id_on_permanentIdentifier "Permanent Identifier" +#define NID_id_on_permanentIdentifier 858 +#define OBJ_id_on_permanentIdentifier OBJ_id_on,3L + +#define SN_id_pda_dateOfBirth "id-pda-dateOfBirth" +#define NID_id_pda_dateOfBirth 348 +#define OBJ_id_pda_dateOfBirth OBJ_id_pda,1L + +#define SN_id_pda_placeOfBirth "id-pda-placeOfBirth" +#define NID_id_pda_placeOfBirth 349 +#define OBJ_id_pda_placeOfBirth OBJ_id_pda,2L + +#define SN_id_pda_gender "id-pda-gender" +#define NID_id_pda_gender 351 +#define OBJ_id_pda_gender OBJ_id_pda,3L + +#define SN_id_pda_countryOfCitizenship "id-pda-countryOfCitizenship" +#define NID_id_pda_countryOfCitizenship 352 +#define OBJ_id_pda_countryOfCitizenship OBJ_id_pda,4L + +#define SN_id_pda_countryOfResidence "id-pda-countryOfResidence" +#define NID_id_pda_countryOfResidence 353 +#define OBJ_id_pda_countryOfResidence OBJ_id_pda,5L + +#define SN_id_aca_authenticationInfo "id-aca-authenticationInfo" +#define NID_id_aca_authenticationInfo 354 +#define OBJ_id_aca_authenticationInfo OBJ_id_aca,1L + +#define SN_id_aca_accessIdentity "id-aca-accessIdentity" +#define NID_id_aca_accessIdentity 355 +#define OBJ_id_aca_accessIdentity OBJ_id_aca,2L + +#define SN_id_aca_chargingIdentity "id-aca-chargingIdentity" +#define NID_id_aca_chargingIdentity 356 +#define OBJ_id_aca_chargingIdentity OBJ_id_aca,3L + +#define SN_id_aca_group "id-aca-group" +#define NID_id_aca_group 357 +#define OBJ_id_aca_group OBJ_id_aca,4L + +#define SN_id_aca_role "id-aca-role" +#define NID_id_aca_role 358 +#define OBJ_id_aca_role OBJ_id_aca,5L + +#define SN_id_aca_encAttrs "id-aca-encAttrs" +#define NID_id_aca_encAttrs 399 +#define OBJ_id_aca_encAttrs OBJ_id_aca,6L + +#define SN_id_qcs_pkixQCSyntax_v1 "id-qcs-pkixQCSyntax-v1" +#define NID_id_qcs_pkixQCSyntax_v1 359 +#define OBJ_id_qcs_pkixQCSyntax_v1 OBJ_id_qcs,1L + +#define SN_id_cct_crs "id-cct-crs" +#define NID_id_cct_crs 360 +#define OBJ_id_cct_crs OBJ_id_cct,1L + +#define SN_id_cct_PKIData "id-cct-PKIData" +#define NID_id_cct_PKIData 361 +#define OBJ_id_cct_PKIData OBJ_id_cct,2L + +#define SN_id_cct_PKIResponse "id-cct-PKIResponse" +#define NID_id_cct_PKIResponse 362 +#define OBJ_id_cct_PKIResponse OBJ_id_cct,3L + +#define SN_id_ppl_anyLanguage "id-ppl-anyLanguage" +#define LN_id_ppl_anyLanguage "Any language" +#define NID_id_ppl_anyLanguage 664 +#define OBJ_id_ppl_anyLanguage OBJ_id_ppl,0L + +#define SN_id_ppl_inheritAll "id-ppl-inheritAll" +#define LN_id_ppl_inheritAll "Inherit all" +#define NID_id_ppl_inheritAll 665 +#define OBJ_id_ppl_inheritAll OBJ_id_ppl,1L + +#define SN_Independent "id-ppl-independent" +#define LN_Independent "Independent" +#define NID_Independent 667 +#define OBJ_Independent OBJ_id_ppl,2L + +#define SN_ad_OCSP "OCSP" +#define LN_ad_OCSP "OCSP" +#define NID_ad_OCSP 178 +#define OBJ_ad_OCSP OBJ_id_ad,1L + +#define SN_ad_ca_issuers "caIssuers" +#define LN_ad_ca_issuers "CA Issuers" +#define NID_ad_ca_issuers 179 +#define OBJ_ad_ca_issuers OBJ_id_ad,2L + +#define SN_ad_timeStamping "ad_timestamping" +#define LN_ad_timeStamping "AD Time Stamping" +#define NID_ad_timeStamping 363 +#define OBJ_ad_timeStamping OBJ_id_ad,3L + +#define SN_ad_dvcs "AD_DVCS" +#define LN_ad_dvcs "ad dvcs" +#define NID_ad_dvcs 364 +#define OBJ_ad_dvcs OBJ_id_ad,4L + +#define SN_caRepository "caRepository" +#define LN_caRepository "CA Repository" +#define NID_caRepository 785 +#define OBJ_caRepository OBJ_id_ad,5L + +#define OBJ_id_pkix_OCSP OBJ_ad_OCSP + +#define SN_id_pkix_OCSP_basic "basicOCSPResponse" +#define LN_id_pkix_OCSP_basic "Basic OCSP Response" +#define NID_id_pkix_OCSP_basic 365 +#define OBJ_id_pkix_OCSP_basic OBJ_id_pkix_OCSP,1L + +#define SN_id_pkix_OCSP_Nonce "Nonce" +#define LN_id_pkix_OCSP_Nonce "OCSP Nonce" +#define NID_id_pkix_OCSP_Nonce 366 +#define OBJ_id_pkix_OCSP_Nonce OBJ_id_pkix_OCSP,2L + +#define SN_id_pkix_OCSP_CrlID "CrlID" +#define LN_id_pkix_OCSP_CrlID "OCSP CRL ID" +#define NID_id_pkix_OCSP_CrlID 367 +#define OBJ_id_pkix_OCSP_CrlID OBJ_id_pkix_OCSP,3L + +#define SN_id_pkix_OCSP_acceptableResponses "acceptableResponses" +#define LN_id_pkix_OCSP_acceptableResponses "Acceptable OCSP Responses" +#define NID_id_pkix_OCSP_acceptableResponses 368 +#define OBJ_id_pkix_OCSP_acceptableResponses OBJ_id_pkix_OCSP,4L + +#define SN_id_pkix_OCSP_noCheck "noCheck" +#define LN_id_pkix_OCSP_noCheck "OCSP No Check" +#define NID_id_pkix_OCSP_noCheck 369 +#define OBJ_id_pkix_OCSP_noCheck OBJ_id_pkix_OCSP,5L + +#define SN_id_pkix_OCSP_archiveCutoff "archiveCutoff" +#define LN_id_pkix_OCSP_archiveCutoff "OCSP Archive Cutoff" +#define NID_id_pkix_OCSP_archiveCutoff 370 +#define OBJ_id_pkix_OCSP_archiveCutoff OBJ_id_pkix_OCSP,6L + +#define SN_id_pkix_OCSP_serviceLocator "serviceLocator" +#define LN_id_pkix_OCSP_serviceLocator "OCSP Service Locator" +#define NID_id_pkix_OCSP_serviceLocator 371 +#define OBJ_id_pkix_OCSP_serviceLocator OBJ_id_pkix_OCSP,7L + +#define SN_id_pkix_OCSP_extendedStatus "extendedStatus" +#define LN_id_pkix_OCSP_extendedStatus "Extended OCSP Status" +#define NID_id_pkix_OCSP_extendedStatus 372 +#define OBJ_id_pkix_OCSP_extendedStatus OBJ_id_pkix_OCSP,8L + +#define SN_id_pkix_OCSP_valid "valid" +#define NID_id_pkix_OCSP_valid 373 +#define OBJ_id_pkix_OCSP_valid OBJ_id_pkix_OCSP,9L + +#define SN_id_pkix_OCSP_path "path" +#define NID_id_pkix_OCSP_path 374 +#define OBJ_id_pkix_OCSP_path OBJ_id_pkix_OCSP,10L + +#define SN_id_pkix_OCSP_trustRoot "trustRoot" +#define LN_id_pkix_OCSP_trustRoot "Trust Root" +#define NID_id_pkix_OCSP_trustRoot 375 +#define OBJ_id_pkix_OCSP_trustRoot OBJ_id_pkix_OCSP,11L + +#define SN_algorithm "algorithm" +#define LN_algorithm "algorithm" +#define NID_algorithm 376 +#define OBJ_algorithm 1L,3L,14L,3L,2L + +#define SN_md5WithRSA "RSA-NP-MD5" +#define LN_md5WithRSA "md5WithRSA" +#define NID_md5WithRSA 104 +#define OBJ_md5WithRSA OBJ_algorithm,3L + +#define SN_des_ecb "DES-ECB" +#define LN_des_ecb "des-ecb" +#define NID_des_ecb 29 +#define OBJ_des_ecb OBJ_algorithm,6L + +#define SN_des_cbc "DES-CBC" +#define LN_des_cbc "des-cbc" +#define NID_des_cbc 31 +#define OBJ_des_cbc OBJ_algorithm,7L + +#define SN_des_ofb64 "DES-OFB" +#define LN_des_ofb64 "des-ofb" +#define NID_des_ofb64 45 +#define OBJ_des_ofb64 OBJ_algorithm,8L + +#define SN_des_cfb64 "DES-CFB" +#define LN_des_cfb64 "des-cfb" +#define NID_des_cfb64 30 +#define OBJ_des_cfb64 OBJ_algorithm,9L + +#define SN_rsaSignature "rsaSignature" +#define NID_rsaSignature 377 +#define OBJ_rsaSignature OBJ_algorithm,11L + +#define SN_dsa_2 "DSA-old" +#define LN_dsa_2 "dsaEncryption-old" +#define NID_dsa_2 67 +#define OBJ_dsa_2 OBJ_algorithm,12L + +#define SN_dsaWithSHA "DSA-SHA" +#define LN_dsaWithSHA "dsaWithSHA" +#define NID_dsaWithSHA 66 +#define OBJ_dsaWithSHA OBJ_algorithm,13L + +#define SN_shaWithRSAEncryption "RSA-SHA" +#define LN_shaWithRSAEncryption "shaWithRSAEncryption" +#define NID_shaWithRSAEncryption 42 +#define OBJ_shaWithRSAEncryption OBJ_algorithm,15L + +#define SN_des_ede_ecb "DES-EDE" +#define LN_des_ede_ecb "des-ede" +#define NID_des_ede_ecb 32 +#define OBJ_des_ede_ecb OBJ_algorithm,17L + +#define SN_des_ede3_ecb "DES-EDE3" +#define LN_des_ede3_ecb "des-ede3" +#define NID_des_ede3_ecb 33 + +#define SN_des_ede_cbc "DES-EDE-CBC" +#define LN_des_ede_cbc "des-ede-cbc" +#define NID_des_ede_cbc 43 + +#define SN_des_ede_cfb64 "DES-EDE-CFB" +#define LN_des_ede_cfb64 "des-ede-cfb" +#define NID_des_ede_cfb64 60 + +#define SN_des_ede3_cfb64 "DES-EDE3-CFB" +#define LN_des_ede3_cfb64 "des-ede3-cfb" +#define NID_des_ede3_cfb64 61 + +#define SN_des_ede_ofb64 "DES-EDE-OFB" +#define LN_des_ede_ofb64 "des-ede-ofb" +#define NID_des_ede_ofb64 62 + +#define SN_des_ede3_ofb64 "DES-EDE3-OFB" +#define LN_des_ede3_ofb64 "des-ede3-ofb" +#define NID_des_ede3_ofb64 63 + +#define SN_desx_cbc "DESX-CBC" +#define LN_desx_cbc "desx-cbc" +#define NID_desx_cbc 80 + +#define SN_sha "SHA" +#define LN_sha "sha" +#define NID_sha 41 +#define OBJ_sha OBJ_algorithm,18L + +#define SN_sha1 "SHA1" +#define LN_sha1 "sha1" +#define NID_sha1 64 +#define OBJ_sha1 OBJ_algorithm,26L + +#define SN_dsaWithSHA1_2 "DSA-SHA1-old" +#define LN_dsaWithSHA1_2 "dsaWithSHA1-old" +#define NID_dsaWithSHA1_2 70 +#define OBJ_dsaWithSHA1_2 OBJ_algorithm,27L + +#define SN_sha1WithRSA "RSA-SHA1-2" +#define LN_sha1WithRSA "sha1WithRSA" +#define NID_sha1WithRSA 115 +#define OBJ_sha1WithRSA OBJ_algorithm,29L + +#define SN_ripemd160 "RIPEMD160" +#define LN_ripemd160 "ripemd160" +#define NID_ripemd160 117 +#define OBJ_ripemd160 1L,3L,36L,3L,2L,1L + +#define SN_ripemd160WithRSA "RSA-RIPEMD160" +#define LN_ripemd160WithRSA "ripemd160WithRSA" +#define NID_ripemd160WithRSA 119 +#define OBJ_ripemd160WithRSA 1L,3L,36L,3L,3L,1L,2L + +#define SN_sxnet "SXNetID" +#define LN_sxnet "Strong Extranet ID" +#define NID_sxnet 143 +#define OBJ_sxnet 1L,3L,101L,1L,4L,1L + +#define SN_X500 "X500" +#define LN_X500 "directory services (X.500)" +#define NID_X500 11 +#define OBJ_X500 2L,5L + +#define SN_X509 "X509" +#define NID_X509 12 +#define OBJ_X509 OBJ_X500,4L + +#define SN_commonName "CN" +#define LN_commonName "commonName" +#define NID_commonName 13 +#define OBJ_commonName OBJ_X509,3L + +#define SN_surname "SN" +#define LN_surname "surname" +#define NID_surname 100 +#define OBJ_surname OBJ_X509,4L + +#define LN_serialNumber "serialNumber" +#define NID_serialNumber 105 +#define OBJ_serialNumber OBJ_X509,5L + +#define SN_countryName "C" +#define LN_countryName "countryName" +#define NID_countryName 14 +#define OBJ_countryName OBJ_X509,6L + +#define SN_localityName "L" +#define LN_localityName "localityName" +#define NID_localityName 15 +#define OBJ_localityName OBJ_X509,7L + +#define SN_stateOrProvinceName "ST" +#define LN_stateOrProvinceName "stateOrProvinceName" +#define NID_stateOrProvinceName 16 +#define OBJ_stateOrProvinceName OBJ_X509,8L + +#define SN_streetAddress "street" +#define LN_streetAddress "streetAddress" +#define NID_streetAddress 660 +#define OBJ_streetAddress OBJ_X509,9L + +#define SN_organizationName "O" +#define LN_organizationName "organizationName" +#define NID_organizationName 17 +#define OBJ_organizationName OBJ_X509,10L + +#define SN_organizationalUnitName "OU" +#define LN_organizationalUnitName "organizationalUnitName" +#define NID_organizationalUnitName 18 +#define OBJ_organizationalUnitName OBJ_X509,11L + +#define SN_title "title" +#define LN_title "title" +#define NID_title 106 +#define OBJ_title OBJ_X509,12L + +#define LN_description "description" +#define NID_description 107 +#define OBJ_description OBJ_X509,13L + +#define LN_searchGuide "searchGuide" +#define NID_searchGuide 859 +#define OBJ_searchGuide OBJ_X509,14L + +#define LN_businessCategory "businessCategory" +#define NID_businessCategory 860 +#define OBJ_businessCategory OBJ_X509,15L + +#define LN_postalAddress "postalAddress" +#define NID_postalAddress 861 +#define OBJ_postalAddress OBJ_X509,16L + +#define LN_postalCode "postalCode" +#define NID_postalCode 661 +#define OBJ_postalCode OBJ_X509,17L + +#define LN_postOfficeBox "postOfficeBox" +#define NID_postOfficeBox 862 +#define OBJ_postOfficeBox OBJ_X509,18L + +#define LN_physicalDeliveryOfficeName "physicalDeliveryOfficeName" +#define NID_physicalDeliveryOfficeName 863 +#define OBJ_physicalDeliveryOfficeName OBJ_X509,19L + +#define LN_telephoneNumber "telephoneNumber" +#define NID_telephoneNumber 864 +#define OBJ_telephoneNumber OBJ_X509,20L + +#define LN_telexNumber "telexNumber" +#define NID_telexNumber 865 +#define OBJ_telexNumber OBJ_X509,21L + +#define LN_teletexTerminalIdentifier "teletexTerminalIdentifier" +#define NID_teletexTerminalIdentifier 866 +#define OBJ_teletexTerminalIdentifier OBJ_X509,22L + +#define LN_facsimileTelephoneNumber "facsimileTelephoneNumber" +#define NID_facsimileTelephoneNumber 867 +#define OBJ_facsimileTelephoneNumber OBJ_X509,23L + +#define LN_x121Address "x121Address" +#define NID_x121Address 868 +#define OBJ_x121Address OBJ_X509,24L + +#define LN_internationaliSDNNumber "internationaliSDNNumber" +#define NID_internationaliSDNNumber 869 +#define OBJ_internationaliSDNNumber OBJ_X509,25L + +#define LN_registeredAddress "registeredAddress" +#define NID_registeredAddress 870 +#define OBJ_registeredAddress OBJ_X509,26L + +#define LN_destinationIndicator "destinationIndicator" +#define NID_destinationIndicator 871 +#define OBJ_destinationIndicator OBJ_X509,27L + +#define LN_preferredDeliveryMethod "preferredDeliveryMethod" +#define NID_preferredDeliveryMethod 872 +#define OBJ_preferredDeliveryMethod OBJ_X509,28L + +#define LN_presentationAddress "presentationAddress" +#define NID_presentationAddress 873 +#define OBJ_presentationAddress OBJ_X509,29L + +#define LN_supportedApplicationContext "supportedApplicationContext" +#define NID_supportedApplicationContext 874 +#define OBJ_supportedApplicationContext OBJ_X509,30L + +#define SN_member "member" +#define NID_member 875 +#define OBJ_member OBJ_X509,31L + +#define SN_owner "owner" +#define NID_owner 876 +#define OBJ_owner OBJ_X509,32L + +#define LN_roleOccupant "roleOccupant" +#define NID_roleOccupant 877 +#define OBJ_roleOccupant OBJ_X509,33L + +#define SN_seeAlso "seeAlso" +#define NID_seeAlso 878 +#define OBJ_seeAlso OBJ_X509,34L + +#define LN_userPassword "userPassword" +#define NID_userPassword 879 +#define OBJ_userPassword OBJ_X509,35L + +#define LN_userCertificate "userCertificate" +#define NID_userCertificate 880 +#define OBJ_userCertificate OBJ_X509,36L + +#define LN_cACertificate "cACertificate" +#define NID_cACertificate 881 +#define OBJ_cACertificate OBJ_X509,37L + +#define LN_authorityRevocationList "authorityRevocationList" +#define NID_authorityRevocationList 882 +#define OBJ_authorityRevocationList OBJ_X509,38L + +#define LN_certificateRevocationList "certificateRevocationList" +#define NID_certificateRevocationList 883 +#define OBJ_certificateRevocationList OBJ_X509,39L + +#define LN_crossCertificatePair "crossCertificatePair" +#define NID_crossCertificatePair 884 +#define OBJ_crossCertificatePair OBJ_X509,40L + +#define SN_name "name" +#define LN_name "name" +#define NID_name 173 +#define OBJ_name OBJ_X509,41L + +#define SN_givenName "GN" +#define LN_givenName "givenName" +#define NID_givenName 99 +#define OBJ_givenName OBJ_X509,42L + +#define SN_initials "initials" +#define LN_initials "initials" +#define NID_initials 101 +#define OBJ_initials OBJ_X509,43L + +#define LN_generationQualifier "generationQualifier" +#define NID_generationQualifier 509 +#define OBJ_generationQualifier OBJ_X509,44L + +#define LN_x500UniqueIdentifier "x500UniqueIdentifier" +#define NID_x500UniqueIdentifier 503 +#define OBJ_x500UniqueIdentifier OBJ_X509,45L + +#define SN_dnQualifier "dnQualifier" +#define LN_dnQualifier "dnQualifier" +#define NID_dnQualifier 174 +#define OBJ_dnQualifier OBJ_X509,46L + +#define LN_enhancedSearchGuide "enhancedSearchGuide" +#define NID_enhancedSearchGuide 885 +#define OBJ_enhancedSearchGuide OBJ_X509,47L + +#define LN_protocolInformation "protocolInformation" +#define NID_protocolInformation 886 +#define OBJ_protocolInformation OBJ_X509,48L + +#define LN_distinguishedName "distinguishedName" +#define NID_distinguishedName 887 +#define OBJ_distinguishedName OBJ_X509,49L + +#define LN_uniqueMember "uniqueMember" +#define NID_uniqueMember 888 +#define OBJ_uniqueMember OBJ_X509,50L + +#define LN_houseIdentifier "houseIdentifier" +#define NID_houseIdentifier 889 +#define OBJ_houseIdentifier OBJ_X509,51L + +#define LN_supportedAlgorithms "supportedAlgorithms" +#define NID_supportedAlgorithms 890 +#define OBJ_supportedAlgorithms OBJ_X509,52L + +#define LN_deltaRevocationList "deltaRevocationList" +#define NID_deltaRevocationList 891 +#define OBJ_deltaRevocationList OBJ_X509,53L + +#define SN_dmdName "dmdName" +#define NID_dmdName 892 +#define OBJ_dmdName OBJ_X509,54L + +#define LN_pseudonym "pseudonym" +#define NID_pseudonym 510 +#define OBJ_pseudonym OBJ_X509,65L + +#define SN_role "role" +#define LN_role "role" +#define NID_role 400 +#define OBJ_role OBJ_X509,72L + +#define SN_X500algorithms "X500algorithms" +#define LN_X500algorithms "directory services - algorithms" +#define NID_X500algorithms 378 +#define OBJ_X500algorithms OBJ_X500,8L + +#define SN_rsa "RSA" +#define LN_rsa "rsa" +#define NID_rsa 19 +#define OBJ_rsa OBJ_X500algorithms,1L,1L + +#define SN_mdc2WithRSA "RSA-MDC2" +#define LN_mdc2WithRSA "mdc2WithRSA" +#define NID_mdc2WithRSA 96 +#define OBJ_mdc2WithRSA OBJ_X500algorithms,3L,100L + +#define SN_mdc2 "MDC2" +#define LN_mdc2 "mdc2" +#define NID_mdc2 95 +#define OBJ_mdc2 OBJ_X500algorithms,3L,101L + +#define SN_id_ce "id-ce" +#define NID_id_ce 81 +#define OBJ_id_ce OBJ_X500,29L + +#define SN_subject_directory_attributes "subjectDirectoryAttributes" +#define LN_subject_directory_attributes "X509v3 Subject Directory Attributes" +#define NID_subject_directory_attributes 769 +#define OBJ_subject_directory_attributes OBJ_id_ce,9L + +#define SN_subject_key_identifier "subjectKeyIdentifier" +#define LN_subject_key_identifier "X509v3 Subject Key Identifier" +#define NID_subject_key_identifier 82 +#define OBJ_subject_key_identifier OBJ_id_ce,14L + +#define SN_key_usage "keyUsage" +#define LN_key_usage "X509v3 Key Usage" +#define NID_key_usage 83 +#define OBJ_key_usage OBJ_id_ce,15L + +#define SN_private_key_usage_period "privateKeyUsagePeriod" +#define LN_private_key_usage_period "X509v3 Private Key Usage Period" +#define NID_private_key_usage_period 84 +#define OBJ_private_key_usage_period OBJ_id_ce,16L + +#define SN_subject_alt_name "subjectAltName" +#define LN_subject_alt_name "X509v3 Subject Alternative Name" +#define NID_subject_alt_name 85 +#define OBJ_subject_alt_name OBJ_id_ce,17L + +#define SN_issuer_alt_name "issuerAltName" +#define LN_issuer_alt_name "X509v3 Issuer Alternative Name" +#define NID_issuer_alt_name 86 +#define OBJ_issuer_alt_name OBJ_id_ce,18L + +#define SN_basic_constraints "basicConstraints" +#define LN_basic_constraints "X509v3 Basic Constraints" +#define NID_basic_constraints 87 +#define OBJ_basic_constraints OBJ_id_ce,19L + +#define SN_crl_number "crlNumber" +#define LN_crl_number "X509v3 CRL Number" +#define NID_crl_number 88 +#define OBJ_crl_number OBJ_id_ce,20L + +#define SN_crl_reason "CRLReason" +#define LN_crl_reason "X509v3 CRL Reason Code" +#define NID_crl_reason 141 +#define OBJ_crl_reason OBJ_id_ce,21L + +#define SN_invalidity_date "invalidityDate" +#define LN_invalidity_date "Invalidity Date" +#define NID_invalidity_date 142 +#define OBJ_invalidity_date OBJ_id_ce,24L + +#define SN_delta_crl "deltaCRL" +#define LN_delta_crl "X509v3 Delta CRL Indicator" +#define NID_delta_crl 140 +#define OBJ_delta_crl OBJ_id_ce,27L + +#define SN_issuing_distribution_point "issuingDistributionPoint" +#define LN_issuing_distribution_point "X509v3 Issuing Distrubution Point" +#define NID_issuing_distribution_point 770 +#define OBJ_issuing_distribution_point OBJ_id_ce,28L + +#define SN_certificate_issuer "certificateIssuer" +#define LN_certificate_issuer "X509v3 Certificate Issuer" +#define NID_certificate_issuer 771 +#define OBJ_certificate_issuer OBJ_id_ce,29L + +#define SN_name_constraints "nameConstraints" +#define LN_name_constraints "X509v3 Name Constraints" +#define NID_name_constraints 666 +#define OBJ_name_constraints OBJ_id_ce,30L + +#define SN_crl_distribution_points "crlDistributionPoints" +#define LN_crl_distribution_points "X509v3 CRL Distribution Points" +#define NID_crl_distribution_points 103 +#define OBJ_crl_distribution_points OBJ_id_ce,31L + +#define SN_certificate_policies "certificatePolicies" +#define LN_certificate_policies "X509v3 Certificate Policies" +#define NID_certificate_policies 89 +#define OBJ_certificate_policies OBJ_id_ce,32L + +#define SN_any_policy "anyPolicy" +#define LN_any_policy "X509v3 Any Policy" +#define NID_any_policy 746 +#define OBJ_any_policy OBJ_certificate_policies,0L + +#define SN_policy_mappings "policyMappings" +#define LN_policy_mappings "X509v3 Policy Mappings" +#define NID_policy_mappings 747 +#define OBJ_policy_mappings OBJ_id_ce,33L + +#define SN_authority_key_identifier "authorityKeyIdentifier" +#define LN_authority_key_identifier "X509v3 Authority Key Identifier" +#define NID_authority_key_identifier 90 +#define OBJ_authority_key_identifier OBJ_id_ce,35L + +#define SN_policy_constraints "policyConstraints" +#define LN_policy_constraints "X509v3 Policy Constraints" +#define NID_policy_constraints 401 +#define OBJ_policy_constraints OBJ_id_ce,36L + +#define SN_ext_key_usage "extendedKeyUsage" +#define LN_ext_key_usage "X509v3 Extended Key Usage" +#define NID_ext_key_usage 126 +#define OBJ_ext_key_usage OBJ_id_ce,37L + +#define SN_freshest_crl "freshestCRL" +#define LN_freshest_crl "X509v3 Freshest CRL" +#define NID_freshest_crl 857 +#define OBJ_freshest_crl OBJ_id_ce,46L + +#define SN_inhibit_any_policy "inhibitAnyPolicy" +#define LN_inhibit_any_policy "X509v3 Inhibit Any Policy" +#define NID_inhibit_any_policy 748 +#define OBJ_inhibit_any_policy OBJ_id_ce,54L + +#define SN_target_information "targetInformation" +#define LN_target_information "X509v3 AC Targeting" +#define NID_target_information 402 +#define OBJ_target_information OBJ_id_ce,55L + +#define SN_no_rev_avail "noRevAvail" +#define LN_no_rev_avail "X509v3 No Revocation Available" +#define NID_no_rev_avail 403 +#define OBJ_no_rev_avail OBJ_id_ce,56L + +#define SN_netscape "Netscape" +#define LN_netscape "Netscape Communications Corp." +#define NID_netscape 57 +#define OBJ_netscape 2L,16L,840L,1L,113730L + +#define SN_netscape_cert_extension "nsCertExt" +#define LN_netscape_cert_extension "Netscape Certificate Extension" +#define NID_netscape_cert_extension 58 +#define OBJ_netscape_cert_extension OBJ_netscape,1L + +#define SN_netscape_data_type "nsDataType" +#define LN_netscape_data_type "Netscape Data Type" +#define NID_netscape_data_type 59 +#define OBJ_netscape_data_type OBJ_netscape,2L + +#define SN_netscape_cert_type "nsCertType" +#define LN_netscape_cert_type "Netscape Cert Type" +#define NID_netscape_cert_type 71 +#define OBJ_netscape_cert_type OBJ_netscape_cert_extension,1L + +#define SN_netscape_base_url "nsBaseUrl" +#define LN_netscape_base_url "Netscape Base Url" +#define NID_netscape_base_url 72 +#define OBJ_netscape_base_url OBJ_netscape_cert_extension,2L + +#define SN_netscape_revocation_url "nsRevocationUrl" +#define LN_netscape_revocation_url "Netscape Revocation Url" +#define NID_netscape_revocation_url 73 +#define OBJ_netscape_revocation_url OBJ_netscape_cert_extension,3L + +#define SN_netscape_ca_revocation_url "nsCaRevocationUrl" +#define LN_netscape_ca_revocation_url "Netscape CA Revocation Url" +#define NID_netscape_ca_revocation_url 74 +#define OBJ_netscape_ca_revocation_url OBJ_netscape_cert_extension,4L + +#define SN_netscape_renewal_url "nsRenewalUrl" +#define LN_netscape_renewal_url "Netscape Renewal Url" +#define NID_netscape_renewal_url 75 +#define OBJ_netscape_renewal_url OBJ_netscape_cert_extension,7L + +#define SN_netscape_ca_policy_url "nsCaPolicyUrl" +#define LN_netscape_ca_policy_url "Netscape CA Policy Url" +#define NID_netscape_ca_policy_url 76 +#define OBJ_netscape_ca_policy_url OBJ_netscape_cert_extension,8L + +#define SN_netscape_ssl_server_name "nsSslServerName" +#define LN_netscape_ssl_server_name "Netscape SSL Server Name" +#define NID_netscape_ssl_server_name 77 +#define OBJ_netscape_ssl_server_name OBJ_netscape_cert_extension,12L + +#define SN_netscape_comment "nsComment" +#define LN_netscape_comment "Netscape Comment" +#define NID_netscape_comment 78 +#define OBJ_netscape_comment OBJ_netscape_cert_extension,13L + +#define SN_netscape_cert_sequence "nsCertSequence" +#define LN_netscape_cert_sequence "Netscape Certificate Sequence" +#define NID_netscape_cert_sequence 79 +#define OBJ_netscape_cert_sequence OBJ_netscape_data_type,5L + +#define SN_ns_sgc "nsSGC" +#define LN_ns_sgc "Netscape Server Gated Crypto" +#define NID_ns_sgc 139 +#define OBJ_ns_sgc OBJ_netscape,4L,1L + +#define SN_org "ORG" +#define LN_org "org" +#define NID_org 379 +#define OBJ_org OBJ_iso,3L + +#define SN_dod "DOD" +#define LN_dod "dod" +#define NID_dod 380 +#define OBJ_dod OBJ_org,6L + +#define SN_iana "IANA" +#define LN_iana "iana" +#define NID_iana 381 +#define OBJ_iana OBJ_dod,1L + +#define OBJ_internet OBJ_iana + +#define SN_Directory "directory" +#define LN_Directory "Directory" +#define NID_Directory 382 +#define OBJ_Directory OBJ_internet,1L + +#define SN_Management "mgmt" +#define LN_Management "Management" +#define NID_Management 383 +#define OBJ_Management OBJ_internet,2L + +#define SN_Experimental "experimental" +#define LN_Experimental "Experimental" +#define NID_Experimental 384 +#define OBJ_Experimental OBJ_internet,3L + +#define SN_Private "private" +#define LN_Private "Private" +#define NID_Private 385 +#define OBJ_Private OBJ_internet,4L + +#define SN_Security "security" +#define LN_Security "Security" +#define NID_Security 386 +#define OBJ_Security OBJ_internet,5L + +#define SN_SNMPv2 "snmpv2" +#define LN_SNMPv2 "SNMPv2" +#define NID_SNMPv2 387 +#define OBJ_SNMPv2 OBJ_internet,6L + +#define LN_Mail "Mail" +#define NID_Mail 388 +#define OBJ_Mail OBJ_internet,7L + +#define SN_Enterprises "enterprises" +#define LN_Enterprises "Enterprises" +#define NID_Enterprises 389 +#define OBJ_Enterprises OBJ_Private,1L + +#define SN_dcObject "dcobject" +#define LN_dcObject "dcObject" +#define NID_dcObject 390 +#define OBJ_dcObject OBJ_Enterprises,1466L,344L + +#define SN_mime_mhs "mime-mhs" +#define LN_mime_mhs "MIME MHS" +#define NID_mime_mhs 504 +#define OBJ_mime_mhs OBJ_Mail,1L + +#define SN_mime_mhs_headings "mime-mhs-headings" +#define LN_mime_mhs_headings "mime-mhs-headings" +#define NID_mime_mhs_headings 505 +#define OBJ_mime_mhs_headings OBJ_mime_mhs,1L + +#define SN_mime_mhs_bodies "mime-mhs-bodies" +#define LN_mime_mhs_bodies "mime-mhs-bodies" +#define NID_mime_mhs_bodies 506 +#define OBJ_mime_mhs_bodies OBJ_mime_mhs,2L + +#define SN_id_hex_partial_message "id-hex-partial-message" +#define LN_id_hex_partial_message "id-hex-partial-message" +#define NID_id_hex_partial_message 507 +#define OBJ_id_hex_partial_message OBJ_mime_mhs_headings,1L + +#define SN_id_hex_multipart_message "id-hex-multipart-message" +#define LN_id_hex_multipart_message "id-hex-multipart-message" +#define NID_id_hex_multipart_message 508 +#define OBJ_id_hex_multipart_message OBJ_mime_mhs_headings,2L + +#define SN_rle_compression "RLE" +#define LN_rle_compression "run length compression" +#define NID_rle_compression 124 +#define OBJ_rle_compression 1L,1L,1L,1L,666L,1L + +#define SN_zlib_compression "ZLIB" +#define LN_zlib_compression "zlib compression" +#define NID_zlib_compression 125 +#define OBJ_zlib_compression OBJ_id_smime_alg,8L + +#define OBJ_csor 2L,16L,840L,1L,101L,3L + +#define OBJ_nistAlgorithms OBJ_csor,4L + +#define OBJ_aes OBJ_nistAlgorithms,1L + +#define SN_aes_128_ecb "AES-128-ECB" +#define LN_aes_128_ecb "aes-128-ecb" +#define NID_aes_128_ecb 418 +#define OBJ_aes_128_ecb OBJ_aes,1L + +#define SN_aes_128_cbc "AES-128-CBC" +#define LN_aes_128_cbc "aes-128-cbc" +#define NID_aes_128_cbc 419 +#define OBJ_aes_128_cbc OBJ_aes,2L + +#define SN_aes_128_ofb128 "AES-128-OFB" +#define LN_aes_128_ofb128 "aes-128-ofb" +#define NID_aes_128_ofb128 420 +#define OBJ_aes_128_ofb128 OBJ_aes,3L + +#define SN_aes_128_cfb128 "AES-128-CFB" +#define LN_aes_128_cfb128 "aes-128-cfb" +#define NID_aes_128_cfb128 421 +#define OBJ_aes_128_cfb128 OBJ_aes,4L + +#define SN_aes_192_ecb "AES-192-ECB" +#define LN_aes_192_ecb "aes-192-ecb" +#define NID_aes_192_ecb 422 +#define OBJ_aes_192_ecb OBJ_aes,21L + +#define SN_aes_192_cbc "AES-192-CBC" +#define LN_aes_192_cbc "aes-192-cbc" +#define NID_aes_192_cbc 423 +#define OBJ_aes_192_cbc OBJ_aes,22L + +#define SN_aes_192_ofb128 "AES-192-OFB" +#define LN_aes_192_ofb128 "aes-192-ofb" +#define NID_aes_192_ofb128 424 +#define OBJ_aes_192_ofb128 OBJ_aes,23L + +#define SN_aes_192_cfb128 "AES-192-CFB" +#define LN_aes_192_cfb128 "aes-192-cfb" +#define NID_aes_192_cfb128 425 +#define OBJ_aes_192_cfb128 OBJ_aes,24L + +#define SN_aes_256_ecb "AES-256-ECB" +#define LN_aes_256_ecb "aes-256-ecb" +#define NID_aes_256_ecb 426 +#define OBJ_aes_256_ecb OBJ_aes,41L + +#define SN_aes_256_cbc "AES-256-CBC" +#define LN_aes_256_cbc "aes-256-cbc" +#define NID_aes_256_cbc 427 +#define OBJ_aes_256_cbc OBJ_aes,42L + +#define SN_aes_256_ofb128 "AES-256-OFB" +#define LN_aes_256_ofb128 "aes-256-ofb" +#define NID_aes_256_ofb128 428 +#define OBJ_aes_256_ofb128 OBJ_aes,43L + +#define SN_aes_256_cfb128 "AES-256-CFB" +#define LN_aes_256_cfb128 "aes-256-cfb" +#define NID_aes_256_cfb128 429 +#define OBJ_aes_256_cfb128 OBJ_aes,44L + +#define SN_aes_128_cfb1 "AES-128-CFB1" +#define LN_aes_128_cfb1 "aes-128-cfb1" +#define NID_aes_128_cfb1 650 + +#define SN_aes_192_cfb1 "AES-192-CFB1" +#define LN_aes_192_cfb1 "aes-192-cfb1" +#define NID_aes_192_cfb1 651 + +#define SN_aes_256_cfb1 "AES-256-CFB1" +#define LN_aes_256_cfb1 "aes-256-cfb1" +#define NID_aes_256_cfb1 652 + +#define SN_aes_128_cfb8 "AES-128-CFB8" +#define LN_aes_128_cfb8 "aes-128-cfb8" +#define NID_aes_128_cfb8 653 + +#define SN_aes_192_cfb8 "AES-192-CFB8" +#define LN_aes_192_cfb8 "aes-192-cfb8" +#define NID_aes_192_cfb8 654 + +#define SN_aes_256_cfb8 "AES-256-CFB8" +#define LN_aes_256_cfb8 "aes-256-cfb8" +#define NID_aes_256_cfb8 655 + +#define SN_des_cfb1 "DES-CFB1" +#define LN_des_cfb1 "des-cfb1" +#define NID_des_cfb1 656 + +#define SN_des_cfb8 "DES-CFB8" +#define LN_des_cfb8 "des-cfb8" +#define NID_des_cfb8 657 + +#define SN_des_ede3_cfb1 "DES-EDE3-CFB1" +#define LN_des_ede3_cfb1 "des-ede3-cfb1" +#define NID_des_ede3_cfb1 658 + +#define SN_des_ede3_cfb8 "DES-EDE3-CFB8" +#define LN_des_ede3_cfb8 "des-ede3-cfb8" +#define NID_des_ede3_cfb8 659 + +#define SN_id_aes128_wrap "id-aes128-wrap" +#define NID_id_aes128_wrap 788 +#define OBJ_id_aes128_wrap OBJ_aes,5L + +#define SN_id_aes192_wrap "id-aes192-wrap" +#define NID_id_aes192_wrap 789 +#define OBJ_id_aes192_wrap OBJ_aes,25L + +#define SN_id_aes256_wrap "id-aes256-wrap" +#define NID_id_aes256_wrap 790 +#define OBJ_id_aes256_wrap OBJ_aes,45L + +#define OBJ_nist_hashalgs OBJ_nistAlgorithms,2L + +#define SN_sha256 "SHA256" +#define LN_sha256 "sha256" +#define NID_sha256 672 +#define OBJ_sha256 OBJ_nist_hashalgs,1L + +#define SN_sha384 "SHA384" +#define LN_sha384 "sha384" +#define NID_sha384 673 +#define OBJ_sha384 OBJ_nist_hashalgs,2L + +#define SN_sha512 "SHA512" +#define LN_sha512 "sha512" +#define NID_sha512 674 +#define OBJ_sha512 OBJ_nist_hashalgs,3L + +#define SN_sha224 "SHA224" +#define LN_sha224 "sha224" +#define NID_sha224 675 +#define OBJ_sha224 OBJ_nist_hashalgs,4L + +#define OBJ_dsa_with_sha2 OBJ_nistAlgorithms,3L + +#define SN_dsa_with_SHA224 "dsa_with_SHA224" +#define NID_dsa_with_SHA224 802 +#define OBJ_dsa_with_SHA224 OBJ_dsa_with_sha2,1L + +#define SN_dsa_with_SHA256 "dsa_with_SHA256" +#define NID_dsa_with_SHA256 803 +#define OBJ_dsa_with_SHA256 OBJ_dsa_with_sha2,2L + +#define SN_hold_instruction_code "holdInstructionCode" +#define LN_hold_instruction_code "Hold Instruction Code" +#define NID_hold_instruction_code 430 +#define OBJ_hold_instruction_code OBJ_id_ce,23L + +#define OBJ_holdInstruction OBJ_X9_57,2L + +#define SN_hold_instruction_none "holdInstructionNone" +#define LN_hold_instruction_none "Hold Instruction None" +#define NID_hold_instruction_none 431 +#define OBJ_hold_instruction_none OBJ_holdInstruction,1L + +#define SN_hold_instruction_call_issuer "holdInstructionCallIssuer" +#define LN_hold_instruction_call_issuer "Hold Instruction Call Issuer" +#define NID_hold_instruction_call_issuer 432 +#define OBJ_hold_instruction_call_issuer OBJ_holdInstruction,2L + +#define SN_hold_instruction_reject "holdInstructionReject" +#define LN_hold_instruction_reject "Hold Instruction Reject" +#define NID_hold_instruction_reject 433 +#define OBJ_hold_instruction_reject OBJ_holdInstruction,3L + +#define SN_data "data" +#define NID_data 434 +#define OBJ_data OBJ_itu_t,9L + +#define SN_pss "pss" +#define NID_pss 435 +#define OBJ_pss OBJ_data,2342L + +#define SN_ucl "ucl" +#define NID_ucl 436 +#define OBJ_ucl OBJ_pss,19200300L + +#define SN_pilot "pilot" +#define NID_pilot 437 +#define OBJ_pilot OBJ_ucl,100L + +#define LN_pilotAttributeType "pilotAttributeType" +#define NID_pilotAttributeType 438 +#define OBJ_pilotAttributeType OBJ_pilot,1L + +#define LN_pilotAttributeSyntax "pilotAttributeSyntax" +#define NID_pilotAttributeSyntax 439 +#define OBJ_pilotAttributeSyntax OBJ_pilot,3L + +#define LN_pilotObjectClass "pilotObjectClass" +#define NID_pilotObjectClass 440 +#define OBJ_pilotObjectClass OBJ_pilot,4L + +#define LN_pilotGroups "pilotGroups" +#define NID_pilotGroups 441 +#define OBJ_pilotGroups OBJ_pilot,10L + +#define LN_iA5StringSyntax "iA5StringSyntax" +#define NID_iA5StringSyntax 442 +#define OBJ_iA5StringSyntax OBJ_pilotAttributeSyntax,4L + +#define LN_caseIgnoreIA5StringSyntax "caseIgnoreIA5StringSyntax" +#define NID_caseIgnoreIA5StringSyntax 443 +#define OBJ_caseIgnoreIA5StringSyntax OBJ_pilotAttributeSyntax,5L + +#define LN_pilotObject "pilotObject" +#define NID_pilotObject 444 +#define OBJ_pilotObject OBJ_pilotObjectClass,3L + +#define LN_pilotPerson "pilotPerson" +#define NID_pilotPerson 445 +#define OBJ_pilotPerson OBJ_pilotObjectClass,4L + +#define SN_account "account" +#define NID_account 446 +#define OBJ_account OBJ_pilotObjectClass,5L + +#define SN_document "document" +#define NID_document 447 +#define OBJ_document OBJ_pilotObjectClass,6L + +#define SN_room "room" +#define NID_room 448 +#define OBJ_room OBJ_pilotObjectClass,7L + +#define LN_documentSeries "documentSeries" +#define NID_documentSeries 449 +#define OBJ_documentSeries OBJ_pilotObjectClass,9L + +#define SN_Domain "domain" +#define LN_Domain "Domain" +#define NID_Domain 392 +#define OBJ_Domain OBJ_pilotObjectClass,13L + +#define LN_rFC822localPart "rFC822localPart" +#define NID_rFC822localPart 450 +#define OBJ_rFC822localPart OBJ_pilotObjectClass,14L + +#define LN_dNSDomain "dNSDomain" +#define NID_dNSDomain 451 +#define OBJ_dNSDomain OBJ_pilotObjectClass,15L + +#define LN_domainRelatedObject "domainRelatedObject" +#define NID_domainRelatedObject 452 +#define OBJ_domainRelatedObject OBJ_pilotObjectClass,17L + +#define LN_friendlyCountry "friendlyCountry" +#define NID_friendlyCountry 453 +#define OBJ_friendlyCountry OBJ_pilotObjectClass,18L + +#define LN_simpleSecurityObject "simpleSecurityObject" +#define NID_simpleSecurityObject 454 +#define OBJ_simpleSecurityObject OBJ_pilotObjectClass,19L + +#define LN_pilotOrganization "pilotOrganization" +#define NID_pilotOrganization 455 +#define OBJ_pilotOrganization OBJ_pilotObjectClass,20L + +#define LN_pilotDSA "pilotDSA" +#define NID_pilotDSA 456 +#define OBJ_pilotDSA OBJ_pilotObjectClass,21L + +#define LN_qualityLabelledData "qualityLabelledData" +#define NID_qualityLabelledData 457 +#define OBJ_qualityLabelledData OBJ_pilotObjectClass,22L + +#define SN_userId "UID" +#define LN_userId "userId" +#define NID_userId 458 +#define OBJ_userId OBJ_pilotAttributeType,1L + +#define LN_textEncodedORAddress "textEncodedORAddress" +#define NID_textEncodedORAddress 459 +#define OBJ_textEncodedORAddress OBJ_pilotAttributeType,2L + +#define SN_rfc822Mailbox "mail" +#define LN_rfc822Mailbox "rfc822Mailbox" +#define NID_rfc822Mailbox 460 +#define OBJ_rfc822Mailbox OBJ_pilotAttributeType,3L + +#define SN_info "info" +#define NID_info 461 +#define OBJ_info OBJ_pilotAttributeType,4L + +#define LN_favouriteDrink "favouriteDrink" +#define NID_favouriteDrink 462 +#define OBJ_favouriteDrink OBJ_pilotAttributeType,5L + +#define LN_roomNumber "roomNumber" +#define NID_roomNumber 463 +#define OBJ_roomNumber OBJ_pilotAttributeType,6L + +#define SN_photo "photo" +#define NID_photo 464 +#define OBJ_photo OBJ_pilotAttributeType,7L + +#define LN_userClass "userClass" +#define NID_userClass 465 +#define OBJ_userClass OBJ_pilotAttributeType,8L + +#define SN_host "host" +#define NID_host 466 +#define OBJ_host OBJ_pilotAttributeType,9L + +#define SN_manager "manager" +#define NID_manager 467 +#define OBJ_manager OBJ_pilotAttributeType,10L + +#define LN_documentIdentifier "documentIdentifier" +#define NID_documentIdentifier 468 +#define OBJ_documentIdentifier OBJ_pilotAttributeType,11L + +#define LN_documentTitle "documentTitle" +#define NID_documentTitle 469 +#define OBJ_documentTitle OBJ_pilotAttributeType,12L + +#define LN_documentVersion "documentVersion" +#define NID_documentVersion 470 +#define OBJ_documentVersion OBJ_pilotAttributeType,13L + +#define LN_documentAuthor "documentAuthor" +#define NID_documentAuthor 471 +#define OBJ_documentAuthor OBJ_pilotAttributeType,14L + +#define LN_documentLocation "documentLocation" +#define NID_documentLocation 472 +#define OBJ_documentLocation OBJ_pilotAttributeType,15L + +#define LN_homeTelephoneNumber "homeTelephoneNumber" +#define NID_homeTelephoneNumber 473 +#define OBJ_homeTelephoneNumber OBJ_pilotAttributeType,20L + +#define SN_secretary "secretary" +#define NID_secretary 474 +#define OBJ_secretary OBJ_pilotAttributeType,21L + +#define LN_otherMailbox "otherMailbox" +#define NID_otherMailbox 475 +#define OBJ_otherMailbox OBJ_pilotAttributeType,22L + +#define LN_lastModifiedTime "lastModifiedTime" +#define NID_lastModifiedTime 476 +#define OBJ_lastModifiedTime OBJ_pilotAttributeType,23L + +#define LN_lastModifiedBy "lastModifiedBy" +#define NID_lastModifiedBy 477 +#define OBJ_lastModifiedBy OBJ_pilotAttributeType,24L + +#define SN_domainComponent "DC" +#define LN_domainComponent "domainComponent" +#define NID_domainComponent 391 +#define OBJ_domainComponent OBJ_pilotAttributeType,25L + +#define LN_aRecord "aRecord" +#define NID_aRecord 478 +#define OBJ_aRecord OBJ_pilotAttributeType,26L + +#define LN_pilotAttributeType27 "pilotAttributeType27" +#define NID_pilotAttributeType27 479 +#define OBJ_pilotAttributeType27 OBJ_pilotAttributeType,27L + +#define LN_mXRecord "mXRecord" +#define NID_mXRecord 480 +#define OBJ_mXRecord OBJ_pilotAttributeType,28L + +#define LN_nSRecord "nSRecord" +#define NID_nSRecord 481 +#define OBJ_nSRecord OBJ_pilotAttributeType,29L + +#define LN_sOARecord "sOARecord" +#define NID_sOARecord 482 +#define OBJ_sOARecord OBJ_pilotAttributeType,30L + +#define LN_cNAMERecord "cNAMERecord" +#define NID_cNAMERecord 483 +#define OBJ_cNAMERecord OBJ_pilotAttributeType,31L + +#define LN_associatedDomain "associatedDomain" +#define NID_associatedDomain 484 +#define OBJ_associatedDomain OBJ_pilotAttributeType,37L + +#define LN_associatedName "associatedName" +#define NID_associatedName 485 +#define OBJ_associatedName OBJ_pilotAttributeType,38L + +#define LN_homePostalAddress "homePostalAddress" +#define NID_homePostalAddress 486 +#define OBJ_homePostalAddress OBJ_pilotAttributeType,39L + +#define LN_personalTitle "personalTitle" +#define NID_personalTitle 487 +#define OBJ_personalTitle OBJ_pilotAttributeType,40L + +#define LN_mobileTelephoneNumber "mobileTelephoneNumber" +#define NID_mobileTelephoneNumber 488 +#define OBJ_mobileTelephoneNumber OBJ_pilotAttributeType,41L + +#define LN_pagerTelephoneNumber "pagerTelephoneNumber" +#define NID_pagerTelephoneNumber 489 +#define OBJ_pagerTelephoneNumber OBJ_pilotAttributeType,42L + +#define LN_friendlyCountryName "friendlyCountryName" +#define NID_friendlyCountryName 490 +#define OBJ_friendlyCountryName OBJ_pilotAttributeType,43L + +#define LN_organizationalStatus "organizationalStatus" +#define NID_organizationalStatus 491 +#define OBJ_organizationalStatus OBJ_pilotAttributeType,45L + +#define LN_janetMailbox "janetMailbox" +#define NID_janetMailbox 492 +#define OBJ_janetMailbox OBJ_pilotAttributeType,46L + +#define LN_mailPreferenceOption "mailPreferenceOption" +#define NID_mailPreferenceOption 493 +#define OBJ_mailPreferenceOption OBJ_pilotAttributeType,47L + +#define LN_buildingName "buildingName" +#define NID_buildingName 494 +#define OBJ_buildingName OBJ_pilotAttributeType,48L + +#define LN_dSAQuality "dSAQuality" +#define NID_dSAQuality 495 +#define OBJ_dSAQuality OBJ_pilotAttributeType,49L + +#define LN_singleLevelQuality "singleLevelQuality" +#define NID_singleLevelQuality 496 +#define OBJ_singleLevelQuality OBJ_pilotAttributeType,50L + +#define LN_subtreeMinimumQuality "subtreeMinimumQuality" +#define NID_subtreeMinimumQuality 497 +#define OBJ_subtreeMinimumQuality OBJ_pilotAttributeType,51L + +#define LN_subtreeMaximumQuality "subtreeMaximumQuality" +#define NID_subtreeMaximumQuality 498 +#define OBJ_subtreeMaximumQuality OBJ_pilotAttributeType,52L + +#define LN_personalSignature "personalSignature" +#define NID_personalSignature 499 +#define OBJ_personalSignature OBJ_pilotAttributeType,53L + +#define LN_dITRedirect "dITRedirect" +#define NID_dITRedirect 500 +#define OBJ_dITRedirect OBJ_pilotAttributeType,54L + +#define SN_audio "audio" +#define NID_audio 501 +#define OBJ_audio OBJ_pilotAttributeType,55L + +#define LN_documentPublisher "documentPublisher" +#define NID_documentPublisher 502 +#define OBJ_documentPublisher OBJ_pilotAttributeType,56L + +#define SN_id_set "id-set" +#define LN_id_set "Secure Electronic Transactions" +#define NID_id_set 512 +#define OBJ_id_set OBJ_international_organizations,42L + +#define SN_set_ctype "set-ctype" +#define LN_set_ctype "content types" +#define NID_set_ctype 513 +#define OBJ_set_ctype OBJ_id_set,0L + +#define SN_set_msgExt "set-msgExt" +#define LN_set_msgExt "message extensions" +#define NID_set_msgExt 514 +#define OBJ_set_msgExt OBJ_id_set,1L + +#define SN_set_attr "set-attr" +#define NID_set_attr 515 +#define OBJ_set_attr OBJ_id_set,3L + +#define SN_set_policy "set-policy" +#define NID_set_policy 516 +#define OBJ_set_policy OBJ_id_set,5L + +#define SN_set_certExt "set-certExt" +#define LN_set_certExt "certificate extensions" +#define NID_set_certExt 517 +#define OBJ_set_certExt OBJ_id_set,7L + +#define SN_set_brand "set-brand" +#define NID_set_brand 518 +#define OBJ_set_brand OBJ_id_set,8L + +#define SN_setct_PANData "setct-PANData" +#define NID_setct_PANData 519 +#define OBJ_setct_PANData OBJ_set_ctype,0L + +#define SN_setct_PANToken "setct-PANToken" +#define NID_setct_PANToken 520 +#define OBJ_setct_PANToken OBJ_set_ctype,1L + +#define SN_setct_PANOnly "setct-PANOnly" +#define NID_setct_PANOnly 521 +#define OBJ_setct_PANOnly OBJ_set_ctype,2L + +#define SN_setct_OIData "setct-OIData" +#define NID_setct_OIData 522 +#define OBJ_setct_OIData OBJ_set_ctype,3L + +#define SN_setct_PI "setct-PI" +#define NID_setct_PI 523 +#define OBJ_setct_PI OBJ_set_ctype,4L + +#define SN_setct_PIData "setct-PIData" +#define NID_setct_PIData 524 +#define OBJ_setct_PIData OBJ_set_ctype,5L + +#define SN_setct_PIDataUnsigned "setct-PIDataUnsigned" +#define NID_setct_PIDataUnsigned 525 +#define OBJ_setct_PIDataUnsigned OBJ_set_ctype,6L + +#define SN_setct_HODInput "setct-HODInput" +#define NID_setct_HODInput 526 +#define OBJ_setct_HODInput OBJ_set_ctype,7L + +#define SN_setct_AuthResBaggage "setct-AuthResBaggage" +#define NID_setct_AuthResBaggage 527 +#define OBJ_setct_AuthResBaggage OBJ_set_ctype,8L + +#define SN_setct_AuthRevReqBaggage "setct-AuthRevReqBaggage" +#define NID_setct_AuthRevReqBaggage 528 +#define OBJ_setct_AuthRevReqBaggage OBJ_set_ctype,9L + +#define SN_setct_AuthRevResBaggage "setct-AuthRevResBaggage" +#define NID_setct_AuthRevResBaggage 529 +#define OBJ_setct_AuthRevResBaggage OBJ_set_ctype,10L + +#define SN_setct_CapTokenSeq "setct-CapTokenSeq" +#define NID_setct_CapTokenSeq 530 +#define OBJ_setct_CapTokenSeq OBJ_set_ctype,11L + +#define SN_setct_PInitResData "setct-PInitResData" +#define NID_setct_PInitResData 531 +#define OBJ_setct_PInitResData OBJ_set_ctype,12L + +#define SN_setct_PI_TBS "setct-PI-TBS" +#define NID_setct_PI_TBS 532 +#define OBJ_setct_PI_TBS OBJ_set_ctype,13L + +#define SN_setct_PResData "setct-PResData" +#define NID_setct_PResData 533 +#define OBJ_setct_PResData OBJ_set_ctype,14L + +#define SN_setct_AuthReqTBS "setct-AuthReqTBS" +#define NID_setct_AuthReqTBS 534 +#define OBJ_setct_AuthReqTBS OBJ_set_ctype,16L + +#define SN_setct_AuthResTBS "setct-AuthResTBS" +#define NID_setct_AuthResTBS 535 +#define OBJ_setct_AuthResTBS OBJ_set_ctype,17L + +#define SN_setct_AuthResTBSX "setct-AuthResTBSX" +#define NID_setct_AuthResTBSX 536 +#define OBJ_setct_AuthResTBSX OBJ_set_ctype,18L + +#define SN_setct_AuthTokenTBS "setct-AuthTokenTBS" +#define NID_setct_AuthTokenTBS 537 +#define OBJ_setct_AuthTokenTBS OBJ_set_ctype,19L + +#define SN_setct_CapTokenData "setct-CapTokenData" +#define NID_setct_CapTokenData 538 +#define OBJ_setct_CapTokenData OBJ_set_ctype,20L + +#define SN_setct_CapTokenTBS "setct-CapTokenTBS" +#define NID_setct_CapTokenTBS 539 +#define OBJ_setct_CapTokenTBS OBJ_set_ctype,21L + +#define SN_setct_AcqCardCodeMsg "setct-AcqCardCodeMsg" +#define NID_setct_AcqCardCodeMsg 540 +#define OBJ_setct_AcqCardCodeMsg OBJ_set_ctype,22L + +#define SN_setct_AuthRevReqTBS "setct-AuthRevReqTBS" +#define NID_setct_AuthRevReqTBS 541 +#define OBJ_setct_AuthRevReqTBS OBJ_set_ctype,23L + +#define SN_setct_AuthRevResData "setct-AuthRevResData" +#define NID_setct_AuthRevResData 542 +#define OBJ_setct_AuthRevResData OBJ_set_ctype,24L + +#define SN_setct_AuthRevResTBS "setct-AuthRevResTBS" +#define NID_setct_AuthRevResTBS 543 +#define OBJ_setct_AuthRevResTBS OBJ_set_ctype,25L + +#define SN_setct_CapReqTBS "setct-CapReqTBS" +#define NID_setct_CapReqTBS 544 +#define OBJ_setct_CapReqTBS OBJ_set_ctype,26L + +#define SN_setct_CapReqTBSX "setct-CapReqTBSX" +#define NID_setct_CapReqTBSX 545 +#define OBJ_setct_CapReqTBSX OBJ_set_ctype,27L + +#define SN_setct_CapResData "setct-CapResData" +#define NID_setct_CapResData 546 +#define OBJ_setct_CapResData OBJ_set_ctype,28L + +#define SN_setct_CapRevReqTBS "setct-CapRevReqTBS" +#define NID_setct_CapRevReqTBS 547 +#define OBJ_setct_CapRevReqTBS OBJ_set_ctype,29L + +#define SN_setct_CapRevReqTBSX "setct-CapRevReqTBSX" +#define NID_setct_CapRevReqTBSX 548 +#define OBJ_setct_CapRevReqTBSX OBJ_set_ctype,30L + +#define SN_setct_CapRevResData "setct-CapRevResData" +#define NID_setct_CapRevResData 549 +#define OBJ_setct_CapRevResData OBJ_set_ctype,31L + +#define SN_setct_CredReqTBS "setct-CredReqTBS" +#define NID_setct_CredReqTBS 550 +#define OBJ_setct_CredReqTBS OBJ_set_ctype,32L + +#define SN_setct_CredReqTBSX "setct-CredReqTBSX" +#define NID_setct_CredReqTBSX 551 +#define OBJ_setct_CredReqTBSX OBJ_set_ctype,33L + +#define SN_setct_CredResData "setct-CredResData" +#define NID_setct_CredResData 552 +#define OBJ_setct_CredResData OBJ_set_ctype,34L + +#define SN_setct_CredRevReqTBS "setct-CredRevReqTBS" +#define NID_setct_CredRevReqTBS 553 +#define OBJ_setct_CredRevReqTBS OBJ_set_ctype,35L + +#define SN_setct_CredRevReqTBSX "setct-CredRevReqTBSX" +#define NID_setct_CredRevReqTBSX 554 +#define OBJ_setct_CredRevReqTBSX OBJ_set_ctype,36L + +#define SN_setct_CredRevResData "setct-CredRevResData" +#define NID_setct_CredRevResData 555 +#define OBJ_setct_CredRevResData OBJ_set_ctype,37L + +#define SN_setct_PCertReqData "setct-PCertReqData" +#define NID_setct_PCertReqData 556 +#define OBJ_setct_PCertReqData OBJ_set_ctype,38L + +#define SN_setct_PCertResTBS "setct-PCertResTBS" +#define NID_setct_PCertResTBS 557 +#define OBJ_setct_PCertResTBS OBJ_set_ctype,39L + +#define SN_setct_BatchAdminReqData "setct-BatchAdminReqData" +#define NID_setct_BatchAdminReqData 558 +#define OBJ_setct_BatchAdminReqData OBJ_set_ctype,40L + +#define SN_setct_BatchAdminResData "setct-BatchAdminResData" +#define NID_setct_BatchAdminResData 559 +#define OBJ_setct_BatchAdminResData OBJ_set_ctype,41L + +#define SN_setct_CardCInitResTBS "setct-CardCInitResTBS" +#define NID_setct_CardCInitResTBS 560 +#define OBJ_setct_CardCInitResTBS OBJ_set_ctype,42L + +#define SN_setct_MeAqCInitResTBS "setct-MeAqCInitResTBS" +#define NID_setct_MeAqCInitResTBS 561 +#define OBJ_setct_MeAqCInitResTBS OBJ_set_ctype,43L + +#define SN_setct_RegFormResTBS "setct-RegFormResTBS" +#define NID_setct_RegFormResTBS 562 +#define OBJ_setct_RegFormResTBS OBJ_set_ctype,44L + +#define SN_setct_CertReqData "setct-CertReqData" +#define NID_setct_CertReqData 563 +#define OBJ_setct_CertReqData OBJ_set_ctype,45L + +#define SN_setct_CertReqTBS "setct-CertReqTBS" +#define NID_setct_CertReqTBS 564 +#define OBJ_setct_CertReqTBS OBJ_set_ctype,46L + +#define SN_setct_CertResData "setct-CertResData" +#define NID_setct_CertResData 565 +#define OBJ_setct_CertResData OBJ_set_ctype,47L + +#define SN_setct_CertInqReqTBS "setct-CertInqReqTBS" +#define NID_setct_CertInqReqTBS 566 +#define OBJ_setct_CertInqReqTBS OBJ_set_ctype,48L + +#define SN_setct_ErrorTBS "setct-ErrorTBS" +#define NID_setct_ErrorTBS 567 +#define OBJ_setct_ErrorTBS OBJ_set_ctype,49L + +#define SN_setct_PIDualSignedTBE "setct-PIDualSignedTBE" +#define NID_setct_PIDualSignedTBE 568 +#define OBJ_setct_PIDualSignedTBE OBJ_set_ctype,50L + +#define SN_setct_PIUnsignedTBE "setct-PIUnsignedTBE" +#define NID_setct_PIUnsignedTBE 569 +#define OBJ_setct_PIUnsignedTBE OBJ_set_ctype,51L + +#define SN_setct_AuthReqTBE "setct-AuthReqTBE" +#define NID_setct_AuthReqTBE 570 +#define OBJ_setct_AuthReqTBE OBJ_set_ctype,52L + +#define SN_setct_AuthResTBE "setct-AuthResTBE" +#define NID_setct_AuthResTBE 571 +#define OBJ_setct_AuthResTBE OBJ_set_ctype,53L + +#define SN_setct_AuthResTBEX "setct-AuthResTBEX" +#define NID_setct_AuthResTBEX 572 +#define OBJ_setct_AuthResTBEX OBJ_set_ctype,54L + +#define SN_setct_AuthTokenTBE "setct-AuthTokenTBE" +#define NID_setct_AuthTokenTBE 573 +#define OBJ_setct_AuthTokenTBE OBJ_set_ctype,55L + +#define SN_setct_CapTokenTBE "setct-CapTokenTBE" +#define NID_setct_CapTokenTBE 574 +#define OBJ_setct_CapTokenTBE OBJ_set_ctype,56L + +#define SN_setct_CapTokenTBEX "setct-CapTokenTBEX" +#define NID_setct_CapTokenTBEX 575 +#define OBJ_setct_CapTokenTBEX OBJ_set_ctype,57L + +#define SN_setct_AcqCardCodeMsgTBE "setct-AcqCardCodeMsgTBE" +#define NID_setct_AcqCardCodeMsgTBE 576 +#define OBJ_setct_AcqCardCodeMsgTBE OBJ_set_ctype,58L + +#define SN_setct_AuthRevReqTBE "setct-AuthRevReqTBE" +#define NID_setct_AuthRevReqTBE 577 +#define OBJ_setct_AuthRevReqTBE OBJ_set_ctype,59L + +#define SN_setct_AuthRevResTBE "setct-AuthRevResTBE" +#define NID_setct_AuthRevResTBE 578 +#define OBJ_setct_AuthRevResTBE OBJ_set_ctype,60L + +#define SN_setct_AuthRevResTBEB "setct-AuthRevResTBEB" +#define NID_setct_AuthRevResTBEB 579 +#define OBJ_setct_AuthRevResTBEB OBJ_set_ctype,61L + +#define SN_setct_CapReqTBE "setct-CapReqTBE" +#define NID_setct_CapReqTBE 580 +#define OBJ_setct_CapReqTBE OBJ_set_ctype,62L + +#define SN_setct_CapReqTBEX "setct-CapReqTBEX" +#define NID_setct_CapReqTBEX 581 +#define OBJ_setct_CapReqTBEX OBJ_set_ctype,63L + +#define SN_setct_CapResTBE "setct-CapResTBE" +#define NID_setct_CapResTBE 582 +#define OBJ_setct_CapResTBE OBJ_set_ctype,64L + +#define SN_setct_CapRevReqTBE "setct-CapRevReqTBE" +#define NID_setct_CapRevReqTBE 583 +#define OBJ_setct_CapRevReqTBE OBJ_set_ctype,65L + +#define SN_setct_CapRevReqTBEX "setct-CapRevReqTBEX" +#define NID_setct_CapRevReqTBEX 584 +#define OBJ_setct_CapRevReqTBEX OBJ_set_ctype,66L + +#define SN_setct_CapRevResTBE "setct-CapRevResTBE" +#define NID_setct_CapRevResTBE 585 +#define OBJ_setct_CapRevResTBE OBJ_set_ctype,67L + +#define SN_setct_CredReqTBE "setct-CredReqTBE" +#define NID_setct_CredReqTBE 586 +#define OBJ_setct_CredReqTBE OBJ_set_ctype,68L + +#define SN_setct_CredReqTBEX "setct-CredReqTBEX" +#define NID_setct_CredReqTBEX 587 +#define OBJ_setct_CredReqTBEX OBJ_set_ctype,69L + +#define SN_setct_CredResTBE "setct-CredResTBE" +#define NID_setct_CredResTBE 588 +#define OBJ_setct_CredResTBE OBJ_set_ctype,70L + +#define SN_setct_CredRevReqTBE "setct-CredRevReqTBE" +#define NID_setct_CredRevReqTBE 589 +#define OBJ_setct_CredRevReqTBE OBJ_set_ctype,71L + +#define SN_setct_CredRevReqTBEX "setct-CredRevReqTBEX" +#define NID_setct_CredRevReqTBEX 590 +#define OBJ_setct_CredRevReqTBEX OBJ_set_ctype,72L + +#define SN_setct_CredRevResTBE "setct-CredRevResTBE" +#define NID_setct_CredRevResTBE 591 +#define OBJ_setct_CredRevResTBE OBJ_set_ctype,73L + +#define SN_setct_BatchAdminReqTBE "setct-BatchAdminReqTBE" +#define NID_setct_BatchAdminReqTBE 592 +#define OBJ_setct_BatchAdminReqTBE OBJ_set_ctype,74L + +#define SN_setct_BatchAdminResTBE "setct-BatchAdminResTBE" +#define NID_setct_BatchAdminResTBE 593 +#define OBJ_setct_BatchAdminResTBE OBJ_set_ctype,75L + +#define SN_setct_RegFormReqTBE "setct-RegFormReqTBE" +#define NID_setct_RegFormReqTBE 594 +#define OBJ_setct_RegFormReqTBE OBJ_set_ctype,76L + +#define SN_setct_CertReqTBE "setct-CertReqTBE" +#define NID_setct_CertReqTBE 595 +#define OBJ_setct_CertReqTBE OBJ_set_ctype,77L + +#define SN_setct_CertReqTBEX "setct-CertReqTBEX" +#define NID_setct_CertReqTBEX 596 +#define OBJ_setct_CertReqTBEX OBJ_set_ctype,78L + +#define SN_setct_CertResTBE "setct-CertResTBE" +#define NID_setct_CertResTBE 597 +#define OBJ_setct_CertResTBE OBJ_set_ctype,79L + +#define SN_setct_CRLNotificationTBS "setct-CRLNotificationTBS" +#define NID_setct_CRLNotificationTBS 598 +#define OBJ_setct_CRLNotificationTBS OBJ_set_ctype,80L + +#define SN_setct_CRLNotificationResTBS "setct-CRLNotificationResTBS" +#define NID_setct_CRLNotificationResTBS 599 +#define OBJ_setct_CRLNotificationResTBS OBJ_set_ctype,81L + +#define SN_setct_BCIDistributionTBS "setct-BCIDistributionTBS" +#define NID_setct_BCIDistributionTBS 600 +#define OBJ_setct_BCIDistributionTBS OBJ_set_ctype,82L + +#define SN_setext_genCrypt "setext-genCrypt" +#define LN_setext_genCrypt "generic cryptogram" +#define NID_setext_genCrypt 601 +#define OBJ_setext_genCrypt OBJ_set_msgExt,1L + +#define SN_setext_miAuth "setext-miAuth" +#define LN_setext_miAuth "merchant initiated auth" +#define NID_setext_miAuth 602 +#define OBJ_setext_miAuth OBJ_set_msgExt,3L + +#define SN_setext_pinSecure "setext-pinSecure" +#define NID_setext_pinSecure 603 +#define OBJ_setext_pinSecure OBJ_set_msgExt,4L + +#define SN_setext_pinAny "setext-pinAny" +#define NID_setext_pinAny 604 +#define OBJ_setext_pinAny OBJ_set_msgExt,5L + +#define SN_setext_track2 "setext-track2" +#define NID_setext_track2 605 +#define OBJ_setext_track2 OBJ_set_msgExt,7L + +#define SN_setext_cv "setext-cv" +#define LN_setext_cv "additional verification" +#define NID_setext_cv 606 +#define OBJ_setext_cv OBJ_set_msgExt,8L + +#define SN_set_policy_root "set-policy-root" +#define NID_set_policy_root 607 +#define OBJ_set_policy_root OBJ_set_policy,0L + +#define SN_setCext_hashedRoot "setCext-hashedRoot" +#define NID_setCext_hashedRoot 608 +#define OBJ_setCext_hashedRoot OBJ_set_certExt,0L + +#define SN_setCext_certType "setCext-certType" +#define NID_setCext_certType 609 +#define OBJ_setCext_certType OBJ_set_certExt,1L + +#define SN_setCext_merchData "setCext-merchData" +#define NID_setCext_merchData 610 +#define OBJ_setCext_merchData OBJ_set_certExt,2L + +#define SN_setCext_cCertRequired "setCext-cCertRequired" +#define NID_setCext_cCertRequired 611 +#define OBJ_setCext_cCertRequired OBJ_set_certExt,3L + +#define SN_setCext_tunneling "setCext-tunneling" +#define NID_setCext_tunneling 612 +#define OBJ_setCext_tunneling OBJ_set_certExt,4L + +#define SN_setCext_setExt "setCext-setExt" +#define NID_setCext_setExt 613 +#define OBJ_setCext_setExt OBJ_set_certExt,5L + +#define SN_setCext_setQualf "setCext-setQualf" +#define NID_setCext_setQualf 614 +#define OBJ_setCext_setQualf OBJ_set_certExt,6L + +#define SN_setCext_PGWYcapabilities "setCext-PGWYcapabilities" +#define NID_setCext_PGWYcapabilities 615 +#define OBJ_setCext_PGWYcapabilities OBJ_set_certExt,7L + +#define SN_setCext_TokenIdentifier "setCext-TokenIdentifier" +#define NID_setCext_TokenIdentifier 616 +#define OBJ_setCext_TokenIdentifier OBJ_set_certExt,8L + +#define SN_setCext_Track2Data "setCext-Track2Data" +#define NID_setCext_Track2Data 617 +#define OBJ_setCext_Track2Data OBJ_set_certExt,9L + +#define SN_setCext_TokenType "setCext-TokenType" +#define NID_setCext_TokenType 618 +#define OBJ_setCext_TokenType OBJ_set_certExt,10L + +#define SN_setCext_IssuerCapabilities "setCext-IssuerCapabilities" +#define NID_setCext_IssuerCapabilities 619 +#define OBJ_setCext_IssuerCapabilities OBJ_set_certExt,11L + +#define SN_setAttr_Cert "setAttr-Cert" +#define NID_setAttr_Cert 620 +#define OBJ_setAttr_Cert OBJ_set_attr,0L + +#define SN_setAttr_PGWYcap "setAttr-PGWYcap" +#define LN_setAttr_PGWYcap "payment gateway capabilities" +#define NID_setAttr_PGWYcap 621 +#define OBJ_setAttr_PGWYcap OBJ_set_attr,1L + +#define SN_setAttr_TokenType "setAttr-TokenType" +#define NID_setAttr_TokenType 622 +#define OBJ_setAttr_TokenType OBJ_set_attr,2L + +#define SN_setAttr_IssCap "setAttr-IssCap" +#define LN_setAttr_IssCap "issuer capabilities" +#define NID_setAttr_IssCap 623 +#define OBJ_setAttr_IssCap OBJ_set_attr,3L + +#define SN_set_rootKeyThumb "set-rootKeyThumb" +#define NID_set_rootKeyThumb 624 +#define OBJ_set_rootKeyThumb OBJ_setAttr_Cert,0L + +#define SN_set_addPolicy "set-addPolicy" +#define NID_set_addPolicy 625 +#define OBJ_set_addPolicy OBJ_setAttr_Cert,1L + +#define SN_setAttr_Token_EMV "setAttr-Token-EMV" +#define NID_setAttr_Token_EMV 626 +#define OBJ_setAttr_Token_EMV OBJ_setAttr_TokenType,1L + +#define SN_setAttr_Token_B0Prime "setAttr-Token-B0Prime" +#define NID_setAttr_Token_B0Prime 627 +#define OBJ_setAttr_Token_B0Prime OBJ_setAttr_TokenType,2L + +#define SN_setAttr_IssCap_CVM "setAttr-IssCap-CVM" +#define NID_setAttr_IssCap_CVM 628 +#define OBJ_setAttr_IssCap_CVM OBJ_setAttr_IssCap,3L + +#define SN_setAttr_IssCap_T2 "setAttr-IssCap-T2" +#define NID_setAttr_IssCap_T2 629 +#define OBJ_setAttr_IssCap_T2 OBJ_setAttr_IssCap,4L + +#define SN_setAttr_IssCap_Sig "setAttr-IssCap-Sig" +#define NID_setAttr_IssCap_Sig 630 +#define OBJ_setAttr_IssCap_Sig OBJ_setAttr_IssCap,5L + +#define SN_setAttr_GenCryptgrm "setAttr-GenCryptgrm" +#define LN_setAttr_GenCryptgrm "generate cryptogram" +#define NID_setAttr_GenCryptgrm 631 +#define OBJ_setAttr_GenCryptgrm OBJ_setAttr_IssCap_CVM,1L + +#define SN_setAttr_T2Enc "setAttr-T2Enc" +#define LN_setAttr_T2Enc "encrypted track 2" +#define NID_setAttr_T2Enc 632 +#define OBJ_setAttr_T2Enc OBJ_setAttr_IssCap_T2,1L + +#define SN_setAttr_T2cleartxt "setAttr-T2cleartxt" +#define LN_setAttr_T2cleartxt "cleartext track 2" +#define NID_setAttr_T2cleartxt 633 +#define OBJ_setAttr_T2cleartxt OBJ_setAttr_IssCap_T2,2L + +#define SN_setAttr_TokICCsig "setAttr-TokICCsig" +#define LN_setAttr_TokICCsig "ICC or token signature" +#define NID_setAttr_TokICCsig 634 +#define OBJ_setAttr_TokICCsig OBJ_setAttr_IssCap_Sig,1L + +#define SN_setAttr_SecDevSig "setAttr-SecDevSig" +#define LN_setAttr_SecDevSig "secure device signature" +#define NID_setAttr_SecDevSig 635 +#define OBJ_setAttr_SecDevSig OBJ_setAttr_IssCap_Sig,2L + +#define SN_set_brand_IATA_ATA "set-brand-IATA-ATA" +#define NID_set_brand_IATA_ATA 636 +#define OBJ_set_brand_IATA_ATA OBJ_set_brand,1L + +#define SN_set_brand_Diners "set-brand-Diners" +#define NID_set_brand_Diners 637 +#define OBJ_set_brand_Diners OBJ_set_brand,30L + +#define SN_set_brand_AmericanExpress "set-brand-AmericanExpress" +#define NID_set_brand_AmericanExpress 638 +#define OBJ_set_brand_AmericanExpress OBJ_set_brand,34L + +#define SN_set_brand_JCB "set-brand-JCB" +#define NID_set_brand_JCB 639 +#define OBJ_set_brand_JCB OBJ_set_brand,35L + +#define SN_set_brand_Visa "set-brand-Visa" +#define NID_set_brand_Visa 640 +#define OBJ_set_brand_Visa OBJ_set_brand,4L + +#define SN_set_brand_MasterCard "set-brand-MasterCard" +#define NID_set_brand_MasterCard 641 +#define OBJ_set_brand_MasterCard OBJ_set_brand,5L + +#define SN_set_brand_Novus "set-brand-Novus" +#define NID_set_brand_Novus 642 +#define OBJ_set_brand_Novus OBJ_set_brand,6011L + +#define SN_des_cdmf "DES-CDMF" +#define LN_des_cdmf "des-cdmf" +#define NID_des_cdmf 643 +#define OBJ_des_cdmf OBJ_rsadsi,3L,10L + +#define SN_rsaOAEPEncryptionSET "rsaOAEPEncryptionSET" +#define NID_rsaOAEPEncryptionSET 644 +#define OBJ_rsaOAEPEncryptionSET OBJ_rsadsi,1L,1L,6L + +#define SN_ipsec3 "Oakley-EC2N-3" +#define LN_ipsec3 "ipsec3" +#define NID_ipsec3 749 + +#define SN_ipsec4 "Oakley-EC2N-4" +#define LN_ipsec4 "ipsec4" +#define NID_ipsec4 750 + +#define SN_whirlpool "whirlpool" +#define NID_whirlpool 804 +#define OBJ_whirlpool OBJ_iso,0L,10118L,3L,0L,55L + +#define SN_cryptopro "cryptopro" +#define NID_cryptopro 805 +#define OBJ_cryptopro OBJ_member_body,643L,2L,2L + +#define SN_cryptocom "cryptocom" +#define NID_cryptocom 806 +#define OBJ_cryptocom OBJ_member_body,643L,2L,9L + +#define SN_id_GostR3411_94_with_GostR3410_2001 "id-GostR3411-94-with-GostR3410-2001" +#define LN_id_GostR3411_94_with_GostR3410_2001 "GOST R 34.11-94 with GOST R 34.10-2001" +#define NID_id_GostR3411_94_with_GostR3410_2001 807 +#define OBJ_id_GostR3411_94_with_GostR3410_2001 OBJ_cryptopro,3L + +#define SN_id_GostR3411_94_with_GostR3410_94 "id-GostR3411-94-with-GostR3410-94" +#define LN_id_GostR3411_94_with_GostR3410_94 "GOST R 34.11-94 with GOST R 34.10-94" +#define NID_id_GostR3411_94_with_GostR3410_94 808 +#define OBJ_id_GostR3411_94_with_GostR3410_94 OBJ_cryptopro,4L + +#define SN_id_GostR3411_94 "md_gost94" +#define LN_id_GostR3411_94 "GOST R 34.11-94" +#define NID_id_GostR3411_94 809 +#define OBJ_id_GostR3411_94 OBJ_cryptopro,9L + +#define SN_id_HMACGostR3411_94 "id-HMACGostR3411-94" +#define LN_id_HMACGostR3411_94 "HMAC GOST 34.11-94" +#define NID_id_HMACGostR3411_94 810 +#define OBJ_id_HMACGostR3411_94 OBJ_cryptopro,10L + +#define SN_id_GostR3410_2001 "gost2001" +#define LN_id_GostR3410_2001 "GOST R 34.10-2001" +#define NID_id_GostR3410_2001 811 +#define OBJ_id_GostR3410_2001 OBJ_cryptopro,19L + +#define SN_id_GostR3410_94 "gost94" +#define LN_id_GostR3410_94 "GOST R 34.10-94" +#define NID_id_GostR3410_94 812 +#define OBJ_id_GostR3410_94 OBJ_cryptopro,20L + +#define SN_id_Gost28147_89 "gost89" +#define LN_id_Gost28147_89 "GOST 28147-89" +#define NID_id_Gost28147_89 813 +#define OBJ_id_Gost28147_89 OBJ_cryptopro,21L + +#define SN_gost89_cnt "gost89-cnt" +#define NID_gost89_cnt 814 + +#define SN_id_Gost28147_89_MAC "gost-mac" +#define LN_id_Gost28147_89_MAC "GOST 28147-89 MAC" +#define NID_id_Gost28147_89_MAC 815 +#define OBJ_id_Gost28147_89_MAC OBJ_cryptopro,22L + +#define SN_id_GostR3411_94_prf "prf-gostr3411-94" +#define LN_id_GostR3411_94_prf "GOST R 34.11-94 PRF" +#define NID_id_GostR3411_94_prf 816 +#define OBJ_id_GostR3411_94_prf OBJ_cryptopro,23L + +#define SN_id_GostR3410_2001DH "id-GostR3410-2001DH" +#define LN_id_GostR3410_2001DH "GOST R 34.10-2001 DH" +#define NID_id_GostR3410_2001DH 817 +#define OBJ_id_GostR3410_2001DH OBJ_cryptopro,98L + +#define SN_id_GostR3410_94DH "id-GostR3410-94DH" +#define LN_id_GostR3410_94DH "GOST R 34.10-94 DH" +#define NID_id_GostR3410_94DH 818 +#define OBJ_id_GostR3410_94DH OBJ_cryptopro,99L + +#define SN_id_Gost28147_89_CryptoPro_KeyMeshing "id-Gost28147-89-CryptoPro-KeyMeshing" +#define NID_id_Gost28147_89_CryptoPro_KeyMeshing 819 +#define OBJ_id_Gost28147_89_CryptoPro_KeyMeshing OBJ_cryptopro,14L,1L + +#define SN_id_Gost28147_89_None_KeyMeshing "id-Gost28147-89-None-KeyMeshing" +#define NID_id_Gost28147_89_None_KeyMeshing 820 +#define OBJ_id_Gost28147_89_None_KeyMeshing OBJ_cryptopro,14L,0L + +#define SN_id_GostR3411_94_TestParamSet "id-GostR3411-94-TestParamSet" +#define NID_id_GostR3411_94_TestParamSet 821 +#define OBJ_id_GostR3411_94_TestParamSet OBJ_cryptopro,30L,0L + +#define SN_id_GostR3411_94_CryptoProParamSet "id-GostR3411-94-CryptoProParamSet" +#define NID_id_GostR3411_94_CryptoProParamSet 822 +#define OBJ_id_GostR3411_94_CryptoProParamSet OBJ_cryptopro,30L,1L + +#define SN_id_Gost28147_89_TestParamSet "id-Gost28147-89-TestParamSet" +#define NID_id_Gost28147_89_TestParamSet 823 +#define OBJ_id_Gost28147_89_TestParamSet OBJ_cryptopro,31L,0L + +#define SN_id_Gost28147_89_CryptoPro_A_ParamSet "id-Gost28147-89-CryptoPro-A-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_A_ParamSet 824 +#define OBJ_id_Gost28147_89_CryptoPro_A_ParamSet OBJ_cryptopro,31L,1L + +#define SN_id_Gost28147_89_CryptoPro_B_ParamSet "id-Gost28147-89-CryptoPro-B-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_B_ParamSet 825 +#define OBJ_id_Gost28147_89_CryptoPro_B_ParamSet OBJ_cryptopro,31L,2L + +#define SN_id_Gost28147_89_CryptoPro_C_ParamSet "id-Gost28147-89-CryptoPro-C-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_C_ParamSet 826 +#define OBJ_id_Gost28147_89_CryptoPro_C_ParamSet OBJ_cryptopro,31L,3L + +#define SN_id_Gost28147_89_CryptoPro_D_ParamSet "id-Gost28147-89-CryptoPro-D-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_D_ParamSet 827 +#define OBJ_id_Gost28147_89_CryptoPro_D_ParamSet OBJ_cryptopro,31L,4L + +#define SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet "id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet 828 +#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet OBJ_cryptopro,31L,5L + +#define SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet "id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet 829 +#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet OBJ_cryptopro,31L,6L + +#define SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet "id-Gost28147-89-CryptoPro-RIC-1-ParamSet" +#define NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet 830 +#define OBJ_id_Gost28147_89_CryptoPro_RIC_1_ParamSet OBJ_cryptopro,31L,7L + +#define SN_id_GostR3410_94_TestParamSet "id-GostR3410-94-TestParamSet" +#define NID_id_GostR3410_94_TestParamSet 831 +#define OBJ_id_GostR3410_94_TestParamSet OBJ_cryptopro,32L,0L + +#define SN_id_GostR3410_94_CryptoPro_A_ParamSet "id-GostR3410-94-CryptoPro-A-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_A_ParamSet 832 +#define OBJ_id_GostR3410_94_CryptoPro_A_ParamSet OBJ_cryptopro,32L,2L + +#define SN_id_GostR3410_94_CryptoPro_B_ParamSet "id-GostR3410-94-CryptoPro-B-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_B_ParamSet 833 +#define OBJ_id_GostR3410_94_CryptoPro_B_ParamSet OBJ_cryptopro,32L,3L + +#define SN_id_GostR3410_94_CryptoPro_C_ParamSet "id-GostR3410-94-CryptoPro-C-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_C_ParamSet 834 +#define OBJ_id_GostR3410_94_CryptoPro_C_ParamSet OBJ_cryptopro,32L,4L + +#define SN_id_GostR3410_94_CryptoPro_D_ParamSet "id-GostR3410-94-CryptoPro-D-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_D_ParamSet 835 +#define OBJ_id_GostR3410_94_CryptoPro_D_ParamSet OBJ_cryptopro,32L,5L + +#define SN_id_GostR3410_94_CryptoPro_XchA_ParamSet "id-GostR3410-94-CryptoPro-XchA-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_XchA_ParamSet 836 +#define OBJ_id_GostR3410_94_CryptoPro_XchA_ParamSet OBJ_cryptopro,33L,1L + +#define SN_id_GostR3410_94_CryptoPro_XchB_ParamSet "id-GostR3410-94-CryptoPro-XchB-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_XchB_ParamSet 837 +#define OBJ_id_GostR3410_94_CryptoPro_XchB_ParamSet OBJ_cryptopro,33L,2L + +#define SN_id_GostR3410_94_CryptoPro_XchC_ParamSet "id-GostR3410-94-CryptoPro-XchC-ParamSet" +#define NID_id_GostR3410_94_CryptoPro_XchC_ParamSet 838 +#define OBJ_id_GostR3410_94_CryptoPro_XchC_ParamSet OBJ_cryptopro,33L,3L + +#define SN_id_GostR3410_2001_TestParamSet "id-GostR3410-2001-TestParamSet" +#define NID_id_GostR3410_2001_TestParamSet 839 +#define OBJ_id_GostR3410_2001_TestParamSet OBJ_cryptopro,35L,0L + +#define SN_id_GostR3410_2001_CryptoPro_A_ParamSet "id-GostR3410-2001-CryptoPro-A-ParamSet" +#define NID_id_GostR3410_2001_CryptoPro_A_ParamSet 840 +#define OBJ_id_GostR3410_2001_CryptoPro_A_ParamSet OBJ_cryptopro,35L,1L + +#define SN_id_GostR3410_2001_CryptoPro_B_ParamSet "id-GostR3410-2001-CryptoPro-B-ParamSet" +#define NID_id_GostR3410_2001_CryptoPro_B_ParamSet 841 +#define OBJ_id_GostR3410_2001_CryptoPro_B_ParamSet OBJ_cryptopro,35L,2L + +#define SN_id_GostR3410_2001_CryptoPro_C_ParamSet "id-GostR3410-2001-CryptoPro-C-ParamSet" +#define NID_id_GostR3410_2001_CryptoPro_C_ParamSet 842 +#define OBJ_id_GostR3410_2001_CryptoPro_C_ParamSet OBJ_cryptopro,35L,3L + +#define SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet "id-GostR3410-2001-CryptoPro-XchA-ParamSet" +#define NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet 843 +#define OBJ_id_GostR3410_2001_CryptoPro_XchA_ParamSet OBJ_cryptopro,36L,0L + +#define SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet "id-GostR3410-2001-CryptoPro-XchB-ParamSet" +#define NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet 844 +#define OBJ_id_GostR3410_2001_CryptoPro_XchB_ParamSet OBJ_cryptopro,36L,1L + +#define SN_id_GostR3410_94_a "id-GostR3410-94-a" +#define NID_id_GostR3410_94_a 845 +#define OBJ_id_GostR3410_94_a OBJ_id_GostR3410_94,1L + +#define SN_id_GostR3410_94_aBis "id-GostR3410-94-aBis" +#define NID_id_GostR3410_94_aBis 846 +#define OBJ_id_GostR3410_94_aBis OBJ_id_GostR3410_94,2L + +#define SN_id_GostR3410_94_b "id-GostR3410-94-b" +#define NID_id_GostR3410_94_b 847 +#define OBJ_id_GostR3410_94_b OBJ_id_GostR3410_94,3L + +#define SN_id_GostR3410_94_bBis "id-GostR3410-94-bBis" +#define NID_id_GostR3410_94_bBis 848 +#define OBJ_id_GostR3410_94_bBis OBJ_id_GostR3410_94,4L + +#define SN_id_Gost28147_89_cc "id-Gost28147-89-cc" +#define LN_id_Gost28147_89_cc "GOST 28147-89 Cryptocom ParamSet" +#define NID_id_Gost28147_89_cc 849 +#define OBJ_id_Gost28147_89_cc OBJ_cryptocom,1L,6L,1L + +#define SN_id_GostR3410_94_cc "gost94cc" +#define LN_id_GostR3410_94_cc "GOST 34.10-94 Cryptocom" +#define NID_id_GostR3410_94_cc 850 +#define OBJ_id_GostR3410_94_cc OBJ_cryptocom,1L,5L,3L + +#define SN_id_GostR3410_2001_cc "gost2001cc" +#define LN_id_GostR3410_2001_cc "GOST 34.10-2001 Cryptocom" +#define NID_id_GostR3410_2001_cc 851 +#define OBJ_id_GostR3410_2001_cc OBJ_cryptocom,1L,5L,4L + +#define SN_id_GostR3411_94_with_GostR3410_94_cc "id-GostR3411-94-with-GostR3410-94-cc" +#define LN_id_GostR3411_94_with_GostR3410_94_cc "GOST R 34.11-94 with GOST R 34.10-94 Cryptocom" +#define NID_id_GostR3411_94_with_GostR3410_94_cc 852 +#define OBJ_id_GostR3411_94_with_GostR3410_94_cc OBJ_cryptocom,1L,3L,3L + +#define SN_id_GostR3411_94_with_GostR3410_2001_cc "id-GostR3411-94-with-GostR3410-2001-cc" +#define LN_id_GostR3411_94_with_GostR3410_2001_cc "GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom" +#define NID_id_GostR3411_94_with_GostR3410_2001_cc 853 +#define OBJ_id_GostR3411_94_with_GostR3410_2001_cc OBJ_cryptocom,1L,3L,4L + +#define SN_id_GostR3410_2001_ParamSet_cc "id-GostR3410-2001-ParamSet-cc" +#define LN_id_GostR3410_2001_ParamSet_cc "GOST R 3410-2001 Parameter Set Cryptocom" +#define NID_id_GostR3410_2001_ParamSet_cc 854 +#define OBJ_id_GostR3410_2001_ParamSet_cc OBJ_cryptocom,1L,8L,1L + +#define SN_camellia_128_cbc "CAMELLIA-128-CBC" +#define LN_camellia_128_cbc "camellia-128-cbc" +#define NID_camellia_128_cbc 751 +#define OBJ_camellia_128_cbc 1L,2L,392L,200011L,61L,1L,1L,1L,2L + +#define SN_camellia_192_cbc "CAMELLIA-192-CBC" +#define LN_camellia_192_cbc "camellia-192-cbc" +#define NID_camellia_192_cbc 752 +#define OBJ_camellia_192_cbc 1L,2L,392L,200011L,61L,1L,1L,1L,3L + +#define SN_camellia_256_cbc "CAMELLIA-256-CBC" +#define LN_camellia_256_cbc "camellia-256-cbc" +#define NID_camellia_256_cbc 753 +#define OBJ_camellia_256_cbc 1L,2L,392L,200011L,61L,1L,1L,1L,4L + +#define OBJ_ntt_ds 0L,3L,4401L,5L + +#define OBJ_camellia OBJ_ntt_ds,3L,1L,9L + +#define SN_camellia_128_ecb "CAMELLIA-128-ECB" +#define LN_camellia_128_ecb "camellia-128-ecb" +#define NID_camellia_128_ecb 754 +#define OBJ_camellia_128_ecb OBJ_camellia,1L + +#define SN_camellia_128_ofb128 "CAMELLIA-128-OFB" +#define LN_camellia_128_ofb128 "camellia-128-ofb" +#define NID_camellia_128_ofb128 766 +#define OBJ_camellia_128_ofb128 OBJ_camellia,3L + +#define SN_camellia_128_cfb128 "CAMELLIA-128-CFB" +#define LN_camellia_128_cfb128 "camellia-128-cfb" +#define NID_camellia_128_cfb128 757 +#define OBJ_camellia_128_cfb128 OBJ_camellia,4L + +#define SN_camellia_192_ecb "CAMELLIA-192-ECB" +#define LN_camellia_192_ecb "camellia-192-ecb" +#define NID_camellia_192_ecb 755 +#define OBJ_camellia_192_ecb OBJ_camellia,21L + +#define SN_camellia_192_ofb128 "CAMELLIA-192-OFB" +#define LN_camellia_192_ofb128 "camellia-192-ofb" +#define NID_camellia_192_ofb128 767 +#define OBJ_camellia_192_ofb128 OBJ_camellia,23L + +#define SN_camellia_192_cfb128 "CAMELLIA-192-CFB" +#define LN_camellia_192_cfb128 "camellia-192-cfb" +#define NID_camellia_192_cfb128 758 +#define OBJ_camellia_192_cfb128 OBJ_camellia,24L + +#define SN_camellia_256_ecb "CAMELLIA-256-ECB" +#define LN_camellia_256_ecb "camellia-256-ecb" +#define NID_camellia_256_ecb 756 +#define OBJ_camellia_256_ecb OBJ_camellia,41L + +#define SN_camellia_256_ofb128 "CAMELLIA-256-OFB" +#define LN_camellia_256_ofb128 "camellia-256-ofb" +#define NID_camellia_256_ofb128 768 +#define OBJ_camellia_256_ofb128 OBJ_camellia,43L + +#define SN_camellia_256_cfb128 "CAMELLIA-256-CFB" +#define LN_camellia_256_cfb128 "camellia-256-cfb" +#define NID_camellia_256_cfb128 759 +#define OBJ_camellia_256_cfb128 OBJ_camellia,44L + +#define SN_camellia_128_cfb1 "CAMELLIA-128-CFB1" +#define LN_camellia_128_cfb1 "camellia-128-cfb1" +#define NID_camellia_128_cfb1 760 + +#define SN_camellia_192_cfb1 "CAMELLIA-192-CFB1" +#define LN_camellia_192_cfb1 "camellia-192-cfb1" +#define NID_camellia_192_cfb1 761 + +#define SN_camellia_256_cfb1 "CAMELLIA-256-CFB1" +#define LN_camellia_256_cfb1 "camellia-256-cfb1" +#define NID_camellia_256_cfb1 762 + +#define SN_camellia_128_cfb8 "CAMELLIA-128-CFB8" +#define LN_camellia_128_cfb8 "camellia-128-cfb8" +#define NID_camellia_128_cfb8 763 + +#define SN_camellia_192_cfb8 "CAMELLIA-192-CFB8" +#define LN_camellia_192_cfb8 "camellia-192-cfb8" +#define NID_camellia_192_cfb8 764 + +#define SN_camellia_256_cfb8 "CAMELLIA-256-CFB8" +#define LN_camellia_256_cfb8 "camellia-256-cfb8" +#define NID_camellia_256_cfb8 765 + +#define SN_kisa "KISA" +#define LN_kisa "kisa" +#define NID_kisa 773 +#define OBJ_kisa OBJ_member_body,410L,200004L + +#define SN_seed_ecb "SEED-ECB" +#define LN_seed_ecb "seed-ecb" +#define NID_seed_ecb 776 +#define OBJ_seed_ecb OBJ_kisa,1L,3L + +#define SN_seed_cbc "SEED-CBC" +#define LN_seed_cbc "seed-cbc" +#define NID_seed_cbc 777 +#define OBJ_seed_cbc OBJ_kisa,1L,4L + +#define SN_seed_cfb128 "SEED-CFB" +#define LN_seed_cfb128 "seed-cfb" +#define NID_seed_cfb128 779 +#define OBJ_seed_cfb128 OBJ_kisa,1L,5L + +#define SN_seed_ofb128 "SEED-OFB" +#define LN_seed_ofb128 "seed-ofb" +#define NID_seed_ofb128 778 +#define OBJ_seed_ofb128 OBJ_kisa,1L,6L + +#define SN_hmac "HMAC" +#define LN_hmac "hmac" +#define NID_hmac 855 diff --git a/CryptoPkg/Include/openssl/objects.h b/CryptoPkg/Include/openssl/objects.h new file mode 100644 index 0000000..7958754 --- /dev/null +++ b/CryptoPkg/Include/openssl/objects.h @@ -0,0 +1,1055 @@ +/* crypto/objects/objects.h */ +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + +#ifndef HEADER_OBJECTS_H +# define HEADER_OBJECTS_H + +# define USE_OBJ_MAC + +# ifdef USE_OBJ_MAC +# include +# else +# define SN_undef "UNDEF" +# define LN_undef "undefined" +# define NID_undef 0 +# define OBJ_undef 0L + +# define SN_Algorithm "Algorithm" +# define LN_algorithm "algorithm" +# define NID_algorithm 38 +# define OBJ_algorithm 1L,3L,14L,3L,2L + +# define LN_rsadsi "rsadsi" +# define NID_rsadsi 1 +# define OBJ_rsadsi 1L,2L,840L,113549L + +# define LN_pkcs "pkcs" +# define NID_pkcs 2 +# define OBJ_pkcs OBJ_rsadsi,1L + +# define SN_md2 "MD2" +# define LN_md2 "md2" +# define NID_md2 3 +# define OBJ_md2 OBJ_rsadsi,2L,2L + +# define SN_md5 "MD5" +# define LN_md5 "md5" +# define NID_md5 4 +# define OBJ_md5 OBJ_rsadsi,2L,5L + +# define SN_rc4 "RC4" +# define LN_rc4 "rc4" +# define NID_rc4 5 +# define OBJ_rc4 OBJ_rsadsi,3L,4L + +# define LN_rsaEncryption "rsaEncryption" +# define NID_rsaEncryption 6 +# define OBJ_rsaEncryption OBJ_pkcs,1L,1L + +# define SN_md2WithRSAEncryption "RSA-MD2" +# define LN_md2WithRSAEncryption "md2WithRSAEncryption" +# define NID_md2WithRSAEncryption 7 +# define OBJ_md2WithRSAEncryption OBJ_pkcs,1L,2L + +# define SN_md5WithRSAEncryption "RSA-MD5" +# define LN_md5WithRSAEncryption "md5WithRSAEncryption" +# define NID_md5WithRSAEncryption 8 +# define OBJ_md5WithRSAEncryption OBJ_pkcs,1L,4L + +# define SN_pbeWithMD2AndDES_CBC "PBE-MD2-DES" +# define LN_pbeWithMD2AndDES_CBC "pbeWithMD2AndDES-CBC" +# define NID_pbeWithMD2AndDES_CBC 9 +# define OBJ_pbeWithMD2AndDES_CBC OBJ_pkcs,5L,1L + +# define SN_pbeWithMD5AndDES_CBC "PBE-MD5-DES" +# define LN_pbeWithMD5AndDES_CBC "pbeWithMD5AndDES-CBC" +# define NID_pbeWithMD5AndDES_CBC 10 +# define OBJ_pbeWithMD5AndDES_CBC OBJ_pkcs,5L,3L + +# define LN_X500 "X500" +# define NID_X500 11 +# define OBJ_X500 2L,5L + +# define LN_X509 "X509" +# define NID_X509 12 +# define OBJ_X509 OBJ_X500,4L + +# define SN_commonName "CN" +# define LN_commonName "commonName" +# define NID_commonName 13 +# define OBJ_commonName OBJ_X509,3L + +# define SN_countryName "C" +# define LN_countryName "countryName" +# define NID_countryName 14 +# define OBJ_countryName OBJ_X509,6L + +# define SN_localityName "L" +# define LN_localityName "localityName" +# define NID_localityName 15 +# define OBJ_localityName OBJ_X509,7L + +/* Postal Address? PA */ + +/* should be "ST" (rfc1327) but MS uses 'S' */ +# define SN_stateOrProvinceName "ST" +# define LN_stateOrProvinceName "stateOrProvinceName" +# define NID_stateOrProvinceName 16 +# define OBJ_stateOrProvinceName OBJ_X509,8L + +# define SN_organizationName "O" +# define LN_organizationName "organizationName" +# define NID_organizationName 17 +# define OBJ_organizationName OBJ_X509,10L + +# define SN_organizationalUnitName "OU" +# define LN_organizationalUnitName "organizationalUnitName" +# define NID_organizationalUnitName 18 +# define OBJ_organizationalUnitName OBJ_X509,11L + +# define SN_rsa "RSA" +# define LN_rsa "rsa" +# define NID_rsa 19 +# define OBJ_rsa OBJ_X500,8L,1L,1L + +# define LN_pkcs7 "pkcs7" +# define NID_pkcs7 20 +# define OBJ_pkcs7 OBJ_pkcs,7L + +# define LN_pkcs7_data "pkcs7-data" +# define NID_pkcs7_data 21 +# define OBJ_pkcs7_data OBJ_pkcs7,1L + +# define LN_pkcs7_signed "pkcs7-signedData" +# define NID_pkcs7_signed 22 +# define OBJ_pkcs7_signed OBJ_pkcs7,2L + +# define LN_pkcs7_enveloped "pkcs7-envelopedData" +# define NID_pkcs7_enveloped 23 +# define OBJ_pkcs7_enveloped OBJ_pkcs7,3L + +# define LN_pkcs7_signedAndEnveloped "pkcs7-signedAndEnvelopedData" +# define NID_pkcs7_signedAndEnveloped 24 +# define OBJ_pkcs7_signedAndEnveloped OBJ_pkcs7,4L + +# define LN_pkcs7_digest "pkcs7-digestData" +# define NID_pkcs7_digest 25 +# define OBJ_pkcs7_digest OBJ_pkcs7,5L + +# define LN_pkcs7_encrypted "pkcs7-encryptedData" +# define NID_pkcs7_encrypted 26 +# define OBJ_pkcs7_encrypted OBJ_pkcs7,6L + +# define LN_pkcs3 "pkcs3" +# define NID_pkcs3 27 +# define OBJ_pkcs3 OBJ_pkcs,3L + +# define LN_dhKeyAgreement "dhKeyAgreement" +# define NID_dhKeyAgreement 28 +# define OBJ_dhKeyAgreement OBJ_pkcs3,1L + +# define SN_des_ecb "DES-ECB" +# define LN_des_ecb "des-ecb" +# define NID_des_ecb 29 +# define OBJ_des_ecb OBJ_algorithm,6L + +# define SN_des_cfb64 "DES-CFB" +# define LN_des_cfb64 "des-cfb" +# define NID_des_cfb64 30 +/* IV + num */ +# define OBJ_des_cfb64 OBJ_algorithm,9L + +# define SN_des_cbc "DES-CBC" +# define LN_des_cbc "des-cbc" +# define NID_des_cbc 31 +/* IV */ +# define OBJ_des_cbc OBJ_algorithm,7L + +# define SN_des_ede "DES-EDE" +# define LN_des_ede "des-ede" +# define NID_des_ede 32 +/* ?? */ +# define OBJ_des_ede OBJ_algorithm,17L + +# define SN_des_ede3 "DES-EDE3" +# define LN_des_ede3 "des-ede3" +# define NID_des_ede3 33 + +# define SN_idea_cbc "IDEA-CBC" +# define LN_idea_cbc "idea-cbc" +# define NID_idea_cbc 34 +# define OBJ_idea_cbc 1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L + +# define SN_idea_cfb64 "IDEA-CFB" +# define LN_idea_cfb64 "idea-cfb" +# define NID_idea_cfb64 35 + +# define SN_idea_ecb "IDEA-ECB" +# define LN_idea_ecb "idea-ecb" +# define NID_idea_ecb 36 + +# define SN_rc2_cbc "RC2-CBC" +# define LN_rc2_cbc "rc2-cbc" +# define NID_rc2_cbc 37 +# define OBJ_rc2_cbc OBJ_rsadsi,3L,2L + +# define SN_rc2_ecb "RC2-ECB" +# define LN_rc2_ecb "rc2-ecb" +# define NID_rc2_ecb 38 + +# define SN_rc2_cfb64 "RC2-CFB" +# define LN_rc2_cfb64 "rc2-cfb" +# define NID_rc2_cfb64 39 + +# define SN_rc2_ofb64 "RC2-OFB" +# define LN_rc2_ofb64 "rc2-ofb" +# define NID_rc2_ofb64 40 + +# define SN_sha "SHA" +# define LN_sha "sha" +# define NID_sha 41 +# define OBJ_sha OBJ_algorithm,18L + +# define SN_shaWithRSAEncryption "RSA-SHA" +# define LN_shaWithRSAEncryption "shaWithRSAEncryption" +# define NID_shaWithRSAEncryption 42 +# define OBJ_shaWithRSAEncryption OBJ_algorithm,15L + +# define SN_des_ede_cbc "DES-EDE-CBC" +# define LN_des_ede_cbc "des-ede-cbc" +# define NID_des_ede_cbc 43 + +# define SN_des_ede3_cbc "DES-EDE3-CBC" +# define LN_des_ede3_cbc "des-ede3-cbc" +# define NID_des_ede3_cbc 44 +# define OBJ_des_ede3_cbc OBJ_rsadsi,3L,7L + +# define SN_des_ofb64 "DES-OFB" +# define LN_des_ofb64 "des-ofb" +# define NID_des_ofb64 45 +# define OBJ_d