rt.py: extend for PKCS#1 v1.5 EME
This commit is contained in:
parent
7302a7cfcb
commit
b51824748a
@ -152,6 +152,11 @@ class PkcsType(object):
|
|||||||
self.o = '# PKCS#1 v1.5 Signature Example'
|
self.o = '# PKCS#1 v1.5 Signature Example'
|
||||||
self.o1 = '# Message to be signed'
|
self.o1 = '# Message to be signed'
|
||||||
self.o2 = '# Signature'
|
self.o2 = '# Signature'
|
||||||
|
elif name == 'eme':
|
||||||
|
self.o = '# PKCS#1 v1.5 Encryption Example'
|
||||||
|
self.o1 = '# Message'
|
||||||
|
self.o2 = '# Seed'
|
||||||
|
self.o3 = '# Encryption'
|
||||||
else:
|
else:
|
||||||
raise ValueError('Type unknown: ' + name)
|
raise ValueError('Type unknown: ' + name)
|
||||||
|
|
||||||
@ -167,7 +172,7 @@ class PkcsType(object):
|
|||||||
self.dQ = '# q\'s CRT exponent dQ'
|
self.dQ = '# q\'s CRT exponent dQ'
|
||||||
self.qInv = '# CRT coefficient qInv'
|
self.qInv = '# CRT coefficient qInv'
|
||||||
self.sod = '# --------------------------------'
|
self.sod = '# --------------------------------'
|
||||||
elif name == 'emsa':
|
elif name == 'emsa' or name == 'eme':
|
||||||
self.version = 1
|
self.version = 1
|
||||||
self.numcases = 20
|
self.numcases = 20
|
||||||
self.n = '# Modulus'
|
self.n = '# Modulus'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user