From d41a05cbdf72061237d132fa2cc7fad5b0417ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Mon, 27 Jan 2003 23:08:34 +0100 Subject: * rsa-sign.c (rsa_private_key_init, rsa_private_key_clear) (rsa_private_key_prepare): Renamed functions. * rsa.c (rsa_public_key_init, rsa_public_key_clear) (rsa_public_key_prepare): Renamed functions. Rev: src/nettle/NEWS:1.9 Rev: src/nettle/rsa-sign.c:1.2 Rev: src/nettle/rsa.c:1.11 Rev: src/nettle/rsa.h:1.19 --- NEWS | 5 +++++ rsa-sign.c | 6 +++--- rsa.c | 6 +++--- rsa.h | 12 ++++++------ 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/NEWS b/NEWS index 254b0c90..7f03e703 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +NEWS for the 1.7 release + + Renamed rsa functions for consistency. Now it's + rsa_public_key_init, not rsa_init_public_key, etc. + NEWS for the 1.6 release Optimized assembler implementations of aes, for sparc and x86. diff --git a/rsa-sign.c b/rsa-sign.c index 6a50685f..7eb46280 100644 --- a/rsa-sign.c +++ b/rsa-sign.c @@ -34,7 +34,7 @@ #include "bignum.h" void -rsa_init_private_key(struct rsa_private_key *key) +rsa_private_key_init(struct rsa_private_key *key) { mpz_init(key->d); mpz_init(key->p); @@ -49,7 +49,7 @@ rsa_init_private_key(struct rsa_private_key *key) } void -rsa_clear_private_key(struct rsa_private_key *key) +rsa_private_key_clear(struct rsa_private_key *key) { mpz_clear(key->d); mpz_clear(key->p); @@ -60,7 +60,7 @@ rsa_clear_private_key(struct rsa_private_key *key) } int -rsa_prepare_private_key(struct rsa_private_key *key) +rsa_private_key_prepare(struct rsa_private_key *key) { /* FIXME: Add further sanity checks. */ diff --git a/rsa.c b/rsa.c index 35841789..1e1ffb8c 100644 --- a/rsa.c +++ b/rsa.c @@ -38,7 +38,7 @@ * verify functions. */ void -rsa_init_public_key(struct rsa_public_key *key) +rsa_public_key_init(struct rsa_public_key *key) { mpz_init(key->n); mpz_init(key->e); @@ -49,7 +49,7 @@ rsa_init_public_key(struct rsa_public_key *key) } void -rsa_clear_public_key(struct rsa_public_key *key) +rsa_public_key_clear(struct rsa_public_key *key) { mpz_clear(key->n); mpz_clear(key->e); @@ -71,7 +71,7 @@ _rsa_check_size(mpz_t n) } int -rsa_prepare_public_key(struct rsa_public_key *key) +rsa_public_key_prepare(struct rsa_public_key *key) { /* FIXME: Add further sanity checks, like 0 < e < n. */ #if 0 diff --git a/rsa.h b/rsa.h index 45089381..b553a4cf 100644 --- a/rsa.h +++ b/rsa.h @@ -110,25 +110,25 @@ struct rsa_private_key /* Calls mpz_init to initialize bignum storage. */ void -rsa_init_public_key(struct rsa_public_key *key); +rsa_public_key_init(struct rsa_public_key *key); /* Calls mpz_clear to deallocate bignum storage. */ void -rsa_clear_public_key(struct rsa_public_key *key); +rsa_public_key_clear(struct rsa_public_key *key); int -rsa_prepare_public_key(struct rsa_public_key *key); +rsa_public_key_prepare(struct rsa_public_key *key); /* Calls mpz_init to initialize bignum storage. */ void -rsa_init_private_key(struct rsa_private_key *key); +rsa_private_key_init(struct rsa_private_key *key); /* Calls mpz_clear to deallocate bignum storage. */ void -rsa_clear_private_key(struct rsa_private_key *key); +rsa_private_key_clear(struct rsa_private_key *key); int -rsa_prepare_private_key(struct rsa_private_key *key); +rsa_private_key_prepare(struct rsa_private_key *key); /* PKCS#1 style signatures */ -- cgit v1.2.1