Algorithm
enum Algorithm
Enum Items
HMAC using SHA-256
HMAC using SHA-384
HMAC using SHA-512
ECDSA using P-256 and SHA-256
ECDSA using P-384 and SHA-384
ECDSA using P-521 and SHA-512
RSASSA-PKCS1-v1_5 using SHA-256
RSASSA-PKCS1-v1_5 using SHA-384
RSASSA-PKCS1-v1_5 using SHA-512
RSASSA-PSS using SHA-256
RSASSA-PSS using SHA-384
RSASSA-PSS using SHA-512
Edwards-curve Digital Signature Algorithm (EdDSA)
Implementions
Methods
[src]
pub fn to_string(self): string {
switch (self) {
case .HS256:
return "HS256";
case .HS384:
return "HS384";
case .HS512:
return "HS512";
case .ES256:
return "ES256";
case .ES384:
return "ES384";
case .ES512:
return "ES512";
case .RS256:
return "RS256";
case .RS384:
return "RS384";
case .RS512:
return "RS512";
case .PS256:
return "PS256";
case .PS384:
return "PS384";
case .PS512:
return "PS512";
case .EdDSA:
return "EdDSA";
}
}
[src]
pub fn to_string(self): string {
switch (self) {
case .HS256:
return "HS256";
case .HS384:
return "HS384";
case .HS512:
return "HS512";
case .ES256:
return "ES256";
case .ES384:
return "ES384";
case .ES512:
return "ES512";
case .RS256:
return "RS256";
case .RS384:
return "RS384";
case .RS512:
return "RS512";
case .PS256:
return "PS256";
case .PS384:
return "PS384";
case .PS512:
return "PS512";
case .EdDSA:
return "EdDSA";
}
}