]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - rsa/rsaes_pkcs1v15.c
bug fixing and support for malloc instead of stack memory (some functions)
[avr-crypto-lib.git] / rsa / rsaes_pkcs1v15.c
index 4f41546de6dd420a4f7c369e75fc5e3ab834b18f..2825b81389150990479c741e31e395373facc1ff 100644 (file)
@@ -79,7 +79,7 @@ uint8_t rsa_encrypt_pkcs1v15(void *dest, uint16_t *out_length, const void *src,
        cli_hexdump_block(x.wordv, x.length_W * sizeof(bigint_word_t), 4, 16);
 #endif
        bigint_adjust(&x);
-       rsa_os2ip(&x, NULL, length_B+pad_length+3);
+       rsa_os2ip(&x, NULL, length_B + pad_length + 3);
        rsa_enc(&x, key);
        rsa_i2osp(NULL, &x, out_length);
        return 0;