Safe Haskell | None |
---|---|
Language | Haskell2010 |
- encrypt :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m (Maybe Promise)
- encrypt_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m ()
- encryptUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise
- encryptUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise
- decrypt :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m (Maybe Promise)
- decrypt_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m ()
- decryptUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise
- decryptUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise
- sign :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m (Maybe Promise)
- sign_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m ()
- signUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise
- signUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise
- verify :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m (Maybe Promise)
- verify_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m ()
- verifyUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m Promise
- verifyUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m Promise
- digest :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> [Maybe data'] -> m (Maybe Promise)
- digest_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> [Maybe data'] -> m ()
- digestUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> [Maybe data'] -> m Promise
- digestUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> [Maybe data'] -> m Promise
- generateKey :: (MonadDOM m, ToJSString algorithm) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m (Maybe Promise)
- generateKey_ :: (MonadDOM m, ToJSString algorithm) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m ()
- generateKeyUnsafe :: (MonadDOM m, ToJSString algorithm, HasCallStack) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m Promise
- generateKeyUnchecked :: (MonadDOM m, ToJSString algorithm) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m Promise
- importKey :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m (Maybe Promise)
- importKey_ :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m ()
- importKeyUnsafe :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm, HasCallStack) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m Promise
- importKeyUnchecked :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m Promise
- exportKey :: (MonadDOM m, ToJSString format) => SubtleCrypto -> format -> Maybe CryptoKey -> m (Maybe Promise)
- exportKey_ :: (MonadDOM m, ToJSString format) => SubtleCrypto -> format -> Maybe CryptoKey -> m ()
- exportKeyUnsafe :: (MonadDOM m, ToJSString format, HasCallStack) => SubtleCrypto -> format -> Maybe CryptoKey -> m Promise
- exportKeyUnchecked :: (MonadDOM m, ToJSString format) => SubtleCrypto -> format -> Maybe CryptoKey -> m Promise
- wrapKey :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m (Maybe Promise)
- wrapKey_ :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m ()
- wrapKeyUnsafe :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm, HasCallStack) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m Promise
- wrapKeyUnchecked :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m Promise
- unwrapKey :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m (Maybe Promise)
- unwrapKey_ :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m ()
- unwrapKeyUnsafe :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm, HasCallStack) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m Promise
- unwrapKeyUnchecked :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m Promise
- newtype SubtleCrypto = SubtleCrypto {}
- gTypeSubtleCrypto :: JSM GType
Documentation
encrypt :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m (Maybe Promise) Source #
encrypt_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m () Source #
encryptUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise Source #
encryptUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise Source #
decrypt :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m (Maybe Promise) Source #
decrypt_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m () Source #
decryptUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise Source #
decryptUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise Source #
sign :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m (Maybe Promise) Source #
sign_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m () Source #
signUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise Source #
signUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> [Maybe data'] -> m Promise Source #
verify :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m (Maybe Promise) Source #
verify_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m () Source #
verifyUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m Promise Source #
verifyUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData signature, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> Maybe CryptoKey -> Maybe signature -> [Maybe data'] -> m Promise Source #
digest :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> [Maybe data'] -> m (Maybe Promise) Source #
digest_ :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> [Maybe data'] -> m () Source #
digestUnsafe :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data', HasCallStack) => SubtleCrypto -> algorithm -> [Maybe data'] -> m Promise Source #
digestUnchecked :: (MonadDOM m, ToJSString algorithm, IsCryptoOperationData data') => SubtleCrypto -> algorithm -> [Maybe data'] -> m Promise Source #
generateKey :: (MonadDOM m, ToJSString algorithm) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m (Maybe Promise) Source #
generateKey_ :: (MonadDOM m, ToJSString algorithm) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m () Source #
generateKeyUnsafe :: (MonadDOM m, ToJSString algorithm, HasCallStack) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m Promise Source #
generateKeyUnchecked :: (MonadDOM m, ToJSString algorithm) => SubtleCrypto -> algorithm -> Bool -> [KeyUsage] -> m Promise Source #
importKey :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m (Maybe Promise) Source #
importKey_ :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m () Source #
importKeyUnsafe :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm, HasCallStack) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m Promise Source #
importKeyUnchecked :: (MonadDOM m, ToJSString format, IsCryptoOperationData keyData, ToJSString algorithm) => SubtleCrypto -> format -> Maybe keyData -> algorithm -> Bool -> [KeyUsage] -> m Promise Source #
exportKey :: (MonadDOM m, ToJSString format) => SubtleCrypto -> format -> Maybe CryptoKey -> m (Maybe Promise) Source #
exportKey_ :: (MonadDOM m, ToJSString format) => SubtleCrypto -> format -> Maybe CryptoKey -> m () Source #
exportKeyUnsafe :: (MonadDOM m, ToJSString format, HasCallStack) => SubtleCrypto -> format -> Maybe CryptoKey -> m Promise Source #
exportKeyUnchecked :: (MonadDOM m, ToJSString format) => SubtleCrypto -> format -> Maybe CryptoKey -> m Promise Source #
wrapKey :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m (Maybe Promise) Source #
wrapKey_ :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m () Source #
wrapKeyUnsafe :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm, HasCallStack) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m Promise Source #
wrapKeyUnchecked :: (MonadDOM m, ToJSString format, ToJSString wrapAlgorithm) => SubtleCrypto -> format -> Maybe CryptoKey -> Maybe CryptoKey -> wrapAlgorithm -> m Promise Source #
unwrapKey :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m (Maybe Promise) Source #
unwrapKey_ :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m () Source #
unwrapKeyUnsafe :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm, HasCallStack) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m Promise Source #
unwrapKeyUnchecked :: (MonadDOM m, ToJSString format, IsCryptoOperationData wrappedKey, ToJSString unwrapAlgorithm, ToJSString unwrappedKeyAlgorithm) => SubtleCrypto -> format -> Maybe wrappedKey -> Maybe CryptoKey -> unwrapAlgorithm -> unwrappedKeyAlgorithm -> Bool -> [KeyUsage] -> m Promise Source #
newtype SubtleCrypto Source #
Functions for this inteface are in JSDOM.SubtleCrypto.