Method: Themis.private_key
- Defined in:
- lib/rbthemis.rb
.private_key(key) ⇒ Object
273 274 275 276 277 278 |
# File 'lib/rbthemis.rb', line 273 def Themis.private_key(key) key_, len_ = string_to_pointer_size(key) kind = themis_get_asym_key_kind(key_, len_) return kind == ThemisImport::THEMIS_KEY_RSA_PRIVATE \ || kind == ThemisImport::THEMIS_KEY_EC_PRIVATE end |