Hi all,

 

I want to use emsa-pss. The following is the sample codes.

 

int emBits=md.hashSize()*8+digest.length*8+9;

EMSA_PSS emsa = EMSA_PSS.getInstance("SHA-1");

byte[] bJ = emsa.encode(digest, emBits, salt.toByteArray());

 

But my question is:

 

Which kind of salt should I provide?

 

Can some one provide the solution for how to use emsa-pss?

 

 

Dongdong Chen

2006.3.6

 

 

_______________________________________________
gnu-crypto-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-crypto-discuss

Reply via email to