public class SMimeV4BrainpoolDemo extends SMimeV4EccDemo
Although Brainpool curves may not be widely used with S/MIME applications they are, e.g., recommended
by the German Federal Office for Information Security (BSI) for their Technical Guideline BSI TR-03116
defining cryptographic requirements for projects of the Federal Government.
Note that whereas S/MIME in general uses AEAD cipher modes like GCM with the AuthEnvelopedData
content type, BSI TR-03116 specifies GCM for use with the EnvelopedData
type. For that
reason GCM is used with EnvelopedData
in this demo (in difference to the parent
SMimeV4EccDemo
which uses GCM with the AuthEnvelopedData
type.
Additionally to iaik_cms.jar
you also must have
iaik_jce_(full).jar
(IAIK-JCE,
https://sic.tech/products/core-crypto-toolkits/jca-jce/),
and iaik_eccelarate.jar
(IAIK-ECCelerateTM,
https://sic.tech/products/core-crypto-toolkits/eccelerate/)
in your classpath.
To run this demo the following packages are required:
iaik_cms.jar
iaik_jce(_full).jar
(IAIK-JCE Core Crypto Library).
iaik_eccelerate.jar
(IAIK ECC Library).
Constructor and Description |
---|
SMimeV4BrainpoolDemo()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
The main method.
|
void |
start()
Starts the demo.
|
createEncryptedMessage, createMessage, createSignedAndEncryptedMessage, createSignedMessage, startEncryptionDemo, startSigningAndEncryptionDemo, startSigningDemo
public SMimeV4BrainpoolDemo()
public void start() throws java.lang.Exception
start
in class SMimeV4EccDemo
java.lang.Exception
- if an error occurspublic static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception