Class IssacPE


  • public class IssacPE
    extends java.lang.Object
    공개키 암복호화 기능을 처리하는 클래스 (PKCS#8 EnvelopedData 또는 단순 공개키 암복호화)
    • Constructor Summary

      Constructors 
      Constructor Description
      IssacPE()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static byte[] AppendHeader​(byte[] ciphertext)
      Deprecated.
      사이즈 제한이 있음 (65kb 이상은 미지원)
      static byte[] Decrypt​(byte[] ciphertext, IssacCERTIFICATE cert, IssacPRIVATEKEY privatekey)
      PKCS#7 EnvelopedData 메시지를 복호화하여 원문을 가져온다.
      static byte[] Decrypt​(byte[] ciphertext, IssacPRIVATEKEY privatekey)
      PKCS#7 EnvelopedData 메시지를 복호화하여 원문을 가져온다.
      static void Decrypt_File​(java.lang.String plaintext_file, java.lang.String ciphertext_file, IssacCERTIFICATE cert, IssacPRIVATEKEY privatekey)
      Decrypt()와 같은 기능을 수행하지만, 입력과 출력으로 주어지는 정보가 파일의 형태이다.
      static void Decrypt_File​(java.lang.String plaintext_file, java.lang.String ciphertext_file, IssacPRIVATEKEY privatekey)
      Decrypt()와 같은 기능을 수행하지만, 입력과 출력으로 주어지는 정보가 파일의 형태이다.
      static byte[] Encrypt​(byte[] plaintext, IssacCERTIFICATE cert, int cipher_id)
      PKCS#7 EnvelopedData 메시지를 만든다.
      static byte[] Encrypt​(byte[] plaintext, IssacCERTIFICATES certs, int cipher_id)
      PKCS#7 EnvelopedData 메시지를 만든다.
      static void Encrypt_File​(java.lang.String ciphertext_file, java.lang.String plaintext_file, IssacCERTIFICATE cert, int cipher_id)
      Encrypt()와 같은 기능을 수행하지만, 입력과 출력으로 주어지는 메시지와 암호화 결과가 파일의 형태를 갖는다.
      static void Encrypt_File​(java.lang.String ciphertext_file, java.lang.String plaintext_file, IssacCERTIFICATES certs, int cipher_id)
      Encrypt()와 같은 기능을 수행하지만, 입력과 출력으로 주어지는 메시지와 암호화 결과가 파일의 형태를 갖는다.
      byte[] EncryptGetKey​(byte[] plaintext, IssacCERTIFICATES certs, int cipher_id)
      PKCS#7 EnvelopedData 메시지를 만든다.
      byte[] GetSessionKeyFromCipherText​(byte[] ciphertext, IssacCERTIFICATE cert, IssacPRIVATEKEY privatekey)
      PKCS#8 EnvelopedData에서 세션키를 가져온다.
      static byte[] RemoveHeader​(byte[] pkcs7)
      Deprecated.
      사이즈 제한이 있음 (65kb 이상은 미지원)
      static byte[] RSA15_DecryptRawBytes​(byte[] ciphertext, IssacPRIVATEKEY key)
      Deprecated.
      기존 API 호환용.
      static byte[] RSA15_EncryptRawBytes​(byte[] plaintext, IssacPUBLICKEY key)
      Deprecated.
      잘못된 패딩 방법이 사용되므로 다른 모듈과 호환되지 않는다.
      static byte[] RSA15_RSAES_Decrypt​(byte[] ciphertext, IssacPRIVATEKEY key)
      RSA 복호화
      static byte[] RSA15_RSAES_Encrypt​(byte[] plaintext, IssacPUBLICKEY key)
      RSA 암호화
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait