package org.bouncycastle.crypto.agreement;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public final class X25519Agreement implements org.bouncycastle.crypto.RawAgreement {
    private org.bouncycastle.crypto.params.X25519PrivateKeyParameters a;

    @Override // org.bouncycastle.crypto.RawAgreement
    public void a(org.bouncycastle.crypto.CipherParameters cipherParameters, byte[] bArr, int i) {
        this.a.h((org.bouncycastle.crypto.params.X25519PublicKeyParameters) cipherParameters, bArr, i);
    }

    @Override // org.bouncycastle.crypto.RawAgreement
    public int b() {
        return 32;
    }

    @Override // org.bouncycastle.crypto.RawAgreement
    public void init(org.bouncycastle.crypto.CipherParameters cipherParameters) {
        org.bouncycastle.crypto.params.X25519PrivateKeyParameters x25519PrivateKeyParameters = (org.bouncycastle.crypto.params.X25519PrivateKeyParameters) cipherParameters;
        this.a = x25519PrivateKeyParameters;
        org.bouncycastle.crypto.CryptoServicesRegistrar.a(org.bouncycastle.crypto.agreement.Utils.c("X25519", x25519PrivateKeyParameters));
    }
}
