summaryrefslogtreecommitdiff
path: root/rsa.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-12-18 02:34:33 +0000
committerweidai <weidai11@users.noreply.github.com>2006-12-18 02:34:33 +0000
commit43b41c1042164bc5194f3f61a2ca131ea9014b4a (patch)
tree9732b0bb2e34535743af1bc3680de2ea8d013710 /rsa.cpp
parent54a2acd0aab8ab74ae2c9b88805d259398a1b17e (diff)
downloadcryptopp-git-43b41c1042164bc5194f3f61a2ca131ea9014b4a.tar.gz
update version number, port to Sun C++ 5.8
Diffstat (limited to 'rsa.cpp')
-rw-r--r--rsa.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rsa.cpp b/rsa.cpp
index 1f29f363..f1e728a6 100644
--- a/rsa.cpp
+++ b/rsa.cpp
@@ -45,7 +45,7 @@ OID RSAFunction::GetAlgorithmID() const
return ASN1::rsaEncryption();
}
-void RSAFunction::BERDecodeKey(BufferedTransformation &bt)
+void RSAFunction::BERDecodePublicKey(BufferedTransformation &bt, bool, size_t)
{
BERSequenceDecoder seq(bt);
m_n.BERDecode(seq);
@@ -53,7 +53,7 @@ void RSAFunction::BERDecodeKey(BufferedTransformation &bt)
seq.MessageEnd();
}
-void RSAFunction::DEREncodeKey(BufferedTransformation &bt) const
+void RSAFunction::DEREncodePublicKey(BufferedTransformation &bt) const
{
DERSequenceEncoder seq(bt);
m_n.DEREncode(seq);
@@ -189,7 +189,7 @@ void InvertibleRSAFunction::Initialize(const Integer &n, const Integer &e, const
}
}
-void InvertibleRSAFunction::BERDecodeKey(BufferedTransformation &bt)
+void InvertibleRSAFunction::BERDecodePrivateKey(BufferedTransformation &bt, bool, size_t)
{
BERSequenceDecoder privateKey(bt);
word32 version;
@@ -205,7 +205,7 @@ void InvertibleRSAFunction::BERDecodeKey(BufferedTransformation &bt)
privateKey.MessageEnd();
}
-void InvertibleRSAFunction::DEREncodeKey(BufferedTransformation &bt) const
+void InvertibleRSAFunction::DEREncodePrivateKey(BufferedTransformation &bt) const
{
DERSequenceEncoder privateKey(bt);
DEREncodeUnsigned<word32>(privateKey, 0); // version