Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a typo about class name #417

Merged
merged 1 commit into from Apr 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/jwt/jwk/ec.rb
Expand Up @@ -66,7 +66,7 @@ def keypair_components(ec_keypair)
crv = 'P-521'
x_octets, y_octets = encoded_point.unpack('xa66a66')
else
raise Jwt::JWKError, "Unsupported curve '#{ec_keypair.group.curve_name}'"
raise JWT::JWKError, "Unsupported curve '#{ec_keypair.group.curve_name}'"
end
[crv, x_octets, y_octets]
end
Expand All @@ -85,7 +85,7 @@ def import(jwk_data)
# explanation of the relevant parameters.

jwk_crv, jwk_x, jwk_y, jwk_d, jwk_kid = jwk_attrs(jwk_data, %i[crv x y d kid])
raise Jwt::JWKError, 'Key format is invalid for EC' unless jwk_crv && jwk_x && jwk_y
raise JWT::JWKError, 'Key format is invalid for EC' unless jwk_crv && jwk_x && jwk_y

new(ec_pkey(jwk_crv, jwk_x, jwk_y, jwk_d), jwk_kid)
end
Expand Down