| SHA-1 -> any | Produces a 20-byte digest. |
|---|---|
| SHA-256 -> any | Default. Produces a 32-byte digest. |
| SHA-384 -> any | Produces a 48-byte digest. |
| SHA-512 -> any | Produces a 64-byte digest. |
| PADDING-PKCS1-V15 -> any | Padding scheme PKCS#1 v1.5. |
| PADDING-OAEP-V21 -> any | Padding scheme PKCS#1 v2.1 (OAEP). |
| parse-private key/Data --password/string= -> RsaKey | Parses a PKCS#1 or PKCS#8 encoded private key and stores it as DER. |
| parse-public key/Data -> RsaKey | Parses a PKCS#1 or X.509 encoded public key and stores it as DER. |
| generate --bits/int= -> RsaKeyPair | Generates a new RSA key pair. |
class Pin:
number/int
constructor .number:
operator == other:
if other is not Pin: return false
return number == other.number
hash-code method. That is, if a class has a hash-code member, then the equality and hash-code must agree. If two instances are equal (a == b), then their hash codes must also be equal (a.hash-code == b.hash-code).
is-valid := key.verify "my message" signature