public class EVP
extends java.lang.Object
| Constructor and Description |
|---|
EVP() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] input,
int offset,
int len,
java.security.Key key) |
static byte[] |
decrypt(byte[] input,
java.security.Key key) |
static javax.crypto.Cipher |
getCipher(org.bouncycastle.asn1.DERObjectIdentifier oid) |
static javax.crypto.Cipher |
getCipher(int nid) |
static java.security.MessageDigest |
getDigest(org.bouncycastle.asn1.DERObjectIdentifier oid) |
static java.security.MessageDigest |
getDigest(int nid) |
static java.security.MessageDigest |
sha1() |
static java.lang.String |
signatureAlgorithm(java.security.MessageDigest digest,
java.security.Key key) |
static int |
type(java.security.MessageDigest digest) |
public static javax.crypto.Cipher getCipher(org.bouncycastle.asn1.DERObjectIdentifier oid)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static javax.crypto.Cipher getCipher(int nid)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static java.security.MessageDigest getDigest(org.bouncycastle.asn1.DERObjectIdentifier oid)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static java.security.MessageDigest getDigest(int nid)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static java.security.MessageDigest sha1()
public static int type(java.security.MessageDigest digest)
public static java.lang.String signatureAlgorithm(java.security.MessageDigest digest,
java.security.Key key)
public static byte[] decrypt(byte[] input,
int offset,
int len,
java.security.Key key)
throws java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
java.security.InvalidKeyExceptionjava.security.NoSuchAlgorithmExceptionjavax.crypto.NoSuchPaddingExceptionjavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionpublic static byte[] decrypt(byte[] input,
java.security.Key key)
throws java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
java.security.InvalidKeyExceptionjava.security.NoSuchAlgorithmExceptionjavax.crypto.NoSuchPaddingExceptionjavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionCopyright © 2002-2009 JRuby Team. All Rights Reserved.