Specialized function encrypting "EncryptedContentInfo" object using parameters
Gets WebCrypto algorithm by wel-known OID
Returns WebCrypto algorithm or an empty object
algorithm identifier
Optional
safety: booleanif true
throws exception on unknown algorithm identifier
Optional
target: stringname of the target
Gets WebCrypto algorithm by wel-known OID
Returns WebCrypto algorithm
Throws Error exception if unknown algorithm identifier
algorithm identifier
if true
throws exception on unknown algorithm identifier
Optional
target: stringname of the target
Get default algorithm parameters for each kind of operation
Algorithm name to get common parameters for
Kind of operation: "sign", "encrypt", "generateKey", "importKey", "exportKey", "verify"
Getting hash algorithm by signature algorithm
Signature algorithm
Get OID for each specific algorithm
Throws Error exception if unknown WebCrypto algorithm
WebCrypto Algorithm
Optional
safety: booleanIf true
throws exception on unknown algorithm. Default is false
Optional
target: stringName of the target
Optional
parameters: CryptoEnginePublicKeyParamsGet signature parameters by analyzing private key algorithm
The private key user would like to use
Optional
hashAlgorithm: stringHash algorithm user would like to use. Default is SHA-1
Sign data with pre-defined private key
Data to be signed
Private key to use
Parameters for used algorithm
Stamping (signing) data using algorithm similar to HMAC
Verify data with the public key
Data to be verified
Signature value
Public key information
Signature algorithm
Optional
shaAlgorithm: stringHash algorithm
Generated using TypeDoc
Decrypt data stored in "EncryptedContentInfo" object using parameters