]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - rsa/rsaes_pkcs1v15.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / rsa / rsaes_pkcs1v15.c
index 4f41546de6dd420a4f7c369e75fc5e3ab834b18f..c1f753fa9220feb3a60f610c544911b2646d2049 100644 (file)
@@ -1,7 +1,7 @@
 /* rsa_pkcs1v15.c */
 /*
     This file is part of the ARM-Crypto-Lib.
-    Copyright (C) 2006-2011 Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -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;