KEKRecipientInformation( KEKRecipientInfo info, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable, AuthAttributesProvider additionalData) { super(info.getKeyEncryptionAlgorithm(), messageAlgorithm, secureReadable, additionalData); this.info = info; KEKIdentifier kekId = info.getKekid(); this.rid = new KEKRecipientId(kekId.getKeyIdentifier().getOctets()); }
protected KEKRecipientInfoGenerator(KEKIdentifier kekIdentifier, SymmetricKeyWrapper wrapper) { this.kekIdentifier = kekIdentifier; this.wrapper = wrapper; }
public BcKEKRecipientInfoGenerator(KEKIdentifier kekIdentifier, BcSymmetricKeyWrapper kekWrapper) { super(kekIdentifier, kekWrapper); }
public BcKEKRecipientInfoGenerator(byte[] keyIdentifier, BcSymmetricKeyWrapper kekWrapper) { this(new KEKIdentifier(keyIdentifier, null, null), kekWrapper); }
public JceKEKRecipientInfoGenerator(KEKIdentifier kekIdentifier, SecretKey keyEncryptionKey) { super(kekIdentifier, new JceSymmetricKeyWrapper(keyEncryptionKey)); }
public JceKEKRecipientInfoGenerator(byte[] keyIdentifier, SecretKey keyEncryptionKey) { this(new KEKIdentifier(keyIdentifier, null, null), keyEncryptionKey); }
/** * add a KEK recipient. * * @deprecated use the addRecipientGenerator and JceKEKRecipientInfoGenerator * @param key the secret key to use for wrapping * @param keyIdentifier the byte string that identifies the key */ public void addKEKRecipient( SecretKey key, byte[] keyIdentifier) { addKEKRecipient(key, new KEKIdentifier(keyIdentifier, null, null)); }
/** * add a KEK recipient. * * @deprecated use the addRecipientGenerator and JceKEKRecipientInfoGenerator * @param key the secret key to use for wrapping * @param kekIdentifier a KEKIdentifier structure (identifies the key) */ public void addKEKRecipient( SecretKey key, KEKIdentifier kekIdentifier) { oldRecipientInfoGenerators.add(new JceKEKRecipientInfoGenerator(kekIdentifier, key)); }