Method: Themis.public_key
- Defined in:
- lib/rbthemis.rb
.public_key(key) ⇒ Object
280 281 282 283 284 285 |
# File 'lib/rbthemis.rb', line 280 def Themis.public_key(key) key_, len_ = string_to_pointer_size(key) kind = themis_get_asym_key_kind(key_, len_) return kind == ThemisImport::THEMIS_KEY_RSA_PUBLIC \ || kind == ThemisImport::THEMIS_KEY_EC_PUBLIC end |