package o; import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException; import java.security.GeneralSecurityException; import o.AbstractC16575pTO; import o.IMF; import o.NZO; /* loaded from: classes2.dex */ public final class RRP extends AbstractC16575pTO { @Override // o.AbstractC16575pTO public final /* synthetic */ void b(IMF imf) throws GeneralSecurityException { IMF imf2 = imf; ifG.b(imf2.version_); ifG.e(imf2.keyValue_.d()); C15254gli c15254gli = imf2.params_; if (c15254gli == null) { c15254gli = C15254gli.d(); } if (c15254gli.ivSize_ < 12 || c15254gli.ivSize_ > 16) { throw new GeneralSecurityException("invalid IV size"); } } /* JADX INFO: Access modifiers changed from: package-private */ public RRP() { super(IMF.class, new AbstractC5281bqA(InterfaceC13537fcG.class) { // from class: o.RRP.5 @Override // o.AbstractC5281bqA public final /* synthetic */ InterfaceC13537fcG b(IMF imf) throws GeneralSecurityException { IMF imf2 = imf; byte[] c = imf2.keyValue_.c(); C15254gli c15254gli = imf2.params_; if (c15254gli == null) { c15254gli = C15254gli.d(); } return new RxO(c, c15254gli.ivSize_); } }); } @Override // o.AbstractC16575pTO public final NZO.Sts b() { return NZO.Sts.SYMMETRIC; } /* renamed from: o.RRP$2, reason: invalid class name */ /* loaded from: classes2.dex */ final class AnonymousClass2 extends AbstractC16575pTO.LWm { private RRP d; /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public AnonymousClass2(RRP rrp, Class cls) { super(cls); this.d = rrp; } @Override // o.AbstractC16575pTO.LWm public final /* synthetic */ IMF a(gxo gxoVar) throws GeneralSecurityException { gxo gxoVar2 = gxoVar; IMF.HBt e = IMF.e(); C15254gli c15254gli = gxoVar2.params_; if (c15254gli == null) { c15254gli = C15254gli.d(); } return e.d(c15254gli).d(jra.e(YTf.b(gxoVar2.keySize_))).d().h(); } @Override // o.AbstractC16575pTO.LWm public final /* synthetic */ void d(gxo gxoVar) throws GeneralSecurityException { gxo gxoVar2 = gxoVar; ifG.e(gxoVar2.keySize_); C15254gli c15254gli = gxoVar2.params_; if (c15254gli == null) { c15254gli = C15254gli.d(); } if (c15254gli.ivSize_ < 12 || c15254gli.ivSize_ > 16) { throw new GeneralSecurityException("invalid IV size"); } } @Override // o.AbstractC16575pTO.LWm public final /* synthetic */ gxo e(jra jraVar) throws InvalidProtocolBufferException { return gxo.e(jraVar, C1458aEp.c()); } } @Override // o.AbstractC16575pTO public final AbstractC16575pTO.LWm c() { return new AnonymousClass2(this, gxo.class); } @Override // o.AbstractC16575pTO public final /* synthetic */ IMF b(jra jraVar) throws InvalidProtocolBufferException { return IMF.d(jraVar, C1458aEp.c()); } @Override // o.AbstractC16575pTO public final String d() { return "type.googleapis.com/google.crypto.tink.AesCtrKey"; } }