Fix crypto module using this
This commit is contained in:
parent
fc53bca173
commit
b80448b2b2
1 changed files with 8 additions and 8 deletions
|
@ -16,7 +16,7 @@ class crypto extends make {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
static randomKeyFormat () {
|
static randomKeyFormat () {
|
||||||
return random.item(this.keyFormats)
|
return random.item(crypto.keyFormats)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get keyTypes () {
|
static get keyTypes () {
|
||||||
|
@ -27,7 +27,7 @@ class crypto extends make {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
static randomKeyType () {
|
static randomKeyType () {
|
||||||
return random.item(this.keyTypes)
|
return random.item(crypto.keyTypes)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get keyUsages () {
|
static get keyUsages () {
|
||||||
|
@ -44,7 +44,7 @@ class crypto extends make {
|
||||||
}
|
}
|
||||||
|
|
||||||
static randomKeyUsage () {
|
static randomKeyUsage () {
|
||||||
return random.subset(this.keyUsages)
|
return random.subset(crypto.keyUsages)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get curves () {
|
static get curves () {
|
||||||
|
@ -56,7 +56,7 @@ class crypto extends make {
|
||||||
}
|
}
|
||||||
|
|
||||||
static randomCurve () {
|
static randomCurve () {
|
||||||
return random.item(this.curves)
|
return random.item(crypto.curves)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get jwkUsages () {
|
static get jwkUsages () {
|
||||||
|
@ -67,7 +67,7 @@ class crypto extends make {
|
||||||
}
|
}
|
||||||
|
|
||||||
static randomJwkUsage () {
|
static randomJwkUsage () {
|
||||||
return random.subset(this.keyUsages)
|
return random.subset(crypto.keyUsages)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get jwkKeyTypes () {
|
static get jwkKeyTypes () {
|
||||||
|
@ -79,7 +79,7 @@ class crypto extends make {
|
||||||
}
|
}
|
||||||
|
|
||||||
static randomJwkKeyType () {
|
static randomJwkKeyType () {
|
||||||
return random.subset(this.jwkKeyTypes)
|
return random.subset(crypto.jwkKeyTypes)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get algorithmNames () {
|
static get algorithmNames () {
|
||||||
|
@ -181,11 +181,11 @@ class crypto extends make {
|
||||||
}
|
}
|
||||||
|
|
||||||
static randomAlgorithmName (method) {
|
static randomAlgorithmName (method) {
|
||||||
return random.item(this.algorithmNames[method])
|
return random.item(crypto.algorithmNames[method])
|
||||||
}
|
}
|
||||||
|
|
||||||
static randomDigestName () {
|
static randomDigestName () {
|
||||||
return random.item(this.algorithmNames.digest)
|
return random.item(crypto.algorithmNames.digest)
|
||||||
}
|
}
|
||||||
|
|
||||||
static get algorithms () {
|
static get algorithms () {
|
||||||
|
|
Loading…
Reference in a new issue