version 1.1, 2004/05/16 15:04:54 |
version 1.2, 2004/08/16 03:59:58 |
|
|
/* $OpenXM$ */ |
/* $OpenXM: OpenXM/src/ox_ntl/crypt/rsa/ntlrsa.cpp,v 1.1 2004/05/16 15:04:54 iwane Exp $ */ |
/*-- References: RFC 3447 PKCS #1: RSA Encryption Version 2.1 --*/ |
/*-- References: RFC 3447 PKCS #1: RSA Encryption Version 2.1 --*/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
Line 179 NtlRsa::encrypt(unsigned char *eb, const unsigned char |
|
Line 179 NtlRsa::encrypt(unsigned char *eb, const unsigned char |
|
PowerMod(y, x, c, mod); |
PowerMod(y, x, c, mod); |
|
|
//-------------------------------------------------- |
//-------------------------------------------------- |
// Inteer-to-octet-string conversion |
// Integer-to-octet-string conversion |
//-------------------------------------------------- |
//-------------------------------------------------- |
memset(eb, 0, sizeof(k)); |
memset(eb, 0, sizeof(k)); |
BytesFromZZ(eb, y, k); |
BytesFromZZ(eb, y, k); |