summaryrefslogtreecommitdiff
path: root/pkcs1-rsa-sha256.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-06-25 22:52:16 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-06-25 22:52:16 +0200
commit4a4201f95dd80e76473ae7682b16b2177c1949a4 (patch)
treed34fda87a685e27027e8bfd5498d8253706bce0e /pkcs1-rsa-sha256.c
parentba98962d5fb20ff238c5c77fa0206264b8c0bd64 (diff)
downloadnettle-4a4201f95dd80e76473ae7682b16b2177c1949a4.tar.gz
Renamed pkcs1_signature_prefix to _pkcs1_signature_prefix.
Diffstat (limited to 'pkcs1-rsa-sha256.c')
-rw-r--r--pkcs1-rsa-sha256.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkcs1-rsa-sha256.c b/pkcs1-rsa-sha256.c
index e3f0797d..0d6c52c8 100644
--- a/pkcs1-rsa-sha256.c
+++ b/pkcs1-rsa-sha256.c
@@ -66,10 +66,10 @@ pkcs1_rsa_sha256_encode(mpz_t m, unsigned key_size, struct sha256_ctx *hash)
TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE);
TMP_ALLOC(em, key_size);
- p = pkcs1_signature_prefix(key_size, em,
- sizeof(sha256_prefix),
- sha256_prefix,
- SHA256_DIGEST_SIZE);
+ p = _pkcs1_signature_prefix(key_size, em,
+ sizeof(sha256_prefix),
+ sha256_prefix,
+ SHA256_DIGEST_SIZE);
if (p)
{
sha256_digest(hash, SHA256_DIGEST_SIZE, p);
@@ -87,10 +87,10 @@ pkcs1_rsa_sha256_encode_digest(mpz_t m, unsigned key_size, const uint8_t *digest
TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE);
TMP_ALLOC(em, key_size);
- p = pkcs1_signature_prefix(key_size, em,
- sizeof(sha256_prefix),
- sha256_prefix,
- SHA256_DIGEST_SIZE);
+ p = _pkcs1_signature_prefix(key_size, em,
+ sizeof(sha256_prefix),
+ sha256_prefix,
+ SHA256_DIGEST_SIZE);
if (p)
{
memcpy(p, digest, SHA256_DIGEST_SIZE);