Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fromSchema(schema)
{
//region Clear input data first
clearProps(schema, [
"salt",
"iterationCount",
"keyLength",
"prf"
]);
//endregion
//region Check the schema is valid
const asn1 = asn1js.compareSchema(schema,
schema,
PBKDF2Params.schema({
names: {
saltPrimitive: "salt",
saltConstructed: {
names: {
blockName: "salt"
fromSchema(schema)
{
//region Clear input data first
clearProps(schema, [
"keyPurposes"
]);
//endregion
//region Check the schema is valid
const asn1 = asn1js.compareSchema(schema,
schema,
ExtKeyUsage.schema({
names: {
keyPurposes: "keyPurposes"
}
})
);
if(asn1.verified === false)
throw new Error("Object's schema was not verified against input data for ExtKeyUsage");
fromSchema(schema)
{
//region Clear input data first
clearProps(schema, [
"attributes"
]);
//endregion
//region Check the schema is valid
const asn1 = asn1js.compareSchema(schema,
schema,
SubjectDirectoryAttributes.schema({
names: {
attributes: "attributes"
}
})
);
if(asn1.verified === false)
throw new Error("Object's schema was not verified against input data for SubjectDirectoryAttributes");
fromSchema(schema)
{
//region Clear input data first
clearProps(schema, [
"type",
"values"
]);
//endregion
//region Check the schema is valid
const asn1 = asn1js.compareSchema(schema,
schema,
Attribute.schema({
names: {
type: "type",
values: "values"
}
})
);
fromSchema(schema)
{
//region Clear input data first
clearProps(schema, [
"otherRevInfoFormat",
"otherRevInfo"
]);
//endregion
//region Check the schema is valid
const asn1 = asn1js.compareSchema(schema,
schema,
OtherRevocationInfoFormat.schema()
);
if(asn1.verified === false)
throw new Error("Object's schema was not verified against input data for OtherRevocationInfoFormat");
//endregion
//region Get internal properties from parsed schema