Commit 63348dfc authored by Davide Galassi's avatar Davide Galassi

Style check run

parent 68a81da0
......@@ -25,7 +25,7 @@ static int mod_2e(cry_mpi *r, const cry_mpi *a, unsigned int e)
r->data[x++] = 0;
/* clear the digit that is not completely outside/inside the modulus */
r->data[e / CRY_MPI_DIGIT_BITS] &=
r->data[e / CRY_MPI_DIGIT_BITS] &=
(cry_mpi_digit) ((((cry_mpi_digit) 1) << (((cry_mpi_digit) e) % CRY_MPI_DIGIT_BITS)) - ((cry_mpi_digit) 1));
cry_mpi_adjust(r);
......
......@@ -13,7 +13,7 @@ static int load_str_hex(cry_mpi *a, const char *s)
size_t i = 0, j = 0;
char *bin, first = 0;
size_t siz, len;
len = strlen(s);
siz = len >> 1;
if ((len & 0x01) != 0) {
......
......@@ -49,4 +49,3 @@ void base64_test(void)
func_test("base64_test.data", base64_dispatch);
printf("\n");
}
################################################################################
# Decode
# p0 : encoded string
# p1 : decoded string
# Encode
# p0 : decoded string
# p1 : encoded string
################################################################################
One char encode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment