예제 #1
0
 public KEKRecipientInfo(
     ASN1Sequence seq)
 {
     version = (DERInteger)seq.getObjectAt(0);
     kekid   = KEKIdentifier.getInstance(seq.getObjectAt(1));
     keyEncryptionAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(2));
     encryptedKey           = (ASN1OctetString)seq.getObjectAt(3);
 }
예제 #2
0
 public KEKRecipientInfo(
     KEKIdentifier kekid,
     AlgorithmIdentifier keyEncryptionAlgorithm,
     ASN1OctetString encryptedKey)
 {
     this.version = new DERInteger(4);
     this.kekid   = kekid;
     this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
     this.encryptedKey           = encryptedKey;
 }