tuweni / org.apache.tuweni.crypto.sodium / Signature / signDetached

signDetached

static fun signDetached(message: Bytes!, secretKey: SecretKey!): Bytes! (source)

Signs a message for a given key.

Parameters

message - Bytes!: The message to sign.

secretKey - SecretKey!: The secret key to sign the message with.

Return
Bytes!: The signature of the message.

static fun signDetached(message: Allocated!, secretKey: SecretKey!): Allocated! (source)

Signs a message for a given key.

Parameters

message - Allocated!: The message to sign.

secretKey - SecretKey!: The secret key to sign the message with.

Return
Allocated!: The signature of the message.

static fun signDetached(message: ByteArray!, secretKey: SecretKey!): ByteArray! (source)

Signs a message for a given key.

Parameters

message - ByteArray!: The message to sign.

secretKey - SecretKey!: The secret key to sign the message with.

Return
ByteArray!: The signature of the message.