manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

15.2.1.2 RSA basic operations

RSA only works on bignums (up to the size of the modulus). The following procedures implement basic encryption, decryption, signing and signature verification.

Bigloo Cryptography procedure: rsa-encrypt key m

Encrypts the bignum m using the given key. If the key is a complete key then its public exponent is used. For partial keys only one exponent is available (which is assumed to be the public ’e’ of the recipient). The result is again a bignum.

Bigloo Cryptography procedure: rsa-decrypt key c

Decrypts the bignum c using the given key. If the key is a complete key then its private exponent is used. For partial keys only one exponent is available (which is assumed to be the private ’d’). The result is again a bignum.

Bigloo Cryptography procedure: rsa-sign k m

Signs the bignum m using key k. Uses the private exponent of complete keys. The result is a bignum.

Bigloo Cryptography procedure: rsa-verify k m s

Verifies the signature s. Returns true if s is the signature of m. The key k should be the public key of the signer.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.