package org.bouncycastle.crypto.agreement;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public final class X448Agreement implements org.bouncycastle.crypto.RawAgreement {
    private org.bouncycastle.crypto.params.X448PrivateKeyParameters 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.X448PublicKeyParameters) cipherParameters, bArr, i);
    }

    @Override // org.bouncycastle.crypto.RawAgreement
    public int b() {
        return 56;
    }

    @Override // org.bouncycastle.crypto.RawAgreement
    public void init(org.bouncycastle.crypto.CipherParameters cipherParameters) {
        org.bouncycastle.crypto.params.X448PrivateKeyParameters x448PrivateKeyParameters = (org.bouncycastle.crypto.params.X448PrivateKeyParameters) cipherParameters;
        this.a = x448PrivateKeyParameters;
        org.bouncycastle.crypto.CryptoServicesRegistrar.a(org.bouncycastle.crypto.agreement.Utils.d("X448", x448PrivateKeyParameters));
    }
}
