()
| 21 | ) |
| 22 | |
| 23 | func init() { |
| 24 | // RS256 |
| 25 | SigningMethodRS256 = &SigningMethodRSA{"RS256", crypto.SHA256} |
| 26 | RegisterSigningMethod(SigningMethodRS256.Alg(), func() SigningMethod { |
| 27 | return SigningMethodRS256 |
| 28 | }) |
| 29 | |
| 30 | // RS384 |
| 31 | SigningMethodRS384 = &SigningMethodRSA{"RS384", crypto.SHA384} |
| 32 | RegisterSigningMethod(SigningMethodRS384.Alg(), func() SigningMethod { |
| 33 | return SigningMethodRS384 |
| 34 | }) |
| 35 | |
| 36 | // RS512 |
| 37 | SigningMethodRS512 = &SigningMethodRSA{"RS512", crypto.SHA512} |
| 38 | RegisterSigningMethod(SigningMethodRS512.Alg(), func() SigningMethod { |
| 39 | return SigningMethodRS512 |
| 40 | }) |
| 41 | } |
| 42 | |
| 43 | func (m *SigningMethodRSA) Alg() string { |
| 44 | return m.Name |
nothing calls this directly
no test coverage detected