as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート

SubtleCrypto

SubtleCrypto

コンストラクタ

new SubtleCrypto()

new SubtleCrypto(internalWebCrypto): SubtleCrypto

パラメーター

internalWebCrypto

InternalWebCrypto

戻り値

SubtleCrypto

メソッド

decrypt()

decrypt(algorithm, key, data): Promise<ArrayBuffer>

パラメーター

algorithm

EncryptionAlgorithm

key

CryptoKey

data

BufferSource

戻り値

Promise<ArrayBuffer>


deriveBits()

deriveBits(algorithm, baseKey, length): Promise<ArrayBuffer>

パラメーター

algorithm

DerivationAlgorithm

baseKey

CryptoKey

length

number

戻り値

Promise<ArrayBuffer>


deriveKey()

deriveKey(algorithm, baseKey, derivedKeyAlgorithm, extractable, keyUsages): Promise<CryptoKey>

パラメーター

algorithm

DerivationAlgorithm

baseKey

CryptoKey

derivedKeyAlgorithm

DerivedKeyAlgorithm

extractable

boolean

keyUsages

KeyUsage[]

戻り値

Promise<CryptoKey>


digest()

digest(algorithm, data): Promise<ArrayBuffer>

パラメーター

algorithm

DigestAlgorithm

data

BufferSource

戻り値

Promise<ArrayBuffer>


encrypt()

encrypt(algorithm, key, data): Promise<ArrayBuffer>

パラメーター

algorithm

EncryptionAlgorithm

key

CryptoKey

data

BufferSource

戻り値

Promise<ArrayBuffer>


exportKey()

exportKey(format, key): Promise<ArrayBuffer | JsonWebKey>

パラメーター

format

KeyFormat

key

CryptoKey

戻り値

Promise<ArrayBuffer | JsonWebKey>


generateKey()

generateKey(algorithm, extractable, usages): Promise<CryptoKey | CryptoKeyPair>

パラメーター

algorithm

KeyGenAlgorithm

extractable

boolean

usages

KeyUsage[]

戻り値

Promise<CryptoKey | CryptoKeyPair>


importKey()

importKey(format, keyData, algorithm, extractable, keyUsages): Promise<CryptoKey>

パラメーター

format

KeyFormat

keyData
JsonWebKey BufferSource
algorithm

KeyImportAlgorithm

extractable

boolean

keyUsages

KeyUsage[]

戻り値

Promise<CryptoKey>


sign()

sign(algorithm, key, data): Promise<ArrayBuffer>

パラメーター

algorithm

SignatureAlgorithm

key

CryptoKey

data

BufferSource

戻り値

Promise<ArrayBuffer>


verify()

verify(algorithm, key, signature, data): Promise<boolean>

パラメーター

algorithm

SignatureAlgorithm

key

CryptoKey

signature

ArrayBuffer

data

ArrayBuffer

戻り値

Promise<boolean>


Last updated: 2025年10月2日