+/*
+ * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
/* test vectors from p1ovect1.txt */
#include <stdio.h>
plen = sizeof(ptext_ex) - 1;
- for (v = 0; v < 6; v++) {
+ for (v = 0; v < 3; v++) {
key = RSA_new();
- switch (v % 3) {
+ switch (v) {
case 0:
clen = key1(key, ctext_ex);
break;
clen = key3(key, ctext_ex);
break;
}
- if (v / 3 >= 1)
- RSA_set_flags(key, RSA_FLAG_NO_CONSTTIME);
num = RSA_public_encrypt(plen, ptext_ex, ctext, key,
RSA_PKCS1_PADDING);