Class: RDF::Vocab::RSA
- Inherits:
-
StrictVocabulary
- Object
- StrictVocabulary
- RDF::Vocab::RSA
- Defined in:
- lib/rdf/vocab/rsa.rb
Overview
Vocabulary for <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.
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 '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 '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 '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 '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 '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 'lib/rdf/vocab/rsa.rb', line 18 def RSAPublicKey @RSAPublicKey end |