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

15.2.1.4 RSA RFC 3447

The following functions have been defined in RFC 3447.

Bigloo Cryptography procedure: RSAEP k m
Bigloo Cryptography procedure: RSADP k c
Bigloo Cryptography procedure: RSASP1 k m
Bigloo Cryptography procedure: RSAVP1 k s

These are the RFC 3447 names for encryption, decryption, signature and signature verification. Note that the verification does not receive the original message as parameter.

In fact rsa-verify is implemented as follows:

(define (rsa-verify k m s)
  (=bx m (RSAVP1 k s)))
Bigloo Cryptography procedure: PKCS1-v1.5-pad m-str key-len mode
Bigloo Cryptography procedure: PKCS1-v1.5-unpad em-str mode

Pads (resp. unpads) the given string using PKCS1-v1.5 specifications. Mode must be 0, 1 or 2.

Bigloo Cryptography procedure: RSAES-PKCS1-v1.5-encrypt key m-str
Bigloo Cryptography procedure: RSAES-PKCS1-v1.5-decrypt key c-str
Bigloo Cryptography procedure: RSASSA-PKCS1-v1.5-sign key msg-str [:hash-algo 'sha-1]
Bigloo Cryptography procedure: RSASSA-PKCS1-v1.5-verify key msg-str S-str
Bigloo Cryptography procedure: RSASSA-PKCS1-v1.5-sign-bignum key msg-str [:hash-algo 'sha-1]
Bigloo Cryptography procedure: RSASSA-PKCS1-v1.5-verify-bignum key msg-str S

RSAES-PKCS1-v1.5 functions work on strings. However their length is limited by the size of the modulus (to be exact: by key-len - 11). The -bignum functions skip the last step of converting the internal bignum to strings.

The optional :hash-algo must be either sha-1 or md5 (RFC 3447 allows other hash algorithms, but they are not yet implemented).

Bigloo Cryptography procedure: RSAES-OAEP-encrypt key m-str [:label ""]
Bigloo Cryptography procedure: RSAES-OAEP-decrypt key cypher-str [:label ""]
Bigloo Cryptography procedure: RSASSA-PSS-sign key msg-str
Bigloo Cryptography procedure: RSASSA-PSS-verify key msg-str sig-str

These functions pad, mask, etc the input string before they perform their operation on them. See RFC 3447 for more information.


[ << ] [ < ] [ 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.