Class: RDF::Vocab::RSA

Inherits:
StrictVocabulary
  • Object
show all
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

Instance Attribute Details

#modulusRDF::Vocabulary::Term (readonly)

The modulus of an RSA public and private key. This is defined as n = p*q

Returns:

  • (RDF::Vocabulary::Term)


22
23
24
# File 'lib/rdf/vocab/rsa.rb', line 22

def modulus
  @modulus
end

#private_exponentRDF::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’

Returns:

  • (RDF::Vocabulary::Term)


26
27
28
# File 'lib/rdf/vocab/rsa.rb', line 26

def private_exponent
  @private_exponent
end

#public_exponentRDF::Vocabulary::Term (readonly)

The exponent used to encrypt the message. Number chosen between 1 and the totient(p*q). Often named ‘e’ .

Returns:

  • (RDF::Vocabulary::Term)


30
31
32
# File 'lib/rdf/vocab/rsa.rb', line 30

def public_exponent
  @public_exponent
end

#RSAKeyRDF::Vocabulary::Term (readonly)

The union of the public and private components of an RSAKey. Usually those pieces are not kept together

Returns:

  • (RDF::Vocabulary::Term)


10
11
12
# File 'lib/rdf/vocab/rsa.rb', line 10

def RSAKey
  @RSAKey
end

#RSAPrivateKeyRDF::Vocabulary::Term (readonly)

A Private Key in the RSA framework

Returns:

  • (RDF::Vocabulary::Term)


14
15
16
# File 'lib/rdf/vocab/rsa.rb', line 14

def RSAPrivateKey
  @RSAPrivateKey
end

#RSAPublicKeyRDF::Vocabulary::Term (readonly)

The RSA public key. Padded message m are encrypted by applying the function modulus(power(m,exponent),modulus)

Returns:

  • (RDF::Vocabulary::Term)


18
19
20
# File 'lib/rdf/vocab/rsa.rb', line 18

def RSAPublicKey
  @RSAPublicKey
end