Documentation ¶
Overview ¶
This contains modified copies of some of the code from the Go crypto package all credits goes to The Go Authors, it follows a BSD-style licence that can be found in the GO_LICENSE file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBase16 ¶
fromBase16 returns a new Big.Int from an hexadecimal string, as found in the go crypto tests suite
Types ¶
type Oracle ¶
type Oracle interface { // `Decrypt(*big.Int)` function that will send the said big Integer to the oracle Decrypt(*big.Int) // Query() bool will provide your oracle's answer whether the decrypted plaintext is >= B (true, then is has no leading 0 after decryption) or not (false, it has one or more leading zeros after decryption). Query() bool }
Oracle is an interface to allow anyone to easily provide its own oracle queries. The Decrypt function is provided with the modified ciphertext we want the oracle to be fed with, while the Query function is returning the bool we need to attack.
Click to show internal directories.
Click to hide internal directories.