add LTC prefix to most macros
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
/* This holds the key settings. ***MUST*** be organized by size from smallest to largest. */
|
||||
const dh_set sets[] = {
|
||||
#ifdef DH768
|
||||
#ifdef LTC_DH768
|
||||
{
|
||||
96,
|
||||
"DH-768",
|
||||
@@ -32,7 +32,7 @@ const dh_set sets[] = {
|
||||
"//////m3wvV"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH1024
|
||||
#ifdef LTC_DH1024
|
||||
{
|
||||
128,
|
||||
"DH-1024",
|
||||
@@ -42,7 +42,7 @@ const dh_set sets[] = {
|
||||
"////////////////////////////////////////////////m3C47"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH1280
|
||||
#ifdef LTC_DH1280
|
||||
{
|
||||
160,
|
||||
"DH-1280",
|
||||
@@ -53,7 +53,7 @@ const dh_set sets[] = {
|
||||
"//////////////////////////////m4kSN"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH1536
|
||||
#ifdef LTC_DH1536
|
||||
{
|
||||
192,
|
||||
"DH-1536",
|
||||
@@ -65,7 +65,7 @@ const dh_set sets[] = {
|
||||
"////////////m5uqd"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH1792
|
||||
#ifdef LTC_DH1792
|
||||
{
|
||||
224,
|
||||
"DH-1792",
|
||||
@@ -77,7 +77,7 @@ const dh_set sets[] = {
|
||||
"//////////////////////////////////////////////////////mT/sd"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH2048
|
||||
#ifdef LTC_DH2048
|
||||
{
|
||||
256,
|
||||
"DH-2048",
|
||||
@@ -90,7 +90,7 @@ const dh_set sets[] = {
|
||||
"/////////////////////////////////////////m8MPh"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH2560
|
||||
#ifdef LTC_DH2560
|
||||
{
|
||||
320,
|
||||
"DH-2560",
|
||||
@@ -105,7 +105,7 @@ const dh_set sets[] = {
|
||||
"/////mKFpF"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH3072
|
||||
#ifdef LTC_DH3072
|
||||
{
|
||||
384,
|
||||
"DH-3072",
|
||||
@@ -121,7 +121,7 @@ const dh_set sets[] = {
|
||||
"/////////////////////////////m32nN"
|
||||
},
|
||||
#endif
|
||||
#ifdef DH4096
|
||||
#ifdef LTC_DH4096
|
||||
{
|
||||
512,
|
||||
"DH-4096",
|
||||
|
||||
+9
-9
@@ -19,13 +19,13 @@
|
||||
/**
|
||||
@file ecc.c
|
||||
ECC Crypto, Tom St Denis
|
||||
*/
|
||||
*/
|
||||
|
||||
#ifdef LTC_MECC
|
||||
|
||||
/* This holds the key settings. ***MUST*** be organized by size from smallest to largest. */
|
||||
const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
#ifdef ECC112
|
||||
#ifdef LTC_ECC112
|
||||
{
|
||||
14,
|
||||
"SECP112R1",
|
||||
@@ -36,7 +36,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"A89CE5AF8724C0A23E0E0FF77500"
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC128
|
||||
#ifdef LTC_ECC128
|
||||
{
|
||||
16,
|
||||
"SECP128R1",
|
||||
@@ -47,7 +47,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"CF5AC8395BAFEB13C02DA292DDED7A83",
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC160
|
||||
#ifdef LTC_ECC160
|
||||
{
|
||||
20,
|
||||
"SECP160R1",
|
||||
@@ -58,7 +58,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"23A628553168947D59DCC912042351377AC5FB32",
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC192
|
||||
#ifdef LTC_ECC192
|
||||
{
|
||||
24,
|
||||
"ECC-192",
|
||||
@@ -69,7 +69,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"7192B95FFC8DA78631011ED6B24CDD573F977A11E794811",
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC224
|
||||
#ifdef LTC_ECC224
|
||||
{
|
||||
28,
|
||||
"ECC-224",
|
||||
@@ -80,7 +80,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC256
|
||||
#ifdef LTC_ECC256
|
||||
{
|
||||
32,
|
||||
"ECC-256",
|
||||
@@ -91,7 +91,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC384
|
||||
#ifdef LTC_ECC384
|
||||
{
|
||||
48,
|
||||
"ECC-384",
|
||||
@@ -102,7 +102,7 @@ const ltc_ecc_set_type ltc_ecc_sets[] = {
|
||||
"3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F",
|
||||
},
|
||||
#endif
|
||||
#ifdef ECC521
|
||||
#ifdef LTC_ECC521
|
||||
{
|
||||
66,
|
||||
"ECC-521",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Katja PKCS #1 OAEP Decryption, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
(PKCS #1 v2.0) decrypt then OAEP depad
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Katja PKCS-style OAEP encryption, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
(PKCS #1 v2.0) OAEP pad then encrypt
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Export Katja PKCS-style keys, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
This will export either an KatjaPublicKey or KatjaPrivateKey
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Katja PKCS-style exptmod, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
Compute an RSA modular exponentiation
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Free an Katja key, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
Free an Katja key from memory
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Import a PKCS-style Katja key, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
Import an KatjaPublicKey or KatjaPrivateKey [two-prime only, only support >= 1024-bit keys, defined in PKCS #1 v2.1]
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
Katja key generation, Tom St Denis
|
||||
*/
|
||||
|
||||
#ifdef MKAT
|
||||
#ifdef LTC_MKAT
|
||||
|
||||
/**
|
||||
Create a Katja key
|
||||
|
||||
Reference in New Issue
Block a user