Fix crypto module using this

This commit is contained in:
Christoph Diehl 2018-04-07 02:11:14 +02:00
parent fc53bca173
commit b80448b2b2
No known key found for this signature in database
GPG Key ID: 799CE5B68FEF404A
1 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ class crypto extends make {
]
}
static randomKeyFormat () {
return random.item(this.keyFormats)
return random.item(crypto.keyFormats)
}
static get keyTypes () {
@ -27,7 +27,7 @@ class crypto extends make {
]
}
static randomKeyType () {
return random.item(this.keyTypes)
return random.item(crypto.keyTypes)
}
static get keyUsages () {
@ -44,7 +44,7 @@ class crypto extends make {
}
static randomKeyUsage () {
return random.subset(this.keyUsages)
return random.subset(crypto.keyUsages)
}
static get curves () {
@ -56,7 +56,7 @@ class crypto extends make {
}
static randomCurve () {
return random.item(this.curves)
return random.item(crypto.curves)
}
static get jwkUsages () {
@ -67,7 +67,7 @@ class crypto extends make {
}
static randomJwkUsage () {
return random.subset(this.keyUsages)
return random.subset(crypto.keyUsages)
}
static get jwkKeyTypes () {
@ -79,7 +79,7 @@ class crypto extends make {
}
static randomJwkKeyType () {
return random.subset(this.jwkKeyTypes)
return random.subset(crypto.jwkKeyTypes)
}
static get algorithmNames () {
@ -181,11 +181,11 @@ class crypto extends make {
}
static randomAlgorithmName (method) {
return random.item(this.algorithmNames[method])
return random.item(crypto.algorithmNames[method])
}
static randomDigestName () {
return random.item(this.algorithmNames.digest)
return random.item(crypto.algorithmNames.digest)
}
static get algorithms () {