Libraries |
|
PKCS #1 | Source Code |
|
|
Types | ||||
|
Function Summary | |||||
rsaKey |
| ||||
rsaKeyPair |
| ||||
rsaKeyPair |
| ||||
rsaKeyPair |
| ||||
string |
| ||||
bigInteger |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
bigInteger |
| ||||
bigInteger |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
string |
| ||||
string |
|
Function Detail |
rsaKey
const func rsaKey: rsaKey (in bigInteger: modulus, in bigInteger: exponent)
-
Generate an RSA key (private or public) from modulus and exponent.
rsaKeyPair
const func rsaKeyPair: rsaKeyPair (in rsaKey: publicKey, in rsaKey: privateKey)
-
Generate an RSA key pair from publicKey and privateKey.
rsaKeyPair
const func rsaKeyPair: rsaKeyPair (in bigInteger: modulus, in bigInteger: publicExponent, in bigInteger: privateExponent)
-
Generate an RSA key pair from modulus, publicExponent and privateExponent.
genRsaKeyPair
const func rsaKeyPair: genRsaKeyPair (in integer: keyLength, in bigInteger: exponent)
-
Generate a new RSA keyPair (private key and public key).
int2Octets
const func string: int2Octets (in bigInteger: number, in integer: length)
-
Convert a nonnegative bigInteger to an octet string of a specified length (I2OSP).
- Returns:
- an octet string with the big-endian representation.
- Raises:
- RANGE_ERROR - If the result does not fit into length.
octets2int
const func bigInteger: octets2int (in string: stri)
-
Convert an octet string to a nonnegative bigInteger (OS2IP).
- Returns:
- a nonnegative bigInteger created from the big-endian bytes.
- Raises:
- RANGE_ERROR - If characters beyond '\255;' are present.
emeOaepEncoding
const func string: emeOaepEncoding (in string: message, in string: label, in integer: modulusLen)
emeOaepDecoding
const func string: emeOaepDecoding (in string: encodedMessage, in string: label, in integer: modulusLen)
-
Decodes an EME-OAEP encoded string.
- Returns:
- the decoded string.
- Raises:
- RANGE_ERROR - If encodedMessage is not in the EME-OAEP format.
emePkcs1V15Encoding
const func string: emePkcs1V15Encoding (in string: message, in integer: modulusLen)
emePkcs1V15Decoding
const func string: emePkcs1V15Decoding (in string: encodedMessage, in integer: modulusLen)
-
Decodes an EME-PKCS1-v1_5 encoded string.
- Returns:
- the decoded string.
- Raises:
- RANGE_ERROR - If encodedMessage is not in the EME-PKCS1-v1_5 format.
emsaPkcs1V15Encoding
const func string: emsaPkcs1V15Encoding (in string: message, in integer: modulusLen)
emsaPkcs1V15Decoding
const func string: emsaPkcs1V15Decoding (in string: encodedMessage)
-
Decodes an EMSA-PKCS1-v1_5 encoded string.
- Returns:
- the decoded string.
- Raises:
- RANGE_ERROR - If encodedMessage is not in the EME-PKCS1-v1_5 format.
rsaEncrypt
const func bigInteger: rsaEncrypt (in rsaKey: encryptionKey, in bigInteger: message)
-
Encrypts a bigInteger with the RSAES encryption.
- Returns:
- the RSAES encrypted bigInteger.
- Raises:
- RANGE_ERROR - If message is too big for the RSAEP encryption.
rsaDecrypt
const func bigInteger: rsaDecrypt (in rsaKey: decryptionKey, in bigInteger: ciphertext)
-
Decrypts a bigInteger with the RSADP decryption.
- Returns:
- the RSADP decrypted bigInteger.
- Raises:
- RANGE_ERROR - If ciphertext is too big for the RSADP decryption.
rsaesOaepEncrypt
const func string: rsaesOaepEncrypt (in rsaKey: encryptionKey, in string: message, in string: label)
rsaesOaepDecrypt
const func string: rsaesOaepDecrypt (in rsaKey: decryptionKey, in string: ciphertext, in string: label)
rsaesPkcs1V15Encrypt
const func string: rsaesPkcs1V15Encrypt (in rsaKey: encryptionKey, in string: message)
rsaesPkcs1V15Decrypt
const func string: rsaesPkcs1V15Decrypt (in rsaKey: decryptionKey, in string: ciphertext)
rsassaPkcs1V15Encrypt
const func string: rsassaPkcs1V15Encrypt (in rsaKey: encryptionKey, in string: message)
rsassaPkcs1V15Decrypt
const func string: rsassaPkcs1V15Decrypt (in rsaKey: decryptionKey, in string: ciphertext)
|
|