Sha256: 5892f783397a53821c136a3a52b1a530d026243609d5bf9d2bbd6045af4c46ea
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
module JWE module Alg # RSA RSA with PKCS1 v1.5 algorithm. class Rsa15 attr_accessor :key def initialize(key) self.key = key end def encrypt(cek) key.public_encrypt(cek) end def decrypt(encrypted_cek) key.private_decrypt(encrypted_cek) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jwe-0.4.0 | lib/jwe/alg/rsa15.rb |
jwe-0.3.1 | lib/jwe/alg/rsa15.rb |