BlockCodec
Description
- Derived from
Abstract base class for IBlockCodec implementations.
Public / Methods
RSA
Creates a new instance of IBlockCodec that implements the asymmetric cipher RSA.
Separate keys are used for encoding and decoding:
(e, N) (d, N)
where e
is the encoding exponent, d
is the decoding exponent and N
is the shared modulus. A plaintext message m
(i.e. a single input block, interpreted as a big integer value) is encrypted into ciphertext c
using this formula:
c = m^e % N m = c^d % N
Big integer values are specified as arrays of 32-bit integers, in big-endian order.