Class: RDF::Vocab::RSA
- Inherits:
-
StrictVocabulary
- Object
- RDF::Vocabulary
- StrictVocabulary
- RDF::Vocab::RSA
- Defined in:
- vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb
Overview
Vocabulary for http://www.w3.org/ns/auth/rsa#
ontology for the RSA public private keys
Instance Attribute Summary collapse
-
#modulus ⇒ RDF::Vocabulary::Term
readonly
The modulus of an RSA public and private key.
-
#private_exponent ⇒ RDF::Vocabulary::Term
readonly
The exponent used to decrypt the message calculated as public_exponent*private_exponent = 1 modulo totient(p*q) The private exponent is often named 'd'.
-
#public_exponent ⇒ RDF::Vocabulary::Term
readonly
The exponent used to encrypt the message.
-
#RSAKey ⇒ RDF::Vocabulary::Term
readonly
The union of the public and private components of an RSAKey.
-
#RSAPrivateKey ⇒ RDF::Vocabulary::Term
readonly
A Private Key in the RSA framework.
-
#RSAPublicKey ⇒ RDF::Vocabulary::Term
readonly
The RSA public key.
Method Summary
Methods inherited from StrictVocabulary
Methods inherited from RDF::Vocabulary
[], #[], __prefix__, _orig_each, _orig_from_sym, camelize, each, each_statement, enum_for, expand_pname, find, find_term, from_graph, from_sym, imported_from, imports, #initialize, #inspect, inspect, limit_vocabs, list, method_missing, #method_missing, ontology, properties, property, register, strict?, to_html, to_iri, to_jsonld, #to_s, to_s, to_ttl, #to_uri, to_uri, value_to_html, vocab_map
Constructor Details
This class inherits a constructor from RDF::Vocabulary
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RDF::Vocabulary
Instance Attribute Details
#modulus ⇒ RDF::Vocabulary::Term (readonly)
The modulus of an RSA public and private key. This is defined as n = p*q
22 23 24 |
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb', line 22 def modulus @modulus end |
#private_exponent ⇒ RDF::Vocabulary::Term (readonly)
The exponent used to decrypt the message calculated as public_exponent*private_exponent = 1 modulo totient(p*q) The private exponent is often named 'd'
26 27 28 |
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb', line 26 def private_exponent @private_exponent end |
#public_exponent ⇒ RDF::Vocabulary::Term (readonly)
The exponent used to encrypt the message. Number chosen between 1 and the totient(p*q). Often named 'e' .
30 31 32 |
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb', line 30 def public_exponent @public_exponent end |
#RSAKey ⇒ RDF::Vocabulary::Term (readonly)
The union of the public and private components of an RSAKey. Usually those pieces are not kept together
10 11 12 |
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb', line 10 def RSAKey @RSAKey end |
#RSAPrivateKey ⇒ RDF::Vocabulary::Term (readonly)
A Private Key in the RSA framework
14 15 16 |
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb', line 14 def RSAPrivateKey @RSAPrivateKey end |
#RSAPublicKey ⇒ RDF::Vocabulary::Term (readonly)
The RSA public key. Padded message m are encrypted by applying the function modulus(power(m,exponent),modulus)
18 19 20 |
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-4431c6a28a93/lib/rdf/vocab/rsa.rb', line 18 def RSAPublicKey @RSAPublicKey end |