Module: JOSE::JWA::Curve448_Ruby

Extended by:
Curve448_Ruby
Included in:
Curve448_Ruby
Defined in:
lib/jose/jwa/curve448_ruby.rb

Instance Method Summary collapse

Instance Method Details

#__ruby__?Boolean

Returns:

  • (Boolean)


5
# File 'lib/jose/jwa/curve448_ruby.rb', line 5

def __ruby__?; true; end

#__supported__?Boolean

Returns:

  • (Boolean)


6
# File 'lib/jose/jwa/curve448_ruby.rb', line 6

def __supported__?; JOSE.crypto_fallback; end

#ed448_keypair(secret = nil) ⇒ Object



8
9
10
# File 'lib/jose/jwa/curve448_ruby.rb', line 8

def ed448_keypair(secret = nil)
  return JOSE::JWA::Ed448.keypair(secret)
end

#ed448_secret_to_public(sk) ⇒ Object



12
13
14
# File 'lib/jose/jwa/curve448_ruby.rb', line 12

def ed448_secret_to_public(sk)
  return JOSE::JWA::Ed448.sk_to_pk(sk)
end

#ed448_sign(m, sk) ⇒ Object



16
17
18
# File 'lib/jose/jwa/curve448_ruby.rb', line 16

def ed448_sign(m, sk)
  return JOSE::JWA::Ed448.sign(m, sk)
end

#ed448_verify(sig, m, pk) ⇒ Object



20
21
22
# File 'lib/jose/jwa/curve448_ruby.rb', line 20

def ed448_verify(sig, m, pk)
  return JOSE::JWA::Ed448.verify(sig, m, pk)
end

#ed448ph_keypair(secret = nil) ⇒ Object



24
25
26
# File 'lib/jose/jwa/curve448_ruby.rb', line 24

def ed448ph_keypair(secret = nil)
  return JOSE::JWA::Ed448.keypair(secret)
end

#ed448ph_secret_to_public(sk) ⇒ Object



28
29
30
# File 'lib/jose/jwa/curve448_ruby.rb', line 28

def ed448ph_secret_to_public(sk)
  return JOSE::JWA::Ed448.sk_to_pk(sk)
end

#ed448ph_sign(m, sk) ⇒ Object



32
33
34
# File 'lib/jose/jwa/curve448_ruby.rb', line 32

def ed448ph_sign(m, sk)
  return JOSE::JWA::Ed448.sign_ph(m, sk)
end

#ed448ph_verify(sig, m, pk) ⇒ Object



36
37
38
# File 'lib/jose/jwa/curve448_ruby.rb', line 36

def ed448ph_verify(sig, m, pk)
  return JOSE::JWA::Ed448.verify_ph(sig, m, pk)
end

#x448_keypair(secret = nil) ⇒ Object



40
41
42
# File 'lib/jose/jwa/curve448_ruby.rb', line 40

def x448_keypair(secret = nil)
  return JOSE::JWA::X448.keypair(secret)
end

#x448_secret_to_public(sk) ⇒ Object



44
45
46
# File 'lib/jose/jwa/curve448_ruby.rb', line 44

def x448_secret_to_public(sk)
  return JOSE::JWA::X448.sk_to_pk(sk)
end

#x448_shared_secret(pk, sk) ⇒ Object



48
49
50
# File 'lib/jose/jwa/curve448_ruby.rb', line 48

def x448_shared_secret(pk, sk)
  return JOSE::JWA::X448.shared_secret(pk, sk)
end