Defines values for KeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521', 'P-256K'
Defines values for KeyOperation. Possible values include: 'encrypt', 'decrypt', 'sign', 'verify', 'wrapKey', 'unwrapKey', 'import'
Defines values for KeyType. Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct', "oct-HSM"
Supported algorithms for key wrapping/unwrapping
Abstract representation of a Local Cryptography Operation function.
Abstract representation of a Local Cryptography Operation function, this time with an additional signature buffer.
Union type representing the names of the supported local cryptography operations.
Key-value map of local cryptography operations.
A union type representing the names of all of the locally supported algorithms.
A Record containing all of the locally supported algorithms.
TypeScript fancy for making plain objects require at least one key-value pair of another set of key-values.
A union type representing the names of all of the locally supported sign algorithms.
Defines values for SignatureAlgorithm.
The latest supported Key Vault service API version
The @azure/logger configuration for this package.
Creates a new ChallengeBasedAuthenticationPolicy factory.
The TokenCredential implementation that can supply the challenge token.
Checks whether a key can be used at that specific moment, by comparing the current date with the bundle's notBefore and expires values.
Fill in the PEM with 64 character lines as per RFC:
"To represent the encapsulated text of a PEM message, the encoding function's output is delimited into text lines (using local conventions), with each line except the last containing exactly 64 printable characters and the final line containing 64 or fewer printable characters."
Checks whether a given algorithm name is supported or not.
string name of the algorithm
Since sign algorithms behave almost the same, we're making a generator to save up code.
We receive the sign algorithm, from the list of names in SignAlgorithmName
,
then we generate a LocalSupportedAlgorithm
that only create hashes and verifies signatures.
Parses the given Key Vault Key Id. An example is:
https://
On parsing the above Id, this function returns:
{
sourceId: "https://
The Id of the Key Vault Key.
Parses an WWW-Authenticate response.
This transforms a string value like:
Bearer authorization="some_authorization", resource="https://some.url"
into an object like:
{ authorization: "some_authorization", resource: "https://some.url" }
string value in the WWW-Authenticate header
pipeAssertions allows us to execute a sequence of assertions.
One or more LocalAssertions
Local support of the RSA1_5 algorithm. We currently only support encrypting and wrapping keys with it.
Local support of the RSA-OAEP algorithm. We currently only support encrypting and wrapping keys with it.
A plain object containing all of the locally supported algorithms.
Generated using TypeDoc
Defines values for EncryptionAlgorithm. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5', 'A128GCM', 'A192GCM', 'A256GCM', 'A128KW', 'A192KW', 'A256KW', 'A128CBC', 'A192CBC', 'A256CBC', 'A128CBCPAD', 'A192CBCPAD', 'A256CBCPAD'