eliminating ECDSA support from json API (dead)
This commit is contained in:
parent
f4a59d1ccc
commit
456434ec41
@ -64,18 +64,6 @@ TALER_json_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo
|
|||||||
const struct GNUNET_CRYPTO_EddsaSignature *signature);
|
const struct GNUNET_CRYPTO_EddsaSignature *signature);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert a signature (with purpose) to a JSON object representation.
|
|
||||||
*
|
|
||||||
* @param purpose purpose of the signature
|
|
||||||
* @param signature the signature
|
|
||||||
* @return the JSON reporesentation of the signature with purpose
|
|
||||||
*/
|
|
||||||
json_t *
|
|
||||||
TALER_json_from_ecdsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose,
|
|
||||||
const struct GNUNET_CRYPTO_EcdsaSignature *signature);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert RSA public key to JSON.
|
* Convert RSA public key to JSON.
|
||||||
*
|
*
|
||||||
|
@ -128,40 +128,6 @@ TALER_json_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert a signature (with purpose) to a JSON object representation.
|
|
||||||
*
|
|
||||||
* @param purpose purpose of the signature
|
|
||||||
* @param signature the signature
|
|
||||||
* @return the JSON reporesentation of the signature with purpose
|
|
||||||
*/
|
|
||||||
json_t *
|
|
||||||
TALER_json_from_ecdsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose,
|
|
||||||
const struct GNUNET_CRYPTO_EcdsaSignature *signature)
|
|
||||||
{
|
|
||||||
json_t *root;
|
|
||||||
json_t *el;
|
|
||||||
|
|
||||||
root = json_object ();
|
|
||||||
|
|
||||||
el = json_integer ((json_int_t) ntohl (purpose->size));
|
|
||||||
json_object_set_new (root, "size", el);
|
|
||||||
|
|
||||||
el = json_integer ((json_int_t) ntohl (purpose->purpose));
|
|
||||||
json_object_set_new (root, "purpose", el);
|
|
||||||
|
|
||||||
el = TALER_json_from_data (purpose,
|
|
||||||
ntohl (purpose->size));
|
|
||||||
json_object_set_new (root, "ecdsa_val", el);
|
|
||||||
|
|
||||||
el = TALER_json_from_data (signature,
|
|
||||||
sizeof (struct GNUNET_CRYPTO_EddsaSignature));
|
|
||||||
json_object_set_new (root, "ecdsa_sig", el);
|
|
||||||
|
|
||||||
return root;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert RSA public key to JSON.
|
* Convert RSA public key to JSON.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user