use of com.android.org.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class PBEParameter method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(salt);
v.add(iterations);
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class PBES2Algorithms method getDERObject.
public DERObject getDERObject() {
ASN1EncodableVector v = new ASN1EncodableVector();
ASN1EncodableVector subV = new ASN1EncodableVector();
v.add(objectId);
subV.add(func);
subV.add(scheme);
v.add(new DERSequence(subV));
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class PBKDF2Params method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(octStr);
v.add(iterationCount);
if (keyLength != null) {
v.add(keyLength);
}
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class PKCS12PBEParams method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(iv);
v.add(iterations);
return new DERSequence(v);
}
use of com.android.org.bouncycastle.asn1.ASN1EncodableVector in project XobotOS by xamarin.
the class Pfx method toASN1Object.
public DERObject toASN1Object() {
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(new DERInteger(3));
v.add(contentInfo);
if (macData != null) {
v.add(macData);
}
return new BERSequence(v);
}
Aggregations