Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
1079a9bd
Commit
1079a9bd
authored
21 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Is now Nettle-independant.
Rev: lib/modules/Crypto.pmod/rsa.pike:1.7
parent
d274dcab
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/Crypto.pmod/rsa.pike
+5
-5
5 additions, 5 deletions
lib/modules/Crypto.pmod/rsa.pike
with
5 additions
and
5 deletions
lib/modules/Crypto.pmod/rsa.pike
+
5
−
5
View file @
1079a9bd
/* $Id: rsa.pike,v 1.
6
2003/12/1
4 23:43:21 nilsson
Exp $
/* $Id: rsa.pike,v 1.
7
2003/12/1
5 13:54:02 grubba
Exp $
*
*
* Follow the PKCS#1 standard for padding and encryption.
* Follow the PKCS#1 standard for padding and encryption.
*/
*/
...
@@ -185,7 +185,7 @@ int(0..1) verify(string msg, program h, object sign)
...
@@ -185,7 +185,7 @@ int(0..1) verify(string msg, program h, object sign)
//! Document this function.
//! Document this function.
string sha_sign(string message, mixed|void r)
string sha_sign(string message, mixed|void r)
{
{
#if constant(Crypto.SHA)
#if constant(Crypto.SHA
.`()
)
Crypto.Cipher hash = Crypto.SHA();
Crypto.Cipher hash = Crypto.SHA();
#else
#else
Crypto.sha hash = Crypto.sha();
Crypto.sha hash = Crypto.sha();
...
@@ -202,7 +202,7 @@ string sha_sign(string message, mixed|void r)
...
@@ -202,7 +202,7 @@ string sha_sign(string message, mixed|void r)
//! Document this function.
//! Document this function.
int sha_verify(string message, string signature)
int sha_verify(string message, string signature)
{
{
#if constant(Crypto.SHA)
#if constant(Crypto.SHA
.`()
)
Crypto.Cipher hash = Crypto.SHA();
Crypto.Cipher hash = Crypto.SHA();
#else
#else
Crypto.sha hash = Crypto.sha();
Crypto.sha hash = Crypto.sha();
...
@@ -220,7 +220,7 @@ int sha_verify(string message, string signature)
...
@@ -220,7 +220,7 @@ int sha_verify(string message, string signature)
//! Document this function.
//! Document this function.
string md5_sign(string message, mixed|void r)
string md5_sign(string message, mixed|void r)
{
{
#if constant(Crypto.MD5)
#if constant(Crypto.MD5
.`()
)
Crypto.Hash hash = Crypto.MD5();
Crypto.Hash hash = Crypto.MD5();
#else
#else
Crypto.md5 hash = Crypto.md5();
Crypto.md5 hash = Crypto.md5();
...
@@ -237,7 +237,7 @@ string md5_sign(string message, mixed|void r)
...
@@ -237,7 +237,7 @@ string md5_sign(string message, mixed|void r)
//! Document this function.
//! Document this function.
int md5_verify(string message, string signature)
int md5_verify(string message, string signature)
{
{
#if constant(Crypto.MD5)
#if constant(Crypto.MD5
.`()
)
Crypto.Hash hash = Crypto.MD5();
Crypto.Hash hash = Crypto.MD5();
#else
#else
Crypto.md5 hash = Crypto.md5();
Crypto.md5 hash = Crypto.md5();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment