add oaep testvectors
This commit is contained in:
parent
b0c7cbfaae
commit
ed0982b7e7
1394
notes/rsa-testvectors/oaep-vect.c
Normal file
1394
notes/rsa-testvectors/oaep-vect.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -133,6 +133,11 @@ class PkcsType(object):
|
||||
self.o1 = '# Message to be signed'
|
||||
self.o2 = '# Salt'
|
||||
self.o3 = '# Signature'
|
||||
elif name == 'oaep':
|
||||
self.o = '# RSAES-OAEP Encryption Example'
|
||||
self.o1 = '# Message to be encrypted'
|
||||
self.o2 = '# Seed'
|
||||
self.o3 = '# Encryption'
|
||||
else:
|
||||
raise ValueError('Type unknown: ' + name)
|
||||
self.name = name
|
||||
|
Loading…
Reference in New Issue
Block a user