aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/look_pk.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-03-30 18:27:18 +0000
committerlloyd <[email protected]>2009-03-30 18:27:18 +0000
commit96d6eb6f29c55e16a37cf11899547886f735b065 (patch)
tree9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/libstate/look_pk.cpp
parent3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff)
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
Diffstat (limited to 'src/libstate/look_pk.cpp')
-rw-r--r--src/libstate/look_pk.cpp46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/libstate/look_pk.cpp b/src/libstate/look_pk.cpp
index d72c1ce0f..8eb473858 100644
--- a/src/libstate/look_pk.cpp
+++ b/src/libstate/look_pk.cpp
@@ -1,34 +1,36 @@
-/*************************************************
-* PK Algorithm Lookup Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* PK Algorithm Lookup
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/look_pk.h>
#include <botan/lookup.h>
namespace Botan {
-/*************************************************
-* Get a PK_Encryptor object *
-*************************************************/
+/*
+* Get a PK_Encryptor object
+*/
PK_Encryptor* get_pk_encryptor(const PK_Encrypting_Key& key,
const std::string& eme)
{
return new PK_Encryptor_MR_with_EME(key, get_eme(eme));
}
-/*************************************************
-* Get a PK_Decryptor object *
-*************************************************/
+/*
+* Get a PK_Decryptor object
+*/
PK_Decryptor* get_pk_decryptor(const PK_Decrypting_Key& key,
const std::string& eme)
{
return new PK_Decryptor_MR_with_EME(key, get_eme(eme));
}
-/*************************************************
-* Get a PK_Signer object *
-*************************************************/
+/*
+* Get a PK_Signer object
+*/
PK_Signer* get_pk_signer(const PK_Signing_Key& key,
const std::string& emsa,
Signature_Format sig_format)
@@ -38,9 +40,9 @@ PK_Signer* get_pk_signer(const PK_Signing_Key& key,
return signer;
}
-/*************************************************
-* Get a PK_Verifier object *
-*************************************************/
+/*
+* Get a PK_Verifier object
+*/
PK_Verifier* get_pk_verifier(const PK_Verifying_with_MR_Key& key,
const std::string& emsa,
Signature_Format sig_format)
@@ -50,9 +52,9 @@ PK_Verifier* get_pk_verifier(const PK_Verifying_with_MR_Key& key,
return verifier;
}
-/*************************************************
-* Get a PK_Verifier object *
-*************************************************/
+/*
+* Get a PK_Verifier object
+*/
PK_Verifier* get_pk_verifier(const PK_Verifying_wo_MR_Key& key,
const std::string& emsa,
Signature_Format sig_format)
@@ -62,9 +64,9 @@ PK_Verifier* get_pk_verifier(const PK_Verifying_wo_MR_Key& key,
return verifier;
}
-/*************************************************
-* Get a PK_Key_Agreement object *
-*************************************************/
+/*
+* Get a PK_Key_Agreement object
+*/
PK_Key_Agreement* get_pk_kas(const PK_Key_Agreement_Key& key,
const std::string& kdf)
{