feat(crypto): pkc algos for key generation, encrypt, and decrypt (#1663)

This commit is contained in:
Mo
2022-09-28 09:15:34 -05:00
committed by GitHub
parent 554f59a3fe
commit a83003ee69
11 changed files with 161 additions and 183 deletions

View File

@@ -26,7 +26,8 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.12.1",
"eslint-plugin-prettier": "^4.2.1"
"eslint-plugin-prettier": "^4.2.1",
"typescript": "*"
},
"dependencies": {
"reflect-metadata": "^0.1.13"

View File

@@ -0,0 +1,7 @@
import { HexString } from './HexString'
export type PkcKeyPair = {
keyType: 'curve25519' | 'ed25519' | 'x25519'
privateKey: HexString
publicKey: HexString
}

View File

@@ -8,3 +8,4 @@ export * from './StreamDecryptorResult'
export * from './StreamEncryptor'
export * from './Unencrypted'
export * from './Utf8String'
export * from './PkcKeyPair'