Commit af949513 authored by Simo Sorce's avatar Simo Sorce

Use the correct key ops name for RSA

Signed-off-by: default avatarSimo Sorce <>
parent c90f1253
......@@ -161,7 +161,7 @@ class _RSA(_RawKeyMgmt):
if not cek:
cek = os.urandom(keylen)
rk = key.get_op_key('encrypt')
rk = key.get_op_key('wrapKey')
ek = rk.encrypt(cek, self.padfn)
return {'cek': cek, 'ek': ek}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment