Module
Crypto.Subtle.Key.Generate
- Package
- purescript-subtlecrypto
- Repository
- athanclark/purescript-subtlecrypto
#generateKey Source
generateKey :: SymmetricAlgorithm -> Boolean -> Array CryptoKeyUsage -> Aff CryptoKey
Generate a symmetric key
#generateKeyPair Source
generateKeyPair :: AsymmetricAlgorithm -> Boolean -> Array CryptoKeyUsage -> Aff CryptoKeyPair
Generate an asymmetric keypair
#AsymmetricAlgorithm Source
data AsymmetricAlgorithm :: Type
#rsa Source
rsa :: RSAAlgorithm -> Int -> Uint8Array -> HashingFunction -> AsymmetricAlgorithm
#ec Source
ec :: ECAlgorithm -> ECCurve -> AsymmetricAlgorithm
#SymmetricAlgorithm Source
data SymmetricAlgorithm :: Type
#aes Source
aes :: AESAlgorithm -> AESBitLength -> SymmetricAlgorithm