Class: Ccrypto::SecretKey

Inherits:
Object
  • Object
show all
Defined in:
lib/ccrypto/secret_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(algo, keysize, key) ⇒ SecretKey

Returns a new instance of SecretKey.



11
12
13
14
15
# File 'lib/ccrypto/secret_key.rb', line 11

def initialize(algo, keysize, key)
  @algo = algo
  @keysize = keysize
  @native_key = key
end

Instance Attribute Details

#algoObject (readonly)

Returns the value of attribute algo.



5
6
7
# File 'lib/ccrypto/secret_key.rb', line 5

def algo
  @algo
end

#keysizeObject (readonly)

Returns the value of attribute keysize.



5
6
7
# File 'lib/ccrypto/secret_key.rb', line 5

def keysize
  @keysize
end

#native_keyObject (readonly)

Returns the value of attribute native_key.



7
8
9
# File 'lib/ccrypto/secret_key.rb', line 7

def native_key
  @native_key
end

#provider_configObject

Returns the value of attribute provider_config.



9
10
11
# File 'lib/ccrypto/secret_key.rb', line 9

def provider_config
  @provider_config
end