|
scclib
Stable Cloud Computing C++ Library
|
RSA Public Key. More...
#include <rsa.h>


Public Member Functions | |
| RsaPublicKey (RsaPublicKey &&other) | |
| RsaPublicKey & | operator= (RsaPublicKey &&other) |
| RsaPublicKey (const RsaPublicKey &other) | |
| RsaPublicKey & | operator= (const RsaPublicKey &other) |
| bool | operator== (const RsaPublicKey &o) const |
| bool | operator!= (const RsaPublicKey &o) const |
| void | get (scc::crypto::Bignum &n, scc::crypto::Bignum &e) const |
| void | set (const scc::crypto::Bignum &n, const scc::crypto::Bignum &e) |
| void | clear () |
| Clear and erase all data. | |
| std::string | dump () const |
| Output with full values. | |
| std::string | str (unsigned=8) const |
| Output with formatted values. More... | |
| int | width () const |
| Bit width of the key. More... | |
| int | width_bytes () const |
| Width in bytes of this key. | |
Protected Attributes | |
| scc::crypto::Bignum | m_n |
| scc::crypto::Bignum | m_e |
Friends | |
| class | PkcsSignature |
| class | PssSignature |
| class | RsaOaepEncrypt |
| class | RsaPrivateKey |
RSA Public Key.
A public key consists of: modulus n = p*q public exponent e (usually set to 65537 0x10001)
| std::string scc::crypto::RsaPublicKey::str | ( | unsigned | = 8 | ) | const |
Output with formatted values.
Emits a maximum number of bytes for each value.
| int scc::crypto::RsaPublicKey::width | ( | ) | const |
Bit width of the key.
An initialized or cleared key will have width 0.