Class: RDF::Vocab::RSA

Inherits:
StrictVocabulary show all
Defined in:
vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-7bb82695cd86/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

Method Summary

Methods inherited from StrictVocabulary

[], strict?

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, 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

#modulusRDF::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-7bb82695cd86/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'



26
27
28
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-7bb82695cd86/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' .



30
31
32
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-7bb82695cd86/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



10
11
12
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-7bb82695cd86/lib/rdf/vocab/rsa.rb', line 10

def RSAKey
  @RSAKey
end

#RSAPrivateKeyRDF::Vocabulary::Term (readonly)

A Private Key in the RSA framework



14
15
16
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-7bb82695cd86/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)



18
19
20
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/rdf-vocab-7bb82695cd86/lib/rdf/vocab/rsa.rb', line 18

def RSAPublicKey
  @RSAPublicKey
end