feat(crypto): pkc algos for key generation, encrypt, and decrypt (#1663)
This commit is contained in:
7
packages/sncrypto-common/src/Types/PkcKeyPair.ts
Normal file
7
packages/sncrypto-common/src/Types/PkcKeyPair.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { HexString } from './HexString'
|
||||
|
||||
export type PkcKeyPair = {
|
||||
keyType: 'curve25519' | 'ed25519' | 'x25519'
|
||||
privateKey: HexString
|
||||
publicKey: HexString
|
||||
}
|
||||
@@ -8,3 +8,4 @@ export * from './StreamDecryptorResult'
|
||||
export * from './StreamEncryptor'
|
||||
export * from './Unencrypted'
|
||||
export * from './Utf8String'
|
||||
export * from './PkcKeyPair'
|
||||
|
||||
Reference in New Issue
Block a user