List of usage examples for org.bouncycastle.math.ec.rfc8032 Ed448 sign
public static void sign(byte[] sk, int skOff, byte[] ctx, byte[] m, int mOff, int mLen, byte[] sig, int sigOff)
From source file:net.java.otr4j.crypto.ed448.EdDSAKeyPair.java
License:LGPL
/** * Sign message.//from w w w .ja v a 2s . c o m * <p> * Signs the message using the default context as used in OTRv4. * * @param message The message to be signed. * @return Returns the signature that corresponds to the message. */ @Nonnull public byte[] sign(final byte[] message) { requireNotCleared(); final byte[] signature = new byte[Ed448.SIGNATURE_SIZE]; Ed448.sign(this.symmetricKey, 0, ED448_CONTEXT, message, 0, message.length, signature, 0); return signature; }