- Sha3
▸ shake256(input
: Buffer, outLength
: number): Promise<Buffer>
Defined in index.ts:177
Name | Type |
---|---|
input |
Buffer |
outLength |
number |
Returns: Promise<Buffer>
This class uses post-crypto SIDH and creates keyPairs and the shared secret.
- SIDH
+ new SIDH(): SIDH
Defined in index.ts:23
Returns: SIDH
• PrivateKey: Buffer
Defined in index.ts:20
• PublicKey: Buffer
Defined in index.ts:21
• SenderKey: Buffer
Defined in index.ts:22
• SenderPublic: Buffer
Defined in index.ts:23
• get keyPair(): keys
Defined in index.ts:63
Returns: keys
• get senderKeyPair(): keys
Defined in index.ts:70
Returns: keys
▸ createKeyPair(): Promise<keys>
Defined in index.ts:47
Creates a key pair
Returns: Promise<keys>
key object
▸ createPubA(privateKey
: Buffer): Promise<Buffer>
Defined in index.ts:77
Name | Type |
---|---|
privateKey |
Buffer |
Returns: Promise<Buffer>
▸ randomBytes(length
: number): Promise<Buffer>
Defined in index.ts:36
Produces random bytes
Name | Type | Description |
---|---|---|
length |
number | bytes |
Returns: Promise<Buffer>
▸ senderKeys(): Promise<keys>
Defined in index.ts:84
Returns: Promise<keys>
▸ sharedKey(PrivateKey
: Buffer, SenderPublicKey
: Buffer): Promise<Buffer>
Defined in index.ts:100
Name | Type |
---|---|
PrivateKey |
Buffer |
SenderPublicKey |
Buffer |
Returns: Promise<Buffer>
▸ sharedKeySender(SenderPrivateKey
: Buffer, PublicKey
: Buffer): Promise<Buffer>
Defined in index.ts:106
Name | Type |
---|---|
SenderPrivateKey |
Buffer |
PublicKey |
Buffer |
Returns: Promise<Buffer>
This class implements the SIKE CryptoPQ.
- SIKE
+ new SIKE(): SIKE
Defined in index.ts:119
Returns: SIKE
• PrivateKey: Buffer
Defined in index.ts:118
• PublicKey: Buffer
Defined in index.ts:119
• get keyPair(): keys
Defined in index.ts:139
Returns: keys
▸ createKeyPair(): Promise<keys>
Defined in index.ts:129
Returns: Promise<keys>
KeyPair as keys object
▸ decrypt(privateKey
: Buffer, cipherBytes
: Buffer): Promise<Buffer>
Defined in index.ts:166
Takes the privatekey and ciphered bytes and returns the decrypted bytes
Name | Type | Description |
---|---|---|
privateKey |
Buffer | Key from key pair. |
cipherBytes |
Buffer | The encrypted bytes. |
Returns: Promise<Buffer>
The decrypted shared bytes.
▸ encrypt(publicKey
: Buffer): Promise<[Buffer, Buffer]>
Defined in index.ts:151
Takes a public key and returns 32 bytes of shared data, and the bytes encrypted.
Name | Type | Description |
---|---|---|
publicKey |
Buffer | from SIKE key pair |
Returns: Promise<[Buffer, Buffer]>
Globals
Keys interface PrivateJey: Buffer PublicKey: Buffer
- keys
• PrivateKey: Buffer
Defined in index.ts:11
• PublicKey: Buffer
Defined in index.ts:12
Globals / "index"